API reference
Preparing search index…

Unicode.isGraphemeBoundary

  • Test for a grapheme boundary before UTF-16 index position using SFML's Unicode rules. The start and end are boundaries; the middle of a surrogate pair is not. Isolated surrogate code units are treated as U+FFFD.

    Parameters

    text
    string
    position
    number

    Returns

    boolean

    position is not an integer from 0 to text.length.

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0