UniLocaleStrToToken: Difference between revisions
Appearance
New entry |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== | Converts a locale specific string to a token. | ||
=== Syntax === | |||
UniStrToToken(localeStrType, localeStr, result) ; | |||
=== Parameters === | === Parameters === | ||
; localeStrType - integer - input : The type of string being given to this function. | ; localeStrType - integer - input : The type of string being given to this function. | ||
; localeStr - [[ | ; localeStr - [[PVOID]] - input : The locale specific string. | ||
; result - [[ | ; result - [[LocaleToken]] - output : The result of the conversion to a token. | ||
=== Constants === | === Constants === | ||
Used for the parameter localeStrType: | Used for the parameter localeStrType: | ||
* [[ | * [[UNI#UNI_MBS_STRING_POINTER|UNI_MBS_STRING_POINTER]] | ||
* [[ | * [[UNI#UNI_UCS_STRING_POINTER|UNI_UCS_STRING_POINTER]] | ||
=== Returns === | === Returns === | ||
An integer with values of: | An integer with values of: | ||
* [[ | * [[Unicode Errors#ULS_OTHER|ULS_OTHER]] | ||
* [[ | * [[Unicode Errors#ULS_SUCCESS|ULS_SUCCESS]] | ||
* [[ | * [[Unicode Errors#ULS_UNSUPPORTED|ULS_UNSUPPORTED]] | ||
=== Calling Convention === | |||
=== Calling | |||
[[Cdecl32]] | [[Cdecl32]] | ||
=== Example Code === | === Example Code === | ||
integer localeStrType; | integer localeStrType; | ||
PVOID localeStr; | |||
LocaleToken result; | |||
integer rc; | integer rc; | ||
... | ... | ||
Line 37: | Line 33: | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[UniLocaleTokenToStr]] | ||
=== Notes === | === Notes === | ||
This function allocates the memory for the locale token. | This function allocates the memory for the locale token. If no locale token exists for the given locale string, the result is undefined for the locale token. | ||
=== OS Version Introduced === | === OS Version Introduced === | ||
OS/2 Warp | OS/2 Warp | ||
[[Category:Uni]] |
Latest revision as of 18:49, 26 July 2017
Converts a locale specific string to a token.
Syntax
UniStrToToken(localeStrType, localeStr, result) ;
Parameters
- localeStrType - integer - input
- The type of string being given to this function.
- localeStr - PVOID - input
- The locale specific string.
- result - LocaleToken - output
- The result of the conversion to a token.
Constants
Used for the parameter localeStrType:
Returns
An integer with values of:
Calling Convention
Example Code
integer localeStrType; PVOID localeStr; LocaleToken result; integer rc; ... rc = UniLocaleStrToToken(localeStrType, localeStr, result); ...
Related Functions
Notes
This function allocates the memory for the locale token. If no locale token exists for the given locale string, the result is undefined for the locale token.
OS Version Introduced
OS/2 Warp