Function codepoint

  • Returns the codepoints (as integers) from all codepoints in the provided string (str) that start between byte positions i and j (both included). The default for i is 0 and for j is i. It raises an error if it meets any invalid byte sequence. Similar to string.byte.

    Parameters

    • str: string
    • Optional i: number
    • Optional j: number

    Returns LuaTuple<number[]>