Available in all subroutines.

Returns the number of UTF-8 encoded Unicode code points in the string s. Returns zero if the string does not contain valid UTF-8.

User contributed notes

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.