Compare part of a UTF-8 character string
#include <utf8.h> int utf8strncmp( char const *str1, char const *str2, int len );
ph
Compare len UTF-8 characters from str1 with str2.
The char_width parameter must be set to the maximum number of bytes used to represent a single character.
An integer less than, equal to, or greater than zero, indicating that str1 is less than, equal to, or greater than str2.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
Unicode Multilingual Support in the Photon Programmer's Guide