time-to-botec/squiggle/node_modules/@stdlib/string/next-grapheme-cluster-break/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

32 lines
629 B
Plaintext

{{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
--------