Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/utf8/utf8strnlen.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/utf8/utf8strnlen.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/utf8/utf8strnlen.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/utf8/utf8strnlen.html on line 8

utf8strnlen()

Find the number of bytes used by a UTF-8 character string

Synopsis:

#include <utf8.h>

int utf8strnlen( char const *text,
                 int max_len,
                 int *num );

Arguments:

text
A UTF-8 string.
max_len
The maximum number of characters to count.
num
A pointer to a location where utf8strnlen() stores the number of characters formed by the number of bytes occupied by max_len characters in the string text. This will be different from max_len if there are fewer than max_len UTF-8 characters in text.

Library:

ph

Description:

The utf8strnlen() function returns the number of bytes occupied by max_len characters in the string text.

Returns:

The number of bytes occupied by max_len characters in the string text.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

utf8len(), utf8strblen(), utf8strlen()

Unicode Multilingual Support in the Photon Programmer's Guide


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/utf8/utf8strnlen.html on line 124

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/utf8/utf8strnlen.html on line 124