Jump to content

UniQueryLocaleItem: Difference between revisions

From EDM2
Ak120 (talk | contribs)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== UniQueryLocaleItem ==
Get the locale information.
; UniQueryLocaleItem(localeObj, queryItem, result) : Get the locale information.
 
=== Syntax ===
UniQueryLocaleItem(localeObj, queryItem, result);


=== Parameters ===
=== Parameters ===
Line 6: Line 8:
;queryItem - [[LocaleItem]] - input : The item to be queried.
;queryItem - [[LocaleItem]] - input : The item to be queried.
;result - [[UniChar]] - output : The locale information received.
;result - [[UniChar]] - output : The locale information received.
=== Constants ===
None


=== Returns ===
=== Returns ===
An integer with values of:
An integer with values of:
*[[OS2 API:Unicode:error#ULS_INVALID|ULS_INVALID]]
*[[Unicode Errors|ULS_INVALID]]
*[[OS2 API:Unicode:error#ULS_SUCCESS|ULS_SUCCESS]]
*[[Unicode Errors|ULS_SUCCESS]]


=== Calling conversion ===
=== Calling Convention===
[[Cdecl32]]
[[Cdecl32]]


Line 28: Line 27:


=== Related Functions ===
=== Related Functions ===
*[[UniSetUserLocaleItem]]
*UniSetUserLocaleItem


=== Notes ===
=== Notes ===
'''UniQueryLocaleItem''' returns a pointer in result to a null-terminated [[UniChar]] string containing information found in the locale object identified by localeObj about the language or cultural item named by the item argument. '''UniQueryLocaleItem''' allocates the memory to hold the [[UniChar]] string and returns a pointer in result. Use [[UniFreeMem]] to free the memory associated with result by [[UniQueryLocaleItem]].
'''UniQueryLocaleItem''' returns a pointer in result to a null-terminated [[UniChar]] string containing information found in the locale object identified by localeObj about the language or cultural item named by the item argument. '''UniQueryLocaleItem''' allocates the memory to hold the [[UniChar]] string and returns a pointer in result. Use '''UniFreeMem''' to free the memory associated with result by [[UniQueryLocaleItem]].


The constant names and values for queryItem are contained in ulsitem.h:  
The constant names and values for queryItem are contained in ulsitem.h:  
Line 37: Line 36:
!Item Name||Item Description
!Item Name||Item Description
|-
|-
|[[LOCI#LOCI_sDateTime|LOCI_sDateTime]]
|LOCI_sDateTime||Date and time format string
|Date and time format string
|-
|-
|[[LOCI#LOCI_sShortDate|LOCI_sShortDate]]
|LOCI_sShortDate||Short date format
|Short date format
|-
|-
|[[LOCI#LOCI_sTimeFormat|LOCI_sTimeFormat]]
|LOCI_sTimeFormat||Time format string
|Time format string
|-
|-
|[[LOCI#LOCI_s1159|LOCI_s1159]]
|LOCI_s1159||AM string
|AM string
|-
|-
|[[LOCI#LOCI_s2359|LOCI_s2359]]
|LOCI_s2359||PM string
|PM string
|-
|-
|[[LOCI#LOCI_sAbbrevDayName7|LOCI_sAbbrevDayName7]]
|LOCI_sAbbrevDayName7||Abbreviation of day 7 (Sun)
|Abbreviation of day 7 (Sun)
|-
|-
|[[LOCI#LOCI_sAbbrevDayName1|LOCI_sAbbrevDayName1]]
|LOCI_sAbbrevDayName1||Abbreviation of day 1 (Mon)
|Abbreviation of day 1 (Mon)
|-
|-
|[[LOCI#LOCI_sAbbrevDayName2|LOCI_sAbbrevDayName2]]
|LOCI_sAbbrevDayName2||Abbreviation of day 2 (Tue)
|Abbreviation of day 2 (Tue)
|-
|-
|[[LOCI#LOCI_sAbbrevDayName3|LOCI_sAbbrevDayName3]]
|LOCI_sAbbrevDayName3||Abbreviation of day 3 (Wed)
|Abbreviation of day 3 (Wed)
|-
|-
|[[LOCI#LOCI_sAbbrevDayName4|LOCI_sAbbrevDayName4]]
|LOCI_sAbbrevDayName4||Abbreviation of day 4 (Thu)
|Abbreviation of day 4 (Thu)
|-
|-
|[[LOCI#LOCI_sAbbrevDayName5|LOCI_sAbbrevDayName5]]
|LOCI_sAbbrevDayName5||Abbreviation of day 5 (Fri)
|Abbreviation of day 5 (Fri)
|-
|-
|[[LOCI#LOCI_sAbbrevDayName6|LOCI_sAbbrevDayName6]]
|LOCI_sAbbrevDayName6||Abbreviation of day 6 (Sat)
|Abbreviation of day 6 (Sat)
|-
|-
|[[LOCI#LOCI_sDayName7|LOCI_sDayName7]]
|LOCI_sDayName7||Name of day of week 7 (Sun)
|Name of day of week 7 (Sun)
|-
|-
|[[LOCI#LOCI_sDayName1|LOCI_sDayName1]]
|LOCI_sDayName1||Name of day of week 1 (Mon)
|Name of day of week 1 (Mon)
|-
|-
|[[LOCI#LOCI_sDayName2|LOCI_sDayName2]]
|LOCI_sDayName2||Name of day of week 2 (Tue)
|Name of day of week 2 (Tue)
|-
|-
|[[LOCI#LOCI_sDayName3|LOCI_sDayName3]]
|LOCI_sDayName3||Name of day of week 3 (Wed)
|Name of day of week 3 (Wed)
|-
|-
|[[LOCI#LOCI_sDayName4|LOCI_sDayName4]]
|LOCI_sDayName4||Name of day of week 4 (Thu)
|Name of day of week 4 (Thu)
|-
|-
|[[LOCI#LOCI_sDayName5|LOCI_sDayName5]]
|LOCI_sDayName5||Name of day of week 5 (Fri)
|Name of day of week 5 (Fri)
|-
|-
|[[LOCI#LOCI_sDayName6|LOCI_sDayName6]]
|LOCI_sDayName6||Name of day of week 6 (Sat)
|Name of day of week 6 (Sat)
|-
|-
|[[LOCI#LOCI_sAbbrevMonthName1|LOCI_sAbbrevMonthName1]]
|LOCI_sAbbrevMonthName1||Abbreviation of month 1
|Abbreviation of month 1
|-
|-
|[[LOCI#LOCI_sAbbrevMonthName2|LOCI_sAbbrevMonthName2]]
|LOCI_sAbbrevMonthName2||Abbreviation of month 2
|Abbreviation of month 2
|-
|-
|[[LOCI#LOCI_sAbbrevMonthName3|LOCI_sAbbrevMonthName3]]
|LOCI_sAbbrevMonthName3||Abbreviation of month 3
|Abbreviation of month 3
|-
|-
|[[LOCI#LOCI_sAbbrevMonthName4|LOCI_sAbbrevMonthName4]]
|LOCI_sAbbrevMonthName4||Abbreviation of month 4
|Abbreviation of month 4
|-
|-
|[[LOCI#LOCI_sAbbrevMonthName5|LOCI_sAbbrevMonthName5]]
|LOCI_sAbbrevMonthName5||Abbreviation of month 5
|Abbreviation of month 5
|-
|-
|[[LOCI#LOCI_sAbbrevMonthName6|LOCI_sAbbrevMonthName6]]
|LOCI_sAbbrevMonthName6||Abbreviation of month 6
|Abbreviation of month 6
|-
|-
|[[LOCI#LOCI_sAbbrevMonthName7|LOCI_sAbbrevMonthName7]]
|LOCI_sAbbrevMonthName7||Abbreviation of month 7
|Abbreviation of month 7
|-
|-
|[[LOCI#LOCI_sAbbrevMonthName8|LOCI_sAbbrevMonthName8]]
|LOCI_sAbbrevMonthName8||Abbreviation of month 8
|Abbreviation of month 8
|-
|-
|[[LOCI#LOCI_sAbbrevMonthName9|LOCI_sAbbrevMonthName9]]
|LOCI_sAbbrevMonthName9||Abbreviation of month 9
|Abbreviation of month 9
|-
|-
|[[LOCI#LOCI_sAbbrevMonthName10|LOCI_sAbbrevMonthName10]]
|LOCI_sAbbrevMonthName10||Abbreviation of month 10
|Abbreviation of month 10
|-
|-
|[[LOCI#LOCI_sAbbrevMonthName11|LOCI_sAbbrevMonthName11]]
|LOCI_sAbbrevMonthName11||Abbreviation of month 11
|Abbreviation of month 11
|-
|-
|[[LOCI#LOCI_sAbbrevMonthName12|LOCI_sAbbrevMonthName12]]
|LOCI_sAbbrevMonthName12||Abbreviation of month 12
|Abbreviation of month 12
|-
|-
|[[LOCI#LOCI_sMonthName1|LOCI_sMonthName1]]
|LOCI_sMonthName1||Name of month 1
|Name of month 1
|-
|-
|[[LOCI#LOCI_sMonthName2|LOCI_sMonthName2]]
|LOCI_sMonthName2||Name of month 2
|Name of month 2
|-
|-
|[[LOCI#LOCI_sMonthName3|LOCI_sMonthName3]]
|LOCI_sMonthName3||Name of month 3
|Name of month 3
|-
|-
|[[LOCI#LOCI_sMonthName4|LOCI_sMonthName4]]
|LOCI_sMonthName4||Name of month 4
|Name of month 4
|-
|-
|[[LOCI#LOCI_sMonthName5|LOCI_sMonthName5]]
|LOCI_sMonthName5||Name of month 5
|Name of month 5
|-
|-
|[[LOCI#LOCI_sMonthName6|LOCI_sMonthName6]]
|LOCI_sMonthName6||Name of month 6
|Name of month 6
|-
|-
|[[LOCI#LOCI_sMonthName7|LOCI_sMonthName7]]
|LOCI_sMonthName7||Name of month 7
|Name of month 7
|-
|-
|[[LOCI#LOCI_sMonthName8|LOCI_sMonthName8]]
|LOCI_sMonthName8||Name of month 8
|Name of month 8
|-
|-
|[[LOCI#LOCI_sMonthName9|LOCI_sMonthName9]]
|LOCI_sMonthName9||Name of month 9
|Name of month 9
|-
|-
|[[LOCI#LOCI_sMonthName10|LOCI_sMonthName10]]
|LOCI_sMonthName10||Name of month 10
|Name of month 10
|-
|-
|[[LOCI#LOCI_sMonthName11|LOCI_sMonthName11]]
|LOCI_sMonthName11||Name of month 11
|Name of month 11
|-
|-
|[[LOCI#LOCI_sMonthName12|LOCI_sMonthName12]]
|LOCI_sMonthName12||Name of month 12
|Name of month 12
|-
|-
|[[LOCI#LOCI_sDecimal|LOCI_sDecimal]]
|LOCI_sDecimal||Decimal point
|Decimal point
|-
|-
|[[LOCI#LOCI_sThousand|LOCI_sThousand]]
|LOCI_sThousand||Triad separator
|Triad separator
|-
|-
|[[LOCI#LOCI_sYesString|LOCI_sYesString]]
|LOCI_sYesString||Yes string
|Yes string
|-
|-
|[[LOCI#LOCI_sNoString|LOCI_sNoString]]
|LOCI_sNoString||No string
|No string
|-
|-
|[[LOCI#LOCI_sCurrency|LOCI_sCurrency]]
|LOCI_sCurrency||Currency symbol
|Currency symbol
|-
|-
|[[LOCI#LOCI_sCodeSet|LOCI_sCodeSet]]
|LOCI_sCodeSet||Locale codeset
|Locale codeset
|-
|-
|[[LOCI#LOCI_xLocaleToken|LOCI_xLocaleToken]]
|LOCI_xLocaleToken||IBM Locale Token
|IBM Locale Token
|-
|-
|[[LOCI#LOCI_xWinLocale|LOCI_xWinLocale]]
|LOCI_xWinLocale||Win32 Locale ID
|Win32 Locale ID
|-
|-
|[[LOCI#LOCI_iLocaleResnum|LOCI_iLocaleResnum]]
|LOCI_iLocaleResnum||Resource number for description
|Resource number for description
|-
|-
|[[LOCI#LOCI_sNativeDigits|LOCI_sNativeDigits]]
|LOCI_sNativeDigits||String of native digits
|String of native digits
|-
|-
|[[LOCI#LOCI_iMaxItem|LOCI_iMaxItem]]
|LOCI_iMaxItem||Maximum item number
|Maximum item number
|-
|-
|[[LOCI#LOCI_sTimeMark|LOCI_sTimeMark]]
|LOCI_sTimeMark||Time mark (am/pm) format
|Time mark (am/pm) format
|-
|-
|[[LOCI#LOCI_sEra|LOCI_sEra]]
|LOCI_sEra||Era definition
|Era definition
|-
|-
|[[LOCI#LOCI_sAltShortDate|LOCI_sAltShortDate]]
|LOCI_sAltShortDate||Alternate short date format string
|Alternate short date format string
|-
|-
|[[LOCI#LOCI_sAltDateTime|LOCI_sAltDateTime]]
|LOCI_sAltDateTime||Alternate date and time format
|Alternate date and time format
|-
|-
|[[LOCI#LOCI_sAltTimeFormat|LOCI_sAltTimeFormat]]
|LOCI_sAltTimeFormat||Alternate time format
|Alternate time format
|-
|-
|[[LOCI#LOCI_sAltDigits|LOCI_sAltDigits]]
|LOCI_sAltDigits||XPG4 alternate digits
|XPG4 alternate digist
|-
|-
|[[LOCI#LOCI_sYesExpr|LOCI_sYesExpr]]
|LOCI_sYesExpr||XPG4 yes expression
|xpg4 yes expression
|-
|-
|[[LOCI#LOCI_sNoExpr|LOCI_sNoExpr]]
|LOCI_sNoExpr||XPG4 no expression
|xpg4 no expression
|-
|-
|[[LOCI#LOCI_sDate|LOCI_sDate]]
|LOCI_sDate||Short date separator
|Short date separator
|-
|-
|[[LOCI#LOCI_sTime|LOCI_sTime]]
|LOCI_sTime||Time separator
|Time separator
|-
|-
|[[LOCI#LOCI_sList|LOCI_sList]]
|LOCI_sList||List separator
|List separator
|-
|-
|[[LOCI#LOCI_sMonDecimalSep|LOCI_sMonDecimalSep]]
|LOCI_sMonDecimalSep||Monetary currency separator
|Monetary currency separator
|-
|-
|[[LOCI#LOCI_sMonThousandSep|LOCI_sMonThousandSep]]
|LOCI_sMonThousandSep||Monetary triad separator
|Monetary triad separator
|-
|-
|[[LOCI#LOCI_sGrouping|LOCI_sGrouping]]
|LOCI_sGrouping||Grouping of digits
|Grouping of digits
|-
|-
|[[LOCI#LOCI_sMonGrouping|LOCI_sMonGrouping]]
|LOCI_sMonGrouping||Monetary groupings
|Monetary groupings
|-
|-
|[[LOCI#LOCI_iMeasure|LOCI_iMeasure]]
|LOCI_iMeasure||Measurement (Metric, British)
|Measurement (Metric, British)
|-
|-
|[[LOCI#LOCI_iPaper|LOCI_iPaper]]
|LOCI_iPaper||Normal paper size
|Normal paper size
|-
|-
|[[LOCI#LOCI_iDigits|LOCI_iDigits]]
|LOCI_iDigits||Digits to right of decimal
|Digits to right of decimal
|-
|-
|[[LOCI#LOCI_iTime|LOCI_iTime]]
|LOCI_iTime||Clock format
|Clock format
|-
|-
|[[LOCI#LOCI_iDate|LOCI_iDate]]
|LOCI_iDate||Format of short date
|Format of short date
|-
|-
|[[LOCI#LOCI_iCurrency|LOCI_iCurrency]]
|LOCI_iCurrency||Format of currency
|Format of currency
|-
|-
|[[LOCI#LOCI_iCurrDigits|LOCI_iCurrDigits]]
|LOCI_iCurrDigits||Digits to right for currency
|Digits to right for currency
|-
|-
|[[LOCI#LOCI_iLzero|LOCI_iLzero]]
|LOCI_iLzero||Leading zero used
|Leading zero used
|-
|-
|[[LOCI#LOCI_iNegNumber|LOCI_iNegNumber]]
|LOCI_iNegNumber||Format of negative number
|Format of negative number
|-
|-
|[[LOCI#LOCI_iLDate|LOCI_iLDate]]
|LOCI_iLDate||Format of long date
|Format of long date
|-
|-
|[[LOCI#LOCI_iCalendarType|LOCI_iCalendarType]]
|LOCI_iCalendarType||Type of default calandar
|Type of default calandar
|-
|-
|[[LOCI#LOCI_iFirstDayOfWeek|LOCI_iFirstDayOfWeek]]
|LOCI_iFirstDayOfWeek||First day of week (0=Mon)
|First day of week (0=Mon)
|-
|-
|[[LOCI#LOCI_iFirstWeekOfYear|LOCI_iFirstWeekOfYear]]
|LOCI_iFirstWeekOfYear||First week of year
|First week of year
|-
|-
|[[LOCI#LOCI_iNegCurr|LOCI_iNegCurr]]
|LOCI_iNegCurr||Format of negative currency
|Format of negative currency
|-
|-
|[[LOCI#LOCI_iTLzero|LOCI_iTLzero]]
|LOCI_iTLzero||Leading zero on time
|Leading zero on time
|-
|-
|[[LOCI#LOCI_iTimePrefix|LOCI_iTimePrefix]]
|LOCI_iTimePrefix||AM/PM preceeds time
|AM/PM preceeds time
|-
|-
|[[LOCI#LOCI_iOptionalCalendar|LOCI_iOptionalCalendar]]
|LOCI_iOptionalCalendar||Alternate calandar type
|Alternate calandar type
|-
|-
|[[LOCI#LOCI_sIntlSymbol|LOCI_sIntlSymbol]]
|LOCI_sIntlSymbol||International currency symbol
|International currency symbol
|-
|-
|[[LOCI#LOCI_sAbbrevLangName|LOCI_sAbbrevLangName]]
|LOCI_sAbbrevLangName||Windows language abbreviation
|Windows language abbreviation
|-
|-
|[[LOCI#LOCI_sCollate|LOCI_sCollate]]
|LOCI_sCollate||Collation table
|Collation table
|-
|-
|[[LOCI#LOCI_iUpperType|LOCI_iUpperType]]
|LOCI_iUpperType||Upper case algorithm
|Upper case algorithm
|-
|-
|[[LOCI#LOCI_iUpperMissing|LOCI_iUpperMissing]]
|LOCI_iUpperMissing||Action for missing upper case
|Action for missing upper case
|-
|-
|[[LOCI#LOCI_sPositiveSign|LOCI_sPositiveSign]]
|LOCI_sPositiveSign||Positive sign
|Positive sign
|-
|-
|[[LOCI#LOCI_sNegativeSign|LOCI_sNegativeSign]]
|LOCI_sNegativeSign||Negative sign
|Negative sign
|-
|-
|[[LOCI#LOCI_sLeftNegative|LOCI_sLeftNegative]]
|LOCI_sLeftNegative||Left paren for negative
|Left paren for negative
|-
|-
|[[LOCI#LOCI_sRightNegative|LOCI_sRightNegative]]
|LOCI_sRightNegative||Right paren for negative
|Right paren for negative
|-
|-
|[[LOCI#LOCI_sLongDate|LOCI_sLongDate]]
|LOCI_sLongDate||Long date formatting string
|Long date formatting string
|-
|-
|[[LOCI#LOCI_sAltLongDate|LOCI_sAltLongDate]]
|LOCI_sAltLongDate||Alternate long date format string
|Alternate long date format string
|-
|-
|[[LOCI#LOCI_sMonthName13|LOCI_sMonthName13]]
|LOCI_sMonthName13||Name of month 13
|Name of month 13
|-
|-
|[[LOCI#LOCI_sAbbrevMonthName13|LOCI_sAbbrevMonthName13]]
|LOCI_sAbbrevMonthName13||Abbreviation of month 13
|Abbreviation of month 13
|-
|-
|[[LOCI#LOCI_sName|LOCI_sName]]
|LOCI_sName||OS/2 locale name
|OS/2 locale name
|-
|-
|[[LOCI#LOCI_sLanguageID|LOCI_sLanguageID]]
|LOCI_sLanguageID||Abbreviation for language (ISO)
|Abbreviation for language (ISO)
|-
|-
|[[LOCI#LOCI_sCountryID|LOCI_sCountryID]]
|LOCI_sCountryID||Abbreviation for country (ISO)
|Abbreviation for country (ISO)
|-
|-
|[[LOCI#LOCI_sEngLanguage|LOCI_sEngLanguage]]
|LOCI_sEngLanguage||English name of Language
|English name of Language
|-
|-
|[[LOCI#LOCI_sLanguage|LOCI_sLanguage]]
|LOCI_sLanguage||Native name of language
|Native name of language
|-
|-
|[[LOCI#LOCI_sEngCountry|LOCI_sEngCountry]]
|LOCI_sEngCountry||English name of country
|English name of country
|-
|-
|[[LOCI#LOCI_sCountry|LOCI_sCountry]]
|LOCI_sCountry||Name of country in current language
|Name of country in current language
|-
|-
|[[LOCI#LOCI_sNativeCtryName|LOCI_sNativeCtryName]]
|LOCI_sNativeCtryName||Name of country in native language
|Name of country in native language
|-
|-
|[[LOCI#LOCI_iCountry|LOCI_iCountry]]
|LOCI_iCountry||Country code
|Country code
|-
|-
|[[LOCI#LOCI_sISOCodepage|LOCI_sISOCodepage]]
|LOCI_sISOCodepage||ISO codepage name
|ISO codepage name
|-
|-
|[[LOCI#LOCI_iAnsiCodepage|LOCI_iAnsiCodepage]]
|LOCI_iAnsiCodepage||Windows codepage
|Windows codepage
|-
|-
|[[LOCI#LOCI_iCodepage|LOCI_iCodepage]]
|LOCI_iCodepage||OS/2 primary codepage
|OS/2 primary codepage
|-
|-
|[[LOCI#LOCI_iAltCodepage|LOCI_iAltCodepage]]
|LOCI_iAltCodepage||OS/2 alternate codepage
|OS/2 alternate codepage
|-
|-
|[[LOCI#LOCI_iMacCodepage|LOCI_iMacCodepage]]
|LOCI_iMacCodepage||Mac codepage
|Mac codepage
|-
|-
|[[LOCI#LOCI_iEbcdicCodepage|LOCI_iEbcdicCodepage]]
|LOCI_iEbcdicCodepage||Ebcdic codepage
|Ebcdic codepage
|-
|-
|[[LOCI#LOCI_sOtherCodepages|LOCI_sOtherCodepages]]
|LOCI_sOtherCodepages||Other ASCII codepages
|Other ASCII codepages
|-
|-
|[[LOCI#LOCI_sSetCodepage|LOCI_sSetCodepage]]
|LOCI_sSetCodepage||Codpage to set on activation
|Codpage to set on activation
|-
|-
|[[LOCI#LOCI_sKeyboard|LOCI_sKeyboard]]
|LOCI_sKeyboard||Primary keyboard name
|Primary keyboard name
|-
|-
|[[LOCI#LOCI_sAltKeyboard|LOCI_sAltKeyboard]]
|LOCI_sAltKeyboard||Alternate keyboard name
|Alternate keyboard name
|-
|-
|[[LOCI#LOCI_sSetKeyboard|LOCI_sSetKeyboard]]
|LOCI_sSetKeyboard||Keyboard to set on activation
|Keyboard to set on activation
|-
|-
|[[LOCI#LOCI_sDebit|LOCI_sDebit]]
|LOCI_sDebit|||Debit string
|Debit string
|-
|-
|[[LOCI#LOCI_sCredit|LOCI_sCredit]]
|LOCI_sCredit||Credit string
|Credit string
|-
|-
|[[LOCI#LOCI_sLatin1Locale|LOCI_sLatin1Locale]]
|LOCI_sLatin1Locale||Locale for Latin 1 names
|Locale for Latin 1 names
|-
|-
|[[LOCI#LOCI_wTimeFormat|LOCI_wTimeFormat]]
|LOCI_wTimeFormat||Win32 Time format
|Win32 Time format
|-
|-
|[[LOCI#LOCI_wShortDate|LOCI_wShortDate]]
|LOCI_wShortDate||Win32 Date format
|Win32 Date format
|-
|-
|[[LOCI#LOCI_wLongDate|LOCI_wLongDate]]
|LOCI_wLongDate||Win32 Long date format
|Win32 Long date format
|-
|-
|[[LOCI#LOCI_jISO3CountryName|LOCI_jISO3CountryName]]
|LOCI_jISO3CountryName||Java Abbrev for country (ISO-3)
|Java Abbrev for country (ISO-3)
|-
|-
|[[LOCI#LOCI_jPercentPattern|LOCI_jPercentPattern]]
|LOCI_jPercentPattern||Java percent pattern
|Java percent pattern
|-
|-
|[[LOCI#LOCI_jPercentSign|LOCI_jPercentSign]]
|LOCI_jPercentSign||Java percent symbol
|Java percent symbol
|-
|-
|[[LOCI#LOCI_jExponent|LOCI_jExponent]]
|LOCI_jExponent||Java exponential symbol
|Java exponential symbol
|-
|-
|[[LOCI#LOCI_jFullTimeFormat|LOCI_jFullTimeFormat]]
|LOCI_jFullTimeFormat||Java full time format
|Java full time format
|-
|-
|[[LOCI#LOCI_jLongTimeFormat|LOCI_jLongTimeFormat]]
|LOCI_jLongTimeFormat||Java long time format
|Java long time format
|-
|-
|[[LOCI#LOCI_jShortTimeFormat|LOCI_jShortTimeFormat]]
|LOCI_jShortTimeFormat||Java short time format
|Java short time format
|-
|-
|[[LOCI#LOCI_jFullDateFormat|LOCI_jFullDateFormat]]
|LOCI_jFullDateFormat||Java full date format
|Java full date format
|-
|-
|[[LOCI#LOCI_jMediumDateFormat|LOCI_jMediumDateFormat]]
|LOCI_jMediumDateFormat||Java medium date format
|Java medium date format
|-
|-
|[[LOCI#LOCI_jDateTimePattern|LOCI_jDateTimePattern]]
|LOCI_jDateTimePattern||Java date time format pattern
|Java date time format pattern
|-
|-
|[[LOCI#LOCI_jEraStrings|LOCI_jEraString]]
|LOCI_jEraString||Java era strings
|Java era strings
|}
|}



Latest revision as of 18:53, 26 July 2017

Get the locale information.

Syntax

UniQueryLocaleItem(localeObj, queryItem, result);

Parameters

localeObj - LocaleObject - input
The locale object created from UniCreateLocaleObject.
queryItem - LocaleItem - input
The item to be queried.
result - UniChar - output
The locale information received.

Returns

An integer with values of:

Calling Convention

Cdecl32

Example Code

LocaleObject localeObj;
LocaleItem   queryItem;
UniChar      result;
integer      rc;
...
rc = UniQueryLocaleItem(localeObj, queryItem, result);
...

Related Functions

  • UniSetUserLocaleItem

Notes

UniQueryLocaleItem returns a pointer in result to a null-terminated UniChar string containing information found in the locale object identified by localeObj about the language or cultural item named by the item argument. UniQueryLocaleItem allocates the memory to hold the UniChar string and returns a pointer in result. Use UniFreeMem to free the memory associated with result by UniQueryLocaleItem.

The constant names and values for queryItem are contained in ulsitem.h:

Item Name Item Description
LOCI_sDateTime Date and time format string
LOCI_sShortDate Short date format
LOCI_sTimeFormat Time format string
LOCI_s1159 AM string
LOCI_s2359 PM string
LOCI_sAbbrevDayName7 Abbreviation of day 7 (Sun)
LOCI_sAbbrevDayName1 Abbreviation of day 1 (Mon)
LOCI_sAbbrevDayName2 Abbreviation of day 2 (Tue)
LOCI_sAbbrevDayName3 Abbreviation of day 3 (Wed)
LOCI_sAbbrevDayName4 Abbreviation of day 4 (Thu)
LOCI_sAbbrevDayName5 Abbreviation of day 5 (Fri)
LOCI_sAbbrevDayName6 Abbreviation of day 6 (Sat)
LOCI_sDayName7 Name of day of week 7 (Sun)
LOCI_sDayName1 Name of day of week 1 (Mon)
LOCI_sDayName2 Name of day of week 2 (Tue)
LOCI_sDayName3 Name of day of week 3 (Wed)
LOCI_sDayName4 Name of day of week 4 (Thu)
LOCI_sDayName5 Name of day of week 5 (Fri)
LOCI_sDayName6 Name of day of week 6 (Sat)
LOCI_sAbbrevMonthName1 Abbreviation of month 1
LOCI_sAbbrevMonthName2 Abbreviation of month 2
LOCI_sAbbrevMonthName3 Abbreviation of month 3
LOCI_sAbbrevMonthName4 Abbreviation of month 4
LOCI_sAbbrevMonthName5 Abbreviation of month 5
LOCI_sAbbrevMonthName6 Abbreviation of month 6
LOCI_sAbbrevMonthName7 Abbreviation of month 7
LOCI_sAbbrevMonthName8 Abbreviation of month 8
LOCI_sAbbrevMonthName9 Abbreviation of month 9
LOCI_sAbbrevMonthName10 Abbreviation of month 10
LOCI_sAbbrevMonthName11 Abbreviation of month 11
LOCI_sAbbrevMonthName12 Abbreviation of month 12
LOCI_sMonthName1 Name of month 1
LOCI_sMonthName2 Name of month 2
LOCI_sMonthName3 Name of month 3
LOCI_sMonthName4 Name of month 4
LOCI_sMonthName5 Name of month 5
LOCI_sMonthName6 Name of month 6
LOCI_sMonthName7 Name of month 7
LOCI_sMonthName8 Name of month 8
LOCI_sMonthName9 Name of month 9
LOCI_sMonthName10 Name of month 10
LOCI_sMonthName11 Name of month 11
LOCI_sMonthName12 Name of month 12
LOCI_sDecimal Decimal point
LOCI_sThousand Triad separator
LOCI_sYesString Yes string
LOCI_sNoString No string
LOCI_sCurrency Currency symbol
LOCI_sCodeSet Locale codeset
LOCI_xLocaleToken IBM Locale Token
LOCI_xWinLocale Win32 Locale ID
LOCI_iLocaleResnum Resource number for description
LOCI_sNativeDigits String of native digits
LOCI_iMaxItem Maximum item number
LOCI_sTimeMark Time mark (am/pm) format
LOCI_sEra Era definition
LOCI_sAltShortDate Alternate short date format string
LOCI_sAltDateTime Alternate date and time format
LOCI_sAltTimeFormat Alternate time format
LOCI_sAltDigits XPG4 alternate digits
LOCI_sYesExpr XPG4 yes expression
LOCI_sNoExpr XPG4 no expression
LOCI_sDate Short date separator
LOCI_sTime Time separator
LOCI_sList List separator
LOCI_sMonDecimalSep Monetary currency separator
LOCI_sMonThousandSep Monetary triad separator
LOCI_sGrouping Grouping of digits
LOCI_sMonGrouping Monetary groupings
LOCI_iMeasure Measurement (Metric, British)
LOCI_iPaper Normal paper size
LOCI_iDigits Digits to right of decimal
LOCI_iTime Clock format
LOCI_iDate Format of short date
LOCI_iCurrency Format of currency
LOCI_iCurrDigits Digits to right for currency
LOCI_iLzero Leading zero used
LOCI_iNegNumber Format of negative number
LOCI_iLDate Format of long date
LOCI_iCalendarType Type of default calandar
LOCI_iFirstDayOfWeek First day of week (0=Mon)
LOCI_iFirstWeekOfYear First week of year
LOCI_iNegCurr Format of negative currency
LOCI_iTLzero Leading zero on time
LOCI_iTimePrefix AM/PM preceeds time
LOCI_iOptionalCalendar Alternate calandar type
LOCI_sIntlSymbol International currency symbol
LOCI_sAbbrevLangName Windows language abbreviation
LOCI_sCollate Collation table
LOCI_iUpperType Upper case algorithm
LOCI_iUpperMissing Action for missing upper case
LOCI_sPositiveSign Positive sign
LOCI_sNegativeSign Negative sign
LOCI_sLeftNegative Left paren for negative
LOCI_sRightNegative Right paren for negative
LOCI_sLongDate Long date formatting string
LOCI_sAltLongDate Alternate long date format string
LOCI_sMonthName13 Name of month 13
LOCI_sAbbrevMonthName13 Abbreviation of month 13
LOCI_sName OS/2 locale name
LOCI_sLanguageID Abbreviation for language (ISO)
LOCI_sCountryID Abbreviation for country (ISO)
LOCI_sEngLanguage English name of Language
LOCI_sLanguage Native name of language
LOCI_sEngCountry English name of country
LOCI_sCountry Name of country in current language
LOCI_sNativeCtryName Name of country in native language
LOCI_iCountry Country code
LOCI_sISOCodepage ISO codepage name
LOCI_iAnsiCodepage Windows codepage
LOCI_iCodepage OS/2 primary codepage
LOCI_iAltCodepage OS/2 alternate codepage
LOCI_iMacCodepage Mac codepage
LOCI_iEbcdicCodepage Ebcdic codepage
LOCI_sOtherCodepages Other ASCII codepages
LOCI_sSetCodepage Codpage to set on activation
LOCI_sKeyboard Primary keyboard name
LOCI_sAltKeyboard Alternate keyboard name
LOCI_sSetKeyboard Keyboard to set on activation
LOCI_sDebit Debit string
LOCI_sCredit Credit string
LOCI_sLatin1Locale Locale for Latin 1 names
LOCI_wTimeFormat Win32 Time format
LOCI_wShortDate Win32 Date format
LOCI_wLongDate Win32 Long date format
LOCI_jISO3CountryName Java Abbrev for country (ISO-3)
LOCI_jPercentPattern Java percent pattern
LOCI_jPercentSign Java percent symbol
LOCI_jExponent Java exponential symbol
LOCI_jFullTimeFormat Java full time format
LOCI_jLongTimeFormat Java long time format
LOCI_jShortTimeFormat Java short time format
LOCI_jFullDateFormat Java full date format
LOCI_jMediumDateFormat Java medium date format
LOCI_jDateTimePattern Java date time format pattern
LOCI_jEraString Java era strings

OS Version Introduced

OS/2 Warp