Goto: 4C Home | 4C Docs | System PCLs List sys.utf8_count()

sys.utf8_count()

Purpose:
sys.utf8_count() returns the number UTF8 characters in <utf8str>
Usage:
count = sys.utf8_count(<utf8str>);
Arguments:

utf8 <utf8str> - A valid UTF8 string
Returns:
integer <count> - The number of UTF8 characters in <utf8str>, -1 for error
Where Used:
sys.utf8_count() can be called from anywhere.
Example:
See demo.utf8.1 for an example
Description:
sys.utf8_count() returns the number UTF8 characters in <utf8str>. If <utf8str> is not a valid UTF8 string, then -1 is returned.
Requirements
4csrvr version 6.4.3 or later
Bugs/Features/Comments:
See Also:
sys.cp_toutf8()
sys.utf8_charat()
sys.utf8_count()
sys.utf8_fix()
sys.utf8_join()
sys.utf8_split()
sys.utf8_tocp()
sys.utf8_verify()


Back to Top