time-to-botec/squiggle/node_modules/@stdlib/string/next-grapheme-cluster-break/docs/repl.txt

32 lines
629 B
Plaintext
Raw Normal View History

{{alias}}( str[, fromIndex] )
Returns the next extended grapheme cluster break in a string after a
specified position.
Parameters
----------
str: string
Input string.
fromIndex: integer (optional)
Position. Default: 0.
Returns
-------
out: integer
Next extended grapheme cluster break position.
Examples
--------
> var out = {{alias}}( 'last man standing', 4 )
5
> out = {{alias}}( 'presidential election', 8 )
9
> out = {{alias}}( 'अनुच्छेद', 1 )
3
> out = {{alias}}( '🌷' )
-1
See Also
--------