Unicode strings: Difference between revisions
Content deleted Content added
m →{{header|Wren}}: Changed to Wren S/H |
Langurmonkey (talk | contribs) |
||
Line 827: | Line 827: | ||
<syntaxhighlight lang="langur">q:any"any code points here"</syntaxhighlight> |
<syntaxhighlight lang="langur">q:any"any code points here"</syntaxhighlight> |
||
Indexing on a string indexes by code point. The index may be a single number, a range, or an |
Indexing on a string indexes by code point. The index may be a single number, a range, or an list of such things. |
||
Conversion between code point numbers and strings can be done with the cp2s() |
Conversion between code point numbers, graphemes, and strings can be done with the cp2s(), s2cp(), and s2gc() functions. Conversion between UTF-8 byte lists and langur strings can be done with b2s() and s2b() functions. |
||
Conversion between UTF-8 byte arrays and langur strings can be done with b2s() and s2b() functions. |
|||
The len() function returns the number of code points in a string. |
The len() function returns the number of code points in a string. |