UniQueryLocaleInfo: Difference between revisions
Appearance
mNo edit summary |
m →Notes |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== | Get information about the locale conventions. | ||
=== Syntax === | |||
UniQueryLocaleInfo(localeObj, result) | |||
=== Parameters === | === Parameters === | ||
; localeObj - [[ | ;localeObj - [[LocaleObject]] - input : The locale object created from [[UniCreateLocaleObject]]. | ||
; result - [[ | ;result - [[UniLconv]] - output : The item to hold the locale conventions information. | ||
=== Constants === | === Constants === | ||
Line 11: | Line 13: | ||
=== Returns === | === Returns === | ||
An integer with values of: | An integer with values of: | ||
* [[ | * [[Unicode Errors#ULS_BADOBJ|ULS_BADOBJ]] | ||
* [[ | * [[Unicode Errors#ULS_SUCCESS|ULS_SUCCESS]] | ||
=== Module === | === Module === | ||
Line 20: | Line 22: | ||
=== Export name/Ordinal === | === Export name/Ordinal === | ||
=== Calling | === Calling Convention === | ||
[[Cdecl32]] | [[Cdecl32]] | ||
=== Example Code === | === Example Code === | ||
LocaleObject localeObj; | |||
UniLconv result; | |||
integer rc; | integer rc; | ||
... | ... | ||
Line 32: | Line 34: | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[UniFreeLocaleInfo]] | ||
=== Notes === | === Notes === | ||
''UniQueryLocaleInfo'' returns information from the localeObj and places information in the [[UniLconv]] structure. ''UniQueryLocaleInfo'' allocates the memory to hold the ''UniLconv'' structure. The application '''must''' free the memory using ''UniFreeLocaleInfo'' when the structure is no longer needed. The ''UniLconv'' structure is filled using the locale provided by localeObj. | |||
=== OS Version Introduced === | === OS Version Introduced === |
Latest revision as of 18:11, 13 February 2020
Get information about the locale conventions.
Syntax
UniQueryLocaleInfo(localeObj, result)
Parameters
- localeObj - LocaleObject - input
- The locale object created from UniCreateLocaleObject.
- result - UniLconv - output
- The item to hold the locale conventions information.
Constants
None
Returns
An integer with values of:
Module
Define (C/C++)
Export name/Ordinal
Calling Convention
Example Code
LocaleObject localeObj; UniLconv result; integer rc; ... rc = UniQueryLocaleInfo(localeObj, result); ...
Related Functions
Notes
UniQueryLocaleInfo returns information from the localeObj and places information in the UniLconv structure. UniQueryLocaleInfo allocates the memory to hold the UniLconv structure. The application must free the memory using UniFreeLocaleInfo when the structure is no longer needed. The UniLconv structure is filled using the locale provided by localeObj.
OS Version Introduced
- OS/2 Warp