![]() |
![]() |
![]() |
![]() |
Find the length of a UTF-8 character string
#include <utf8.h>
int utf8strlen( char const *text,
int *bytes );
ph
The utf8strlen() function returns the number of UTF-8 characters in the string text, and sets bytes to the number of bytes in text.
The number of UTF-8 characters in the string.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
utf8len(), utf8strblen(), utf8strnlen()
Unicode Multilingual Support in the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |