• Calculates the UTF8 byte length of a string.

    Parameters

    • str: string

    Returns number

    Byte length