Unicode versions of standard library functions
ULS provides the following equivalents of various standard C library functions,
which operate on Unicode (UCS-2) text.
- UniStrcat
- Unicode strcat - concatenates
strings.
- UniStrchr
- Unicode strchr - locates
the first occurance of a character.
- UniStrcmp
- Unicode strcmp - compares
strings.
- UniStrcmpi
- Unicode strcmpi -
compares strings case-insensitively.
- UniStrcoll
- Unicode strcoll -
compares strings according to the specified locale's collating rules.
- UniStrcpy
- Unicode strcpy - copies
a string.
- UniStrcspn
- Unicode strcspn -
locates the first matching character.
- UniStrfmon
- Unicode strfmon -
converts a monetary value to a string.
- UniStrftime
- Unicode strftime -
converts a date/time value to a string.
- UniStrlen
- Unicode strlen - determines
string length.
- UniStrlwr
- Unicode strlwr - converts
a string to lowercase using language-neutral case mapping.
- UniStrncat
- Unicode strncat -
concatenates strings up to a maximum length.
- UniStrncmp
- Unicode strncmp -
compares strings up to a maximum length.
- UniStrncmpi
- Unicode strnicmp -
compares strings case-insensitively up to a maximum length.
- UniStrncpy
- Unicode strncpy -
copies a string up to a maximum length.
- UniStrpbrk
- Unicode strpbrk -
returns a pointer to the first matching character.
- UniStrptime
- Unicode strptime -
converts a string to a date/time value.
- UniStrrchr
- Unicode strrchr -
locates the last occurance of a character.
- UniStrspn
- Unicode strspn - locates
the first unmatched character.
- UniStrstr
- Unicode strstr - returns
a pointer to the first matching substring.
- UniStrtod
- Unicode strtod - converts
a string to a double floating point value.
- UniStrtol
- Unicode strtol - converts
a string to a long integer value.
- UniStrtok
- Unicode strtok - tokenizes
a string.
- UniStrtoul
- Unicode strtoul -
converts a string to an unsigned long integer value.
- UniStrupr
- Unicode strupr - converts
a string to uppercase using language-neutral case mapping.
- UniStrxfrm
- Unicode strxfrm -
transforms a string into collating weights for the specified locale.
- UniTolower
- Unicode tolower -
converts a character to lowercase using language-neutral case mapping.
- UniToupper
- Unicode toupper -
converts a character to uppercase using language-neutral case mapping.
Locale-independent text classification functions
The following functions are used to obtain information about the attributes
of Unicode text.
- UniQueryAttr
- Obtains the attribute number
associated with the specified attribute name.
- UniQueryChar
- Queries character attributes
according to the specified attribute number(s).
- UniQueryCharType
- Queries a character's
type attributes.
- UniQueryCharTypeTable
- Queries the character
type table.
- UniQueryNumericValue
- Queries the numeric
value associated with a character.
- UniQueryStringType
- Queries the type
attributes of each character in a string.
Localized text classification functions
These classification functions operate according to the rules of a specific
locale. (Refer to the localization section
for information on using locales.)
- UniCreateAttrObject
- Creates an AttrObject
used to query character attributes according to the specified locale.
- UniFreeAttrObject
- Frees an AttrObject
allocated by UniCreateAttrObject.
- UniQueryAlnum
- Queries a character's
alphanumeric attribute according to the specified locale.
- UniQueryAlpha
- Queries a characters
alphabetic attribute according to the specified locale.
- UniQueryBlank
- Queries a character's
blank attribute according to the specified locale.
- UniQueryCharAttr
- Queries character
attributes according to the specified AttrObject.
- UniQueryCntrl
- Queries a character's
control attribute according to the specified locale.
- UniQueryDigit
- Queries a character's
(decimal) digit attribute according to the specified locale.
- UniQueryGraph
- Queries a character's
graphic attribute according to the specified locale.
- UniQueryLower
- Queries a character's
lowercase attribute according to the specified locale.
- UniQueryPrint
- Queries a character's
printable attribute according to the specified locale.
- UniQueryPunct
- Queries a character's
punctuation attribute according to the specified locale.
- UniQuerySpace
- Queries a character's
space attribute according to the specified locale.
- UniQueryUpper
- Queries a character's
uppercase attribute according to the specified locale.
- UniQueryXdigit
- Queries a character's
hexadecimal-digit attribute according to the specified locale.
- UniScanForAttr
- Searches a string for
characters matching the criteria specified by an AttrObject.
Localized text transformation functions
The following functions are used to transform Unicode strings according
to locale-specific rules. (Refer to the localization
section for information on using locales.)
- UniCreateTransformObject
- Creates an XformObject
used to perform string transformations according to the specified locale.
- UniFreeTransformObject
- Frees an XformObject
allocated by UniCreateTransformObject.
- UniTransformStr
- Transforms a string
according to the specified XformObject.
- UniTransLower
- Transforms a string to
lowercase according to the specified locale.
- UniTransUpper
- Transforms a string to
uppercase according to the specified locale.
[Back]
[Next]