Skip to content

Working with WIDECHAR arrays and Unicode Strings

Working with WIDECHAR arrays and Unicode strings is very similar to working with CHAR arrays and ASCII strings.

Most operations that can be performed on a CHAR array can be performed on a WIDECHAR array.  For instance, to assign a string to a variable use this syntax:

wcMyString = _WC(My String)

The string functions defined for CHAR arrays have been defined for WIDECHAR array for use in Unicode programming.

These functions allow you to operate on strings similar to the way you would with CHAR array.  For instance, to remove the first 3 characters from a WIDECHAR array and return those characters as a WIDECHAR array, use WC_GET_BUFFER_STRING:

WCRemoved = WC_GET_BUFFER_STRING(wcMyString,3)

You will find that most other functions work exactly as their CHAR counterpart do except they work on and return WIDECHAR arrays.

The list of Unicode compatible functions is:

See Also