#include <UniChar.h> int UniQueryCompCharLen(void *reserved, const UniChar *ucs, size_t *element_count);
The UniQueryCompCharLen--Composite Character Sequence Code Element Count function computes the number of code elements in the composite character sequence pointed to by ucs.
The function sets the number of code elements. This includes the non-combining character and the zero or more following combining characters up to, but not including, the next non-combining character or null code element into element_count.
None.
This parameter must be set to null.
The composite character sequence to be analyzed.
The number of code elements found in ucs. This is set to zero if the return value is not zero.
If UniQueryCompCharLen is not successful, the return value indicates one of the following errors:
UNI_BADOBJ | UniQueryCompCharLen function detected that the reserved parameter is not null. |
UNI_INVALID | UniQueryCompCharLen function detected that ucs is a null pointer. |
UNI_NODATA | UniQueryCompCharLen function detected that ucs points to a null code element. |
UNI_COMP_FOUND | UniQueryCompCharLen function detected that ucs points to a combining character. |
UNI_RANGE | UniQueryCompCharLen function detected that the value to be set in element_count was too large to fit. |
Top | National Language Support APIs | APIs by category |