unin2mono

Converts a Unicode string from mixed case to case-neutral.

Library:LibC
Service:Characters and Strings

Syntax

  #include <unilib.h> 
   
  unicode_t *unin2mono (
     unicode_t         *dest,
     const unicode_t   *src,
     UniCase_t          casing,
     size_t             destLen );
  

Parameters

dest

(OUT) Points to the converted string.

src

(IN) Points to the source string to use in the conversion.

casing

(IN) Specifies the type of case to use.

Flag

Value

Description

UNI_CASE_DEFAULT

(-3)

Use default monocase.

UNI_CASE_UPPER

0

Make uppercase.

UNI_CASE_LOWER

1

Make lowercase.

UNI_CASE_TITLE

2

Make the first letter of each word uppercase.

If you are using the Watcom compiler, check the unilib.h file for the values.

destLen

(IN/OUT) Points to the maximum number of Unicode characters that the destination string can hold when the function is called. When the function returns, it contains the number of Unicode characters in the converted string.

Return Values

Returns the converted string.

See Also