home *** CD-ROM | disk | FTP | other *** search
/ Netrunner 2004 October / NETRUNNER0410.ISO / regular / ActivePerl-5.8.4.810-MSWin32-x86.msi / _fd9376d1ecdaec646f949e0c4083273b < prev    next >
Text File  |  2004-06-01  |  32KB  |  969 lines

  1. # The documentation is at the __END__
  2.  
  3. package Win32::OLE::NLS;
  4. require Win32::OLE;  # Make sure the XS bootstrap has been called
  5.  
  6. use strict;
  7. use vars qw(@EXPORT @EXPORT_OK %EXPORT_TAGS @ISA);
  8.  
  9. use Exporter;
  10. @ISA = qw(Exporter);
  11.  
  12. @EXPORT = qw(
  13.          CompareString
  14.          LCMapString
  15.          GetLocaleInfo
  16.          GetStringType
  17.          GetSystemDefaultLangID
  18.          GetSystemDefaultLCID
  19.          GetUserDefaultLangID
  20.          GetUserDefaultLCID
  21.  
  22.          MAKELANGID
  23.          PRIMARYLANGID
  24.          SUBLANGID
  25.          LANG_SYSTEM_DEFAULT
  26.          LANG_USER_DEFAULT
  27.          MAKELCID
  28.          LANGIDFROMLCID
  29.          LOCALE_SYSTEM_DEFAULT
  30.          LOCALE_USER_DEFAULT
  31.         );
  32.  
  33. @EXPORT_OK = qw(SetLocaleInfo SendSettingChange);
  34.  
  35. %EXPORT_TAGS =
  36. (
  37.  CT     => [qw(CT_CTYPE1 CT_CTYPE2 CT_CTYPE3)],
  38.  C1     => [qw(C1_UPPER C1_LOWER C1_DIGIT C1_SPACE C1_PUNCT
  39.         C1_CNTRL C1_BLANK C1_XDIGIT C1_ALPHA)],
  40.  C2     => [qw(C2_LEFTTORIGHT C2_RIGHTTOLEFT C2_EUROPENUMBER
  41.         C2_EUROPESEPARATOR C2_EUROPETERMINATOR C2_ARABICNUMBER
  42.         C2_COMMONSEPARATOR C2_BLOCKSEPARATOR C2_SEGMENTSEPARATOR
  43.         C2_WHITESPACE C2_OTHERNEUTRAL C2_NOTAPPLICABLE)],
  44.  C3     => [qw(C3_NONSPACING C3_DIACRITIC C3_VOWELMARK C3_SYMBOL C3_KATAKANA
  45.         C3_HIRAGANA C3_HALFWIDTH C3_FULLWIDTH C3_IDEOGRAPH C3_KASHIDA
  46.         C3_ALPHA C3_NOTAPPLICABLE)],
  47.  NORM     => [qw(NORM_IGNORECASE NORM_IGNORENONSPACE NORM_IGNORESYMBOLS
  48.         NORM_IGNOREWIDTH NORM_IGNOREKANATYPE NORM_IGNOREKASHIDA)],
  49.  LCMAP     => [qw(LCMAP_LOWERCASE LCMAP_UPPERCASE LCMAP_SORTKEY LCMAP_HALFWIDTH
  50.         LCMAP_FULLWIDTH LCMAP_HIRAGANA LCMAP_KATAKANA)],
  51.  LANG     => [qw(LANG_NEUTRAL LANG_ALBANIAN LANG_ARABIC LANG_BAHASA
  52.         LANG_BULGARIAN LANG_CATALAN LANG_CHINESE LANG_CZECH LANG_DANISH
  53.         LANG_DUTCH LANG_ENGLISH LANG_FINNISH LANG_FRENCH LANG_GERMAN
  54.         LANG_GREEK LANG_HEBREW LANG_HUNGARIAN LANG_ICELANDIC
  55.         LANG_ITALIAN LANG_JAPANESE LANG_KOREAN LANG_NORWEGIAN
  56.         LANG_POLISH LANG_PORTUGUESE LANG_RHAETO_ROMAN LANG_ROMANIAN
  57.         LANG_RUSSIAN LANG_SERBO_CROATIAN LANG_SLOVAK LANG_SPANISH
  58.         LANG_SWEDISH LANG_THAI LANG_TURKISH LANG_URDU)],
  59.  SUBLANG => [qw(SUBLANG_NEUTRAL SUBLANG_DEFAULT SUBLANG_SYS_DEFAULT
  60.         SUBLANG_CHINESE_SIMPLIFIED SUBLANG_CHINESE_TRADITIONAL
  61.         SUBLANG_DUTCH SUBLANG_DUTCH_BELGIAN SUBLANG_ENGLISH_US
  62.         SUBLANG_ENGLISH_UK SUBLANG_ENGLISH_AUS SUBLANG_ENGLISH_CAN
  63.         SUBLANG_ENGLISH_NZ SUBLANG_ENGLISH_EIRE SUBLANG_FRENCH
  64.         SUBLANG_FRENCH_BELGIAN SUBLANG_FRENCH_CANADIAN
  65.         SUBLANG_FRENCH_SWISS SUBLANG_GERMAN SUBLANG_GERMAN_SWISS
  66.         SUBLANG_GERMAN_AUSTRIAN SUBLANG_ITALIAN SUBLANG_ITALIAN_SWISS
  67.         SUBLANG_NORWEGIAN_BOKMAL SUBLANG_NORWEGIAN_NYNORSK
  68.         SUBLANG_PORTUGUESE SUBLANG_PORTUGUESE_BRAZILIAN
  69.         SUBLANG_SERBO_CROATIAN_CYRILLIC SUBLANG_SERBO_CROATIAN_LATIN
  70.         SUBLANG_SPANISH SUBLANG_SPANISH_MEXICAN
  71.         SUBLANG_SPANISH_MODERN)],
  72.  CTRY     => [qw(CTRY_DEFAULT CTRY_AUSTRALIA CTRY_AUSTRIA CTRY_BELGIUM
  73.         CTRY_BRAZIL CTRY_CANADA CTRY_DENMARK CTRY_FINLAND CTRY_FRANCE
  74.         CTRY_GERMANY CTRY_ICELAND CTRY_IRELAND CTRY_ITALY CTRY_JAPAN
  75.         CTRY_MEXICO CTRY_NETHERLANDS CTRY_NEW_ZEALAND CTRY_NORWAY
  76.         CTRY_PORTUGAL CTRY_PRCHINA CTRY_SOUTH_KOREA CTRY_SPAIN
  77.         CTRY_SWEDEN CTRY_SWITZERLAND CTRY_TAIWAN CTRY_UNITED_KINGDOM
  78.         CTRY_UNITED_STATES)],
  79.  LOCALE     => [qw(LOCALE_NOUSEROVERRIDE LOCALE_ILANGUAGE LOCALE_SLANGUAGE
  80.         LOCALE_SENGLANGUAGE LOCALE_SABBREVLANGNAME
  81.         LOCALE_SNATIVELANGNAME LOCALE_ICOUNTRY LOCALE_SCOUNTRY
  82.         LOCALE_SENGCOUNTRY LOCALE_SABBREVCTRYNAME LOCALE_SNATIVECTRYNAME
  83.         LOCALE_IDEFAULTLANGUAGE LOCALE_IDEFAULTCOUNTRY
  84.         LOCALE_IDEFAULTCODEPAGE LOCALE_IDEFAULTANSICODEPAGE LOCALE_SLIST
  85.         LOCALE_IMEASURE LOCALE_SDECIMAL LOCALE_STHOUSAND
  86.         LOCALE_SGROUPING LOCALE_IDIGITS LOCALE_ILZERO LOCALE_INEGNUMBER
  87.         LOCALE_SNATIVEDIGITS LOCALE_SCURRENCY LOCALE_SINTLSYMBOL
  88.         LOCALE_SMONDECIMALSEP LOCALE_SMONTHOUSANDSEP LOCALE_SMONGROUPING
  89.         LOCALE_ICURRDIGITS LOCALE_IINTLCURRDIGITS LOCALE_ICURRENCY
  90.         LOCALE_INEGCURR LOCALE_SDATE LOCALE_STIME LOCALE_SSHORTDATE
  91.         LOCALE_SLONGDATE LOCALE_STIMEFORMAT LOCALE_IDATE LOCALE_ILDATE
  92.         LOCALE_ITIME LOCALE_ITIMEMARKPOSN LOCALE_ICENTURY LOCALE_ITLZERO
  93.         LOCALE_IDAYLZERO LOCALE_IMONLZERO LOCALE_S1159 LOCALE_S2359
  94.         LOCALE_ICALENDARTYPE LOCALE_IOPTIONALCALENDAR
  95.         LOCALE_IFIRSTDAYOFWEEK LOCALE_IFIRSTWEEKOFYEAR LOCALE_SDAYNAME1
  96.         LOCALE_SDAYNAME2 LOCALE_SDAYNAME3 LOCALE_SDAYNAME4
  97.         LOCALE_SDAYNAME5 LOCALE_SDAYNAME6 LOCALE_SDAYNAME7
  98.         LOCALE_SABBREVDAYNAME1 LOCALE_SABBREVDAYNAME2
  99.         LOCALE_SABBREVDAYNAME3 LOCALE_SABBREVDAYNAME4
  100.         LOCALE_SABBREVDAYNAME5 LOCALE_SABBREVDAYNAME6
  101.         LOCALE_SABBREVDAYNAME7 LOCALE_SMONTHNAME1 LOCALE_SMONTHNAME2
  102.         LOCALE_SMONTHNAME3 LOCALE_SMONTHNAME4 LOCALE_SMONTHNAME5
  103.         LOCALE_SMONTHNAME6 LOCALE_SMONTHNAME7 LOCALE_SMONTHNAME8
  104.         LOCALE_SMONTHNAME9 LOCALE_SMONTHNAME10 LOCALE_SMONTHNAME11
  105.         LOCALE_SMONTHNAME12 LOCALE_SMONTHNAME13 LOCALE_SABBREVMONTHNAME1
  106.         LOCALE_SABBREVMONTHNAME2 LOCALE_SABBREVMONTHNAME3
  107.         LOCALE_SABBREVMONTHNAME4 LOCALE_SABBREVMONTHNAME5
  108.         LOCALE_SABBREVMONTHNAME6 LOCALE_SABBREVMONTHNAME7
  109.         LOCALE_SABBREVMONTHNAME8 LOCALE_SABBREVMONTHNAME9
  110.         LOCALE_SABBREVMONTHNAME10 LOCALE_SABBREVMONTHNAME11
  111.         LOCALE_SABBREVMONTHNAME12 LOCALE_SABBREVMONTHNAME13
  112.         LOCALE_SPOSITIVESIGN LOCALE_SNEGATIVESIGN LOCALE_IPOSSIGNPOSN
  113.         LOCALE_INEGSIGNPOSN LOCALE_IPOSSYMPRECEDES LOCALE_IPOSSEPBYSPACE
  114.         LOCALE_INEGSYMPRECEDES LOCALE_INEGSEPBYSPACE)],
  115.  TIME    => [qw(TIME_NOMINUTESORSECONDS TIME_NOSECONDS TIME_NOTIMEMARKER
  116.                 TIME_FORCE24HOURFORMAT)],
  117.  DATE    => [qw(DATE_SHORTDATE DATE_LONGDATE DATE_USE_ALT_CALENDAR
  118.                 DATE_YEARMONTH DATE_LTRREADING DATE_RTLREADING)],
  119. );
  120.  
  121. foreach my $tag (keys %EXPORT_TAGS) {
  122.     push @EXPORT_OK, @{$EXPORT_TAGS{$tag}};
  123. }
  124.  
  125. # Character Type Flags
  126. sub CT_CTYPE1                       { 0x0001 }
  127. sub CT_CTYPE2                       { 0x0002 }
  128. sub CT_CTYPE3                       { 0x0004 }
  129.  
  130. # Character Type 1 Bits
  131. sub C1_UPPER                        { 0x0001 }
  132. sub C1_LOWER                        { 0x0002 }
  133. sub C1_DIGIT                        { 0x0004 }
  134. sub C1_SPACE                        { 0x0008 }
  135. sub C1_PUNCT                        { 0x0010 }
  136. sub C1_CNTRL                        { 0x0020 }
  137. sub C1_BLANK                        { 0x0040 }
  138. sub C1_XDIGIT                       { 0x0080 }
  139. sub C1_ALPHA                        { 0x0100 }
  140.  
  141. # Character Type 2 Bits
  142. sub C2_LEFTTORIGHT                  { 0x1 }
  143. sub C2_RIGHTTOLEFT                  { 0x2 }
  144. sub C2_EUROPENUMBER                 { 0x3 }
  145. sub C2_EUROPESEPARATOR              { 0x4 }
  146. sub C2_EUROPETERMINATOR             { 0x5 }
  147. sub C2_ARABICNUMBER                 { 0x6 }
  148. sub C2_COMMONSEPARATOR              { 0x7 }
  149. sub C2_BLOCKSEPARATOR               { 0x8 }
  150. sub C2_SEGMENTSEPARATOR             { 0x9 }
  151. sub C2_WHITESPACE                   { 0xA }
  152. sub C2_OTHERNEUTRAL                 { 0xB }
  153. sub C2_NOTAPPLICABLE                { 0x0 }
  154.  
  155. # Character Type 3 Bits
  156. sub C3_NONSPACING                   { 0x0001 }
  157. sub C3_DIACRITIC                    { 0x0002 }
  158. sub C3_VOWELMARK                    { 0x0004 }
  159. sub C3_SYMBOL                       { 0x0008 }
  160. sub C3_KATAKANA                     { 0x0010 }
  161. sub C3_HIRAGANA                     { 0x0020 }
  162. sub C3_HALFWIDTH                    { 0x0040 }
  163. sub C3_FULLWIDTH                    { 0x0080 }
  164. sub C3_IDEOGRAPH                    { 0x0100 }
  165. sub C3_KASHIDA                      { 0x0200 }
  166. sub C3_ALPHA                        { 0x8000 }
  167. sub C3_NOTAPPLICABLE                { 0x0 }
  168.  
  169. # String Flags
  170. sub NORM_IGNORECASE                 { 0x0001 }
  171. sub NORM_IGNORENONSPACE             { 0x0002 }
  172. sub NORM_IGNORESYMBOLS              { 0x0004 }
  173. sub NORM_IGNOREWIDTH                { 0x0008 }
  174. sub NORM_IGNOREKANATYPE             { 0x0040 }
  175. sub NORM_IGNOREKASHIDA              { 0x40000}
  176.  
  177. # Locale Dependent Mapping Flags
  178. sub LCMAP_LOWERCASE                 { 0x0100 }
  179. sub LCMAP_UPPERCASE                 { 0x0200 }
  180. sub LCMAP_SORTKEY                   { 0x0400 }
  181. sub LCMAP_HALFWIDTH                 { 0x0800 }
  182. sub LCMAP_FULLWIDTH                 { 0x1000 }
  183. sub LCMAP_HIRAGANA                  { 0x2000 }
  184. sub LCMAP_KATAKANA                  { 0x4000 }
  185.  
  186. # Primary Language Identifier
  187. sub LANG_NEUTRAL                    { 0x00 }
  188. sub LANG_ALBANIAN                   { 0x1c }
  189. sub LANG_ARABIC                     { 0x01 }
  190. sub LANG_BAHASA                     { 0x21 }
  191. sub LANG_BULGARIAN                  { 0x02 }
  192. sub LANG_CATALAN                    { 0x03 }
  193. sub LANG_CHINESE                    { 0x04 }
  194. sub LANG_CZECH                      { 0x05 }
  195. sub LANG_DANISH                     { 0x06 }
  196. sub LANG_DUTCH                      { 0x13 }
  197. sub LANG_ENGLISH                    { 0x09 }
  198. sub LANG_FINNISH                    { 0x0b }
  199. sub LANG_FRENCH                     { 0x0c }
  200. sub LANG_GERMAN                     { 0x07 }
  201. sub LANG_GREEK                      { 0x08 }
  202. sub LANG_HEBREW                     { 0x0d }
  203. sub LANG_HUNGARIAN                  { 0x0e }
  204. sub LANG_ICELANDIC                  { 0x0f }
  205. sub LANG_ITALIAN                    { 0x10 }
  206. sub LANG_JAPANESE                   { 0x11 }
  207. sub LANG_KOREAN                     { 0x12 }
  208. sub LANG_NORWEGIAN                  { 0x14 }
  209. sub LANG_POLISH                     { 0x15 }
  210. sub LANG_PORTUGUESE                 { 0x16 }
  211. sub LANG_RHAETO_ROMAN               { 0x17 }
  212. sub LANG_ROMANIAN                   { 0x18 }
  213. sub LANG_RUSSIAN                    { 0x19 }
  214. sub LANG_SERBO_CROATIAN             { 0x1a }
  215. sub LANG_SLOVAK                     { 0x1b }
  216. sub LANG_SPANISH                    { 0x0a }
  217. sub LANG_SWEDISH                    { 0x1d }
  218. sub LANG_THAI                       { 0x1e }
  219. sub LANG_TURKISH                    { 0x1f }
  220. sub LANG_URDU                       { 0x20 }
  221.  
  222. # Sublanguage Identifier
  223. sub SUBLANG_NEUTRAL                 { 0x00 }
  224. sub SUBLANG_DEFAULT                 { 0x01 }
  225. sub SUBLANG_SYS_DEFAULT             { 0x02 }
  226. sub SUBLANG_CHINESE_SIMPLIFIED      { 0x02 }
  227. sub SUBLANG_CHINESE_TRADITIONAL     { 0x01 }
  228. sub SUBLANG_DUTCH                   { 0x01 }
  229. sub SUBLANG_DUTCH_BELGIAN           { 0x02 }
  230. sub SUBLANG_ENGLISH_US              { 0x01 }
  231. sub SUBLANG_ENGLISH_UK              { 0x02 }
  232. sub SUBLANG_ENGLISH_AUS             { 0x03 }
  233. sub SUBLANG_ENGLISH_CAN             { 0x04 }
  234. sub SUBLANG_ENGLISH_NZ              { 0x05 }
  235. sub SUBLANG_ENGLISH_EIRE            { 0x06 }
  236. sub SUBLANG_FRENCH                  { 0x01 }
  237. sub SUBLANG_FRENCH_BELGIAN          { 0x02 }
  238. sub SUBLANG_FRENCH_CANADIAN         { 0x03 }
  239. sub SUBLANG_FRENCH_SWISS            { 0x04 }
  240. sub SUBLANG_GERMAN                  { 0x01 }
  241. sub SUBLANG_GERMAN_SWISS            { 0x02 }
  242. sub SUBLANG_GERMAN_AUSTRIAN         { 0x03 }
  243. sub SUBLANG_ITALIAN                 { 0x01 }
  244. sub SUBLANG_ITALIAN_SWISS           { 0x02 }
  245. sub SUBLANG_NORWEGIAN_BOKMAL        { 0x01 }
  246. sub SUBLANG_NORWEGIAN_NYNORSK       { 0x02 }
  247. sub SUBLANG_PORTUGUESE              { 0x02 }
  248. sub SUBLANG_PORTUGUESE_BRAZILIAN    { 0x01 }
  249. sub SUBLANG_SERBO_CROATIAN_CYRILLIC { 0x02 }
  250. sub SUBLANG_SERBO_CROATIAN_LATIN    { 0x01 }
  251. sub SUBLANG_SPANISH                 { 0x01 }
  252. sub SUBLANG_SPANISH_MEXICAN         { 0x02 }
  253. sub SUBLANG_SPANISH_MODERN          { 0x03 }
  254.  
  255. # Country codes
  256. sub CTRY_DEFAULT                    { 0   }
  257. sub CTRY_AUSTRALIA                  { 61  }
  258. sub CTRY_AUSTRIA                    { 43  }
  259. sub CTRY_BELGIUM                    { 32  }
  260. sub CTRY_BRAZIL                     { 55  }
  261. sub CTRY_CANADA                     { 2   }
  262. sub CTRY_DENMARK                    { 45  }
  263. sub CTRY_FINLAND                    { 358 }
  264. sub CTRY_FRANCE                     { 33  }
  265. sub CTRY_GERMANY                    { 49  }
  266. sub CTRY_ICELAND                    { 354 }
  267. sub CTRY_IRELAND                    { 353 }
  268. sub CTRY_ITALY                      { 39  }
  269. sub CTRY_JAPAN                      { 81  }
  270. sub CTRY_MEXICO                     { 52  }
  271. sub CTRY_NETHERLANDS                { 31  }
  272. sub CTRY_NEW_ZEALAND                { 64  }
  273. sub CTRY_NORWAY                     { 47  }
  274. sub CTRY_PORTUGAL                   { 351 }
  275. sub CTRY_PRCHINA                    { 86  }
  276. sub CTRY_SOUTH_KOREA                { 82  }
  277. sub CTRY_SPAIN                      { 34  }
  278. sub CTRY_SWEDEN                     { 46  }
  279. sub CTRY_SWITZERLAND                { 41  }
  280. sub CTRY_TAIWAN                     { 886 }
  281. sub CTRY_UNITED_KINGDOM             { 44  }
  282. sub CTRY_UNITED_STATES              { 1   }
  283.  
  284. # Locale Types
  285. sub LOCALE_NOUSEROVERRIDE           { 0x80000000 }
  286. sub LOCALE_ILANGUAGE                { 0x0001 }
  287. sub LOCALE_SLANGUAGE                { 0x0002 }
  288. sub LOCALE_SENGLANGUAGE             { 0x1001 }
  289. sub LOCALE_SABBREVLANGNAME          { 0x0003 }
  290. sub LOCALE_SNATIVELANGNAME          { 0x0004 }
  291. sub LOCALE_ICOUNTRY                 { 0x0005 }
  292. sub LOCALE_SCOUNTRY                 { 0x0006 }
  293. sub LOCALE_SENGCOUNTRY              { 0x1002 }
  294. sub LOCALE_SABBREVCTRYNAME          { 0x0007 }
  295. sub LOCALE_SNATIVECTRYNAME          { 0x0008 }
  296. sub LOCALE_IDEFAULTLANGUAGE         { 0x0009 }
  297. sub LOCALE_IDEFAULTCOUNTRY          { 0x000A }
  298. sub LOCALE_IDEFAULTCODEPAGE         { 0x000B }
  299. sub LOCALE_IDEFAULTANSICODEPAGE     { 0x1004 }
  300. sub LOCALE_SLIST                    { 0x000C }
  301. sub LOCALE_IMEASURE                 { 0x000D }
  302. sub LOCALE_SDECIMAL                 { 0x000E }
  303. sub LOCALE_STHOUSAND                { 0x000F }
  304. sub LOCALE_SGROUPING                { 0x0010 }
  305. sub LOCALE_IDIGITS                  { 0x0011 }
  306. sub LOCALE_ILZERO                   { 0x0012 }
  307. sub LOCALE_INEGNUMBER               { 0x1010 }
  308. sub LOCALE_SNATIVEDIGITS            { 0x0013 }
  309. sub LOCALE_SCURRENCY                { 0x0014 }
  310. sub LOCALE_SINTLSYMBOL              { 0x0015 }
  311. sub LOCALE_SMONDECIMALSEP           { 0x0016 }
  312. sub LOCALE_SMONTHOUSANDSEP          { 0x0017 }
  313. sub LOCALE_SMONGROUPING             { 0x0018 }
  314. sub LOCALE_ICURRDIGITS              { 0x0019 }
  315. sub LOCALE_IINTLCURRDIGITS          { 0x001A }
  316. sub LOCALE_ICURRENCY                { 0x001B }
  317. sub LOCALE_INEGCURR                 { 0x001C }
  318. sub LOCALE_SDATE                    { 0x001D }
  319. sub LOCALE_STIME                    { 0x001E }
  320. sub LOCALE_SSHORTDATE               { 0x001F }
  321. sub LOCALE_SLONGDATE                { 0x0020 }
  322. sub LOCALE_STIMEFORMAT              { 0x1003 }
  323. sub LOCALE_IDATE                    { 0x0021 }
  324. sub LOCALE_ILDATE                   { 0x0022 }
  325. sub LOCALE_ITIME                    { 0x0023 }
  326. sub LOCALE_ITIMEMARKPOSN            { 0x1005 }
  327. sub LOCALE_ICENTURY                 { 0x0024 }
  328. sub LOCALE_ITLZERO                  { 0x0025 }
  329. sub LOCALE_IDAYLZERO                { 0x0026 }
  330. sub LOCALE_IMONLZERO                { 0x0027 }
  331. sub LOCALE_S1159                    { 0x0028 }
  332. sub LOCALE_S2359                    { 0x0029 }
  333. sub LOCALE_ICALENDARTYPE            { 0x1009 }
  334. sub LOCALE_IOPTIONALCALENDAR        { 0x100B }
  335. sub LOCALE_IFIRSTDAYOFWEEK          { 0x100C }
  336. sub LOCALE_IFIRSTWEEKOFYEAR         { 0x100D }
  337. sub LOCALE_SDAYNAME1                { 0x002A }
  338. sub LOCALE_SDAYNAME2                { 0x002B }
  339. sub LOCALE_SDAYNAME3                { 0x002C }
  340. sub LOCALE_SDAYNAME4                { 0x002D }
  341. sub LOCALE_SDAYNAME5                { 0x002E }
  342. sub LOCALE_SDAYNAME6                { 0x002F }
  343. sub LOCALE_SDAYNAME7                { 0x0030 }
  344. sub LOCALE_SABBREVDAYNAME1          { 0x0031 }
  345. sub LOCALE_SABBREVDAYNAME2          { 0x0032 }
  346. sub LOCALE_SABBREVDAYNAME3          { 0x0033 }
  347. sub LOCALE_SABBREVDAYNAME4          { 0x0034 }
  348. sub LOCALE_SABBREVDAYNAME5          { 0x0035 }
  349. sub LOCALE_SABBREVDAYNAME6          { 0x0036 }
  350. sub LOCALE_SABBREVDAYNAME7          { 0x0037 }
  351. sub LOCALE_SMONTHNAME1              { 0x0038 }
  352. sub LOCALE_SMONTHNAME2              { 0x0039 }
  353. sub LOCALE_SMONTHNAME3              { 0x003A }
  354. sub LOCALE_SMONTHNAME4              { 0x003B }
  355. sub LOCALE_SMONTHNAME5              { 0x003C }
  356. sub LOCALE_SMONTHNAME6              { 0x003D }
  357. sub LOCALE_SMONTHNAME7              { 0x003E }
  358. sub LOCALE_SMONTHNAME8              { 0x003F }
  359. sub LOCALE_SMONTHNAME9              { 0x0040 }
  360. sub LOCALE_SMONTHNAME10             { 0x0041 }
  361. sub LOCALE_SMONTHNAME11             { 0x0042 }
  362. sub LOCALE_SMONTHNAME12             { 0x0043 }
  363. sub LOCALE_SMONTHNAME13             { 0x100E }
  364. sub LOCALE_SABBREVMONTHNAME1        { 0x0044 }
  365. sub LOCALE_SABBREVMONTHNAME2        { 0x0045 }
  366. sub LOCALE_SABBREVMONTHNAME3        { 0x0046 }
  367. sub LOCALE_SABBREVMONTHNAME4        { 0x0047 }
  368. sub LOCALE_SABBREVMONTHNAME5        { 0x0048 }
  369. sub LOCALE_SABBREVMONTHNAME6        { 0x0049 }
  370. sub LOCALE_SABBREVMONTHNAME7        { 0x004A }
  371. sub LOCALE_SABBREVMONTHNAME8        { 0x004B }
  372. sub LOCALE_SABBREVMONTHNAME9        { 0x004C }
  373. sub LOCALE_SABBREVMONTHNAME10       { 0x004D }
  374. sub LOCALE_SABBREVMONTHNAME11       { 0x004E }
  375. sub LOCALE_SABBREVMONTHNAME12       { 0x004F }
  376. sub LOCALE_SABBREVMONTHNAME13       { 0x100F }
  377. sub LOCALE_SPOSITIVESIGN            { 0x0050 }
  378. sub LOCALE_SNEGATIVESIGN            { 0x0051 }
  379. sub LOCALE_IPOSSIGNPOSN             { 0x0052 }
  380. sub LOCALE_INEGSIGNPOSN             { 0x0053 }
  381. sub LOCALE_IPOSSYMPRECEDES          { 0x0054 }
  382. sub LOCALE_IPOSSEPBYSPACE           { 0x0055 }
  383. sub LOCALE_INEGSYMPRECEDES          { 0x0056 }
  384. sub LOCALE_INEGSEPBYSPACE           { 0x0057 }
  385.  
  386. # GetTimeFormat Flags
  387. sub TIME_NOMINUTESORSECONDS         { 0x0001 }
  388. sub TIME_NOSECONDS                  { 0x0002 }
  389. sub TIME_NOTIMEMARKER               { 0x0004 }
  390. sub TIME_FORCE24HOURFORMAT          { 0x0008 }
  391.  
  392. # GetDateFormat Flags
  393. sub DATE_SHORTDATE            { 0x0001 }
  394. sub DATE_LONGDATE                   { 0x0002 }
  395. sub DATE_USE_ALT_CALENDAR           { 0x0004 }
  396. sub DATE_YEARMONTH                  { 0x0008 }
  397. sub DATE_LTRREADING                 { 0x0010 }
  398. sub DATE_RTLREADING                 { 0x0020 }
  399.  
  400. # Language Identifier Functions
  401. sub MAKELANGID       { my ($p,$s) = @_; (($s & 0xffff) << 10) | ($p & 0xffff); }
  402. sub PRIMARYLANGID  { my $lgid = shift; $lgid & 0x3ff; }
  403. sub SUBLANGID       { my $lgid = shift; ($lgid >> 10) & 0x3f; }
  404.  
  405. sub LANG_SYSTEM_DEFAULT { MAKELANGID(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT); }
  406. sub LANG_USER_DEFAULT   { MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT); }
  407.  
  408. # Locale Identifier Functions
  409. sub MAKELCID       { my $lgid = shift; $lgid & 0xffff; }
  410. sub LANGIDFROMLCID { my $lcid = shift; $lcid & 0xffff; }
  411.  
  412. sub LOCALE_SYSTEM_DEFAULT { MAKELCID(LANG_SYSTEM_DEFAULT); }
  413. sub LOCALE_USER_DEFAULT   { MAKELCID(LANG_USER_DEFAULT); }
  414.  
  415. 1;
  416.  
  417. __END__
  418.  
  419. =head1 NAME
  420.  
  421. Win32::OLE::NLS - OLE National Language Support
  422.  
  423. =head1 SYNOPSIS
  424.  
  425.     missing
  426.  
  427. =head1 DESCRIPTION
  428.  
  429. This module provides access to the national language support features
  430. in the F<OLENLS.DLL>.
  431.  
  432. =head2 Functions
  433.  
  434. =over 8
  435.  
  436. =item CompareString(LCID,FLAGS,STR1,STR2)
  437.  
  438. Compare STR1 and STR2 in the LCID locale.  FLAGS indicate the character
  439. traits to be used or ignored when comparing the two strings.
  440.  
  441.     NORM_IGNORECASE        Ignore case
  442.     NORM_IGNOREKANATYPE    Ignore hiragana/katakana character differences
  443.     NORM_IGNORENONSPACE    Ignore accents, diacritics, and vowel marks
  444.     NORM_IGNORESYMBOLS    Ignore symbols
  445.     NORM_IGNOREWIDTH    Ignore character width
  446.  
  447. Possible return values are:
  448.  
  449.     0    Function failed
  450.     1    STR1 is less than STR2
  451.     2    STR1 is equal to STR2
  452.     3    STR1 is greater than STR2
  453.  
  454. Note that you can subtract 2 from the return code to get values
  455. comparable to the C<cmp> operator.
  456.  
  457. =item LCMapString(LCID,FLAGS,STR)
  458.  
  459. LCMapString translates STR using LCID dependent translation.
  460. Flags contains a combination of the following options:
  461.  
  462.     LCMAP_LOWERCASE        Lowercase
  463.     LCMAP_UPPERCASE        Uppercase
  464.     LCMAP_HALFWIDTH        Narrow characters
  465.     LCMAP_FULLWIDTH        Wide characters
  466.     LCMAP_HIRAGANA        Hiragana
  467.     LCMAP_KATAKANA        Katakana
  468.     LCMAP_SORTKEY        Character sort key
  469.  
  470. The following normalization options can be combined with C<LCMAP_SORTKEY>:
  471.  
  472.     NORM_IGNORECASE        Ignore case
  473.     NORM_IGNOREKANATYPE    Ignore hiragana/katakana character differences
  474.     NORM_IGNORENONSPACE    Ignore accents, diacritics, and vowel marks
  475.     NORM_IGNORESYMBOLS    Ignore symbols
  476.     NORM_IGNOREWIDTH    Ignore character width
  477.  
  478. The return value is the translated string.
  479.  
  480. =item GetLocaleInfo(LCID,LCTYPE)
  481.  
  482. Retrieve locale setting LCTYPE from the locale specified by LCID.  Use
  483. LOCALE_NOUSEROVERRIDE | LCTYPE to always query the locale database.
  484. Otherwise user changes to C<win.ini> through the windows control panel
  485. take precedence when retrieving values for the system default locale.
  486. See the documentation below for a list of valid LCTYPE values.
  487.  
  488. The return value is the contents of the requested locale setting.
  489.  
  490. =item GetStringType(LCID,TYPE,STR)
  491.  
  492. Retrieve type information from locale LCID about each character in STR.
  493. The requested TYPE can be one of the following 3 levels:
  494.  
  495.     CT_CTYPE1        ANSI C and POSIX type information
  496.     CT_CTYPE2        Text layout type information
  497.     CT_CTYPE3        Text processing type information
  498.  
  499. The return value is a list of values, each of wich is a bitwise OR of
  500. the applicable type bits from the corresponding table below:
  501.  
  502.     @ct = GetStringType(LOCALE_SYSTEM_DEFAULT, CT_CTYPE1, "String");
  503.  
  504. ANSI C and POSIX character type information:
  505.  
  506.     C1_UPPER        Uppercase
  507.     C1_LOWER        Lowercase
  508.     C1_DIGIT        Decimal digits
  509.     C1_SPACE        Space characters
  510.     C1_PUNCT        Punctuation
  511.     C1_CNTRL        Control characters
  512.     C1_BLANK        Blank characters
  513.     C1_XDIGIT        Hexadecimal digits
  514.     C1_ALPHA        Any letter
  515.  
  516. Text layout type information:
  517.  
  518.     C2_LEFTTORIGHT        Left to right
  519.     C2_RIGHTTOLEFT        Right to left
  520.     C2_EUROPENUMBER        European number, European digit
  521.     C2_EUROPESEPARATOR    European numeric separator
  522.     C2_EUROPETERMINATOR    European numeric terminator
  523.     C2_ARABICNUMBER        Arabic number
  524.     C2_COMMONSEPARATOR    Common numeric separator
  525.     C2_BLOCKSEPARATOR    Block separator
  526.     C2_SEGMENTSEPARATOR    Segment separator
  527.     C2_WHITESPACE        White space
  528.     C2_OTHERNEUTRAL        Other neutrals
  529.     C2_NOTAPPLICABLE    No implicit direction (e.g. ctrl codes)
  530.  
  531. Text precessing type information:
  532.  
  533.     C3_NONSPACING        Nonspacing mark
  534.     C3_DIACRITIC        Diacritic nonspacing mark
  535.     C3_VOWELMARK        Vowel nonspacing mark
  536.     C3_SYMBOL        Symbol
  537.     C3_KATAKANA        Katakana character
  538.     C3_HIRAGANA        Hiragana character
  539.     C3_HALFWIDTH        Narrow character
  540.     C3_FULLWIDTH        Wide character
  541.     C3_IDEOGRAPH        Ideograph
  542.     C3_ALPHA        Any letter
  543.     C3_NOTAPPLICABLE    Not applicable
  544.  
  545.  
  546. =item GetSystemDefaultLangID()
  547.  
  548. Returns the system default language identifier.
  549.  
  550. =item GetSystemDefaultLCID()
  551.  
  552. Returns the system default locale identifier.
  553.  
  554. =item GetUserDefaultLangID()
  555.  
  556. Returns the user default language identifier.
  557.  
  558. =item GetUserDefaultLCID()
  559.  
  560. Returns the user default locale identifier.
  561.  
  562. =item SendSettingChange()
  563.  
  564. Sends a WM_SETTINGCHANGE message to all top level windows.
  565.  
  566. =item SetLocaleInfo(LCID, LCTYPE, LCDATA)
  567.  
  568. Changes an item in the user override part of the locale setting LCID.
  569. It doesn't change the system default database.  The following LCTYPEs are
  570. changeable:
  571.  
  572.     LOCALE_ICALENDARTYPE    LOCALE_SDATE
  573.     LOCALE_ICURRDIGITS    LOCALE_SDECIMAL
  574.     LOCALE_ICURRENCY    LOCALE_SGROUPING
  575.     LOCALE_IDIGITS        LOCALE_SLIST
  576.     LOCALE_IFIRSTDAYOFWEEK    LOCALE_SLONGDATE
  577.     LOCALE_IFIRSTWEEKOFYEAR    LOCALE_SMONDECIMALSEP
  578.     LOCALE_ILZERO        LOCALE_SMONGROUPING
  579.     LOCALE_IMEASURE        LOCALE_SMONTHOUSANDSEP
  580.     LOCALE_INEGCURR        LOCALE_SNEGATIVESIGN
  581.     LOCALE_INEGNUMBER    LOCALE_SPOSITIVESIGN
  582.     LOCALE_IPAPERSIZE    LOCALE_SSHORTDATE
  583.     LOCALE_ITIME        LOCALE_STHOUSAND
  584.     LOCALE_S1159        LOCALE_STIME
  585.     LOCALE_S2359        LOCALE_STIMEFORMAT
  586.     LOCALE_SCURRENCY    LOCALE_SYEARMONTH
  587.  
  588. You have to call SendSettingChange() to activate these changes for
  589. subsequent Win32::OLE::Variant object formatting because the OLE
  590. subsystem seems to cache locale information.
  591.  
  592. =item MAKELANGID(LANG,SUBLANG)
  593.  
  594. Creates a lnguage identifier from a primary language and a sublanguage.
  595.  
  596. =item PRIMARYLANGID(LANGID)
  597.  
  598. Retrieves the primary language from a language identifier.
  599.  
  600. =item SUBLANGID(LANGID)
  601.  
  602. Retrieves the sublanguage from a language identifier.
  603.  
  604. =item MAKELCID(LANGID)
  605.  
  606. Creates a locale identifies from a language identifier.
  607.  
  608. =item LANGIDFROMLCID(LCID)
  609.  
  610. Retrieves a language identifier from a locale identifier.
  611.  
  612. =back
  613.  
  614. =head2 Locale Types
  615.  
  616. =over 8
  617.  
  618. =item LOCALE_ILANGUAGE
  619.  
  620. The language identifier (in hex).
  621.  
  622. =item LOCALE_SLANGUAGE
  623.  
  624. The localized name of the language.
  625.  
  626. =item LOCALE_SENGLANGUAGE
  627.  
  628. The ISO Standard 639 English name of the language.
  629.  
  630. =item LOCALE_SABBREVLANGNAME
  631.  
  632. The three-letter abbreviated name of the language.  The first two
  633. letters are from the ISO Standard 639 language name abbreviation.  The
  634. third letter indicates the sublanguage type.
  635.  
  636. =item LOCALE_SNATIVELANGNAME
  637.  
  638. The native name of the language.
  639.  
  640. =item LOCALE_ICOUNTRY
  641.  
  642. The country code, which is based on international phone codes.
  643.  
  644. =item LOCALE_SCOUNTRY
  645.  
  646. The localized name of the country.
  647.  
  648. =item LOCALE_SENGCOUNTRY
  649.  
  650. The English name of the country.
  651.  
  652. =item LOCALE_SABBREVCTRYNAME
  653.  
  654. The ISO Standard 3166 abbreviated name of the country.
  655.  
  656. =item LOCALE_SNATIVECTRYNAME
  657.  
  658. The native name of the country.
  659.  
  660. =item LOCALE_IDEFAULTLANGUAGE
  661.  
  662. Language identifier for the principal language spoken in this
  663. locale.
  664.  
  665. =item LOCALE_IDEFAULTCOUNTRY
  666.  
  667. Country code for the principal country in this locale.
  668.  
  669. =item LOCALE_IDEFAULTANSICODEPAGE
  670.  
  671. The ANSI code page associated with this locale.  Format: 4 Unicode
  672. decimal digits plus a Unicode null terminator.
  673.  
  674. XXX This should be translated by GetLocaleInfo. XXX
  675.  
  676. =item LOCALE_IDEFAULTCODEPAGE
  677.  
  678. The OEM code page associated with the country.
  679.  
  680. =item LOCALE_SLIST
  681.  
  682. Characters used to separate list items (often a comma).
  683.  
  684. =item LOCALE_IMEASURE
  685.  
  686. Default measurement system:
  687.  
  688.     0    metric system (S.I.)
  689.     1    U.S. system
  690.  
  691. =item LOCALE_SDECIMAL
  692.  
  693. Characters used for the decimal separator (often a dot).
  694.  
  695. =item LOCALE_STHOUSAND
  696.  
  697. Characters used as the separator between groups of digits left of the decimal.
  698.  
  699. =item LOCALE_SGROUPING
  700.  
  701. Sizes for each group of digits to the left of the decimal.  An explicit
  702. size is required for each group.  Sizes are separated by semicolons.  If
  703. the last value is 0, the preceding value is repeated.  To group
  704. thousands, specify 3;0.
  705.  
  706. =item LOCALE_IDIGITS
  707.  
  708. The number of fractional digits.
  709.  
  710. =item LOCALE_ILZERO
  711.  
  712. Whether to use leading zeros in decimal fields.  A setting of 0
  713. means use no leading zeros; 1 means use leading zeros.
  714.  
  715. =item LOCALE_SNATIVEDIGITS
  716.  
  717. The ten characters that are the native equivalent of the ASCII 0-9.
  718.  
  719. =item LOCALE_INEGNUMBER
  720.  
  721. Negative number mode.
  722.  
  723.     0     (1.1)
  724.     1     -1.1
  725.     2     -1.1
  726.     3     1.1
  727.     4     1.1
  728.  
  729. =item LOCALE_SCURRENCY
  730.  
  731. The string used as the local monetary symbol.
  732.  
  733. =item LOCALE_SINTLSYMBOL
  734.  
  735. Three characters of the International monetary symbol specified in ISO
  736. 4217, Codes for the Representation of Currencies and Funds, followed
  737. by the character separating this string from the amount.
  738.  
  739. =item LOCALE_SMONDECIMALSEP
  740.  
  741. Characters used for the monetary decimal separators.
  742.  
  743. =item LOCALE_SMONTHOUSANDSEP
  744.  
  745. Characters used as monetary separator between groups of digits left of
  746. the decimal.
  747.  
  748. =item LOCALE_SMONGROUPING
  749.  
  750. Sizes for each group of monetary digits to the left of the decimal.  An
  751. explicit size is needed for each group.  Sizes are separated by
  752. semicolons.  If the last value is 0, the preceding value is
  753. repeated.  To group thousands, specify 3;0.
  754.  
  755. =item LOCALE_ICURRDIGITS
  756.  
  757. Number of fractional digits for the local monetary format.
  758.  
  759. =item LOCALE_IINTLCURRDIGITS
  760.  
  761. Number of fractional digits for the international monetary format.
  762.  
  763. =item LOCALE_ICURRENCY
  764.  
  765. Positive currency mode.
  766.  
  767.     0    Prefix, no separation.
  768.     1    Suffix, no separation.
  769.     2    Prefix, 1-character separation.
  770.     3    Suffix, 1-character separation.
  771.  
  772. =item LOCALE_INEGCURR
  773.  
  774. Negative currency mode.
  775.  
  776.     0    ($1.1)
  777.     1    -$1.1
  778.     2    $-1.1
  779.     3    $1.1-
  780.     4    $(1.1$)
  781.     5    -1.1$
  782.     6    1.1-$
  783.     7    1.1$-
  784.     8    -1.1 $ (space before $)
  785.     9    -$ 1.1 (space after $)
  786.     10    1.1 $- (space before $)
  787.  
  788. =item LOCALE_ICALENDARTYPE
  789.  
  790. The type of calendar currently in use.
  791.  
  792.     1    Gregorian (as in U.S.)
  793.     2    Gregorian (always English strings)
  794.     3    Era: Year of the Emperor (Japan)
  795.     4    Era: Year of the Republic of China
  796.     5    Tangun Era (Korea)
  797.  
  798. =item LOCALE_IOPTIONALCALENDAR
  799.  
  800. The additional calendar types available for this LCID.  Can be a
  801. null-separated list of all valid optional calendars.  Value is
  802. 0 for "None available" or any of the LOCALE_ICALENDARTYPE settings.
  803.  
  804. XXX null separated list should be translated by GetLocaleInfo XXX
  805.  
  806. =item LOCALE_SDATE
  807.  
  808. Characters used for the date separator.
  809.  
  810. =item LOCALE_STIME
  811.  
  812. Characters used for the time separator.
  813.  
  814. =item LOCALE_STIMEFORMAT
  815.  
  816. Time-formatting string.
  817.  
  818. =item LOCALE_SSHORTDATE
  819.  
  820. Short Date_Time formatting strings for this locale.
  821.  
  822. =item LOCALE_SLONGDATE
  823.  
  824. Long Date_Time formatting strings for this locale.
  825.  
  826. =item LOCALE_IDATE
  827.  
  828. Short Date format-ordering specifier.
  829.  
  830.     0    Month - Day - Year
  831.     1    Day - Month - Year
  832.     2    Year - Month - Day
  833.  
  834. =item LOCALE_ILDATE
  835.  
  836. Long Date format ordering specifier.  Value can be any of the valid
  837. LOCALE_IDATE settings.
  838.  
  839. =item LOCALE_ITIME
  840.  
  841. Time format specifier.
  842.  
  843.     0    AM/PM 12-hour format.
  844.     1    24-hour format.
  845.  
  846. =item LOCALE_ITIMEMARKPOSN
  847.  
  848. Whether the time marker string (AM|PM) precedes or follows the time
  849. string.
  850.     0 Suffix (9:15 AM).
  851.     1 Prefix (AM 9:15).
  852.  
  853. =item LOCALE_ICENTURY
  854.  
  855. Whether to use full 4-digit century.
  856.  
  857.     0    Two digit.
  858.     1    Full century.
  859.  
  860. =item LOCALE_ITLZERO
  861.  
  862. Whether to use leading zeros in time fields.
  863.  
  864.     0    No leading zeros.
  865.     1    Leading zeros for hours.
  866.  
  867. =item LOCALE_IDAYLZERO
  868.  
  869. Whether to use leading zeros in day fields.  Values as for
  870. LOCALE_ITLZERO.
  871.  
  872. =item LOCALE_IMONLZERO
  873.  
  874. Whether to use leading zeros in month fields.  Values as for
  875. LOCALE_ITLZERO.
  876.  
  877. =item LOCALE_S1159
  878.  
  879. String for the AM designator.
  880.  
  881. =item LOCALE_S2359
  882.  
  883. String for the PM designator.
  884.  
  885. =item LOCALE_IFIRSTWEEKOFYEAR
  886.  
  887. Specifies which week of the year is considered first.
  888.  
  889.     0    Week containing 1/1 is the first week of the year.
  890.     1    First full week following 1/1is the first week of the year.
  891.     2    First week with at least 4 days is the first week of the year.
  892.  
  893. =item LOCALE_IFIRSTDAYOFWEEK
  894.  
  895. Specifies the day considered first in the week.  Value "0" means
  896. SDAYNAME1 and value "6" means SDAYNAME7.
  897.  
  898. =item LOCALE_SDAYNAME1 .. LOCALE_SDAYNAME7
  899.  
  900. Long name for Monday .. Sunday.
  901.  
  902. =item LOCALE_SABBREVDAYNAME1 .. LOCALE_SABBREVDAYNAME7
  903.  
  904. Abbreviated name for Monday .. Sunday.
  905.  
  906. =item LOCALE_SMONTHNAME1 .. LOCALE_SMONTHNAME12
  907.  
  908. Long name for January .. December.
  909.  
  910. =item LOCALE_SMONTHNAME13
  911.  
  912. Native name for 13th month, if it exists.
  913.  
  914. =item LOCALE_SABBREVMONTHNAME1 .. LOCALE_SABBREVMONTHNAME12
  915.  
  916. Abbreviated name for January .. December.
  917.  
  918. =item LOCALE_SABBREVMONTHNAME13
  919.  
  920. Native abbreviated name for 13th month, if it exists.
  921.  
  922. =item LOCALE_SPOSITIVESIGN
  923.  
  924. String value for the positive sign.
  925.  
  926. =item LOCALE_SNEGATIVESIGN
  927.  
  928. String value for the negative sign.
  929.  
  930. =item LOCALE_IPOSSIGNPOSN
  931.  
  932. Formatting index for positive values.
  933.  
  934.     0 Parentheses surround the amount and the monetary symbol.
  935.     1 The sign string precedes the amount and the monetary symbol.
  936.     2 The sign string precedes the amount and the monetary symbol.
  937.     3 The sign string precedes the amount and the monetary symbol.
  938.     4 The sign string precedes the amount and the monetary symbol.
  939.  
  940. =item LOCALE_INEGSIGNPOSN
  941.  
  942. Formatting index for negative values.  Values as for LOCALE_IPOSSIGNPOSN.
  943.  
  944. =item LOCALE_IPOSSYMPRECEDES
  945.  
  946. If the monetary symbol precedes, 1.  If it succeeds a positive amount, 0.
  947.  
  948. =item LOCALE_IPOSSEPBYSPACE
  949.  
  950. If the monetary symbol is separated by a space from a positive amount,
  951. 1.  Otherwise, 0.
  952.  
  953. =item LOCALE_INEGSYMPRECEDES
  954.  
  955. If the monetary symbol precedes, 1.  If it succeeds a negative amount, 0.
  956.  
  957. =item LOCALE_INEGSEPBYSPACE
  958.  
  959. If the monetary symbol is separated by a space from a negative amount,
  960. 1.  Otherwise, 0.
  961.  
  962. =back
  963.  
  964. =head1 AUTHORS/COPYRIGHT
  965.  
  966. This module is part of the Win32::OLE distribution.
  967.  
  968. =cut
  969.