Difference between revisions of "Utf8.len"
From GiderosMobile
Line 14: | Line 14: | ||
=== <translate>Return values</translate> === | === <translate>Return values</translate> === | ||
'''<translate>Returns</translate>''' (number) <translate>number of characters</translate><br/> | '''<translate>Returns</translate>''' (number) <translate>number of characters</translate><br/> | ||
+ | |||
+ | {{Utf8}} |
Revision as of 22:14, 11 February 2020
Available since: Gideros 2016.06
Class: utf8
Description
Returns the number of UTF-8 characters in string s that start between positions i and j (both inclusive). The default for i is 1 and for j is -1. If it finds any invalid byte sequence, returns a false value plus the position of the first invalid byte.
(number) = utf8.len(s,i,j)
Parameters
s: (string)
i: (number) optional
j: (number) optional
Return values
Returns (number) number of characters