dymokomi/luce-std
Source of release 0.7.4
0.7.4 / src / utf8 / module.lucb
#==============================================================================================
#
# utf8 - Strict UTF-8 scalar encoding and decoding
#
# DESCRIPTION:
# Strict UTF-8 scalar encoding and decoding, following RFC 3629 sections 3-4.
# https://www.rfc-editor.org/rfc/rfc3629.html These allocation-free operations accept
# raw bytes and do not replace invalid input, normalize text, strip a BOM, or apply
# locale rules. Noncharacters and unassigned scalar values are valid; surrogate values
# are not. Storage is borrowed.
#
#==============================================================================================
## Raw bytes are not valid UTF-8.
pub let invalid_sequence: ErrorCode = ErrorCode.package(54)
## A UTF-8 sequence ends before its scalar is complete.
pub let incomplete_sequence: ErrorCode = ErrorCode.package(55)