is_utf8_char_boundary
No overview available.
def is_utf8_char_boundary(
data: bytes,
index: integer
) - > boolean
Determines if a specific byte index in a byte sequence represents the start of a UTF-8 encoded character.
Parameters
| Name | Type | Description |
|---|---|---|
| data | bytes | The raw byte sequence to be checked for character boundaries. |
| index | integer | The zero-based position within the byte sequence to validate as a boundary. |
Returns
| Type | Description |
|---|---|
boolean | True if the byte at the given index is the first byte of a character or the end of the sequence; False if it is a continuation byte. |