Function strUTF16IndexToUTF8Offset

  • Given a JS string s and an index idx of a character in it, compute the corresponding byte offset of the character in the UTF-8 encoding of the string.

    Parameters

    • s: string
    • idx: number

    Returns number

Generated using TypeDoc