Consts
highSurrogateMax = 0x0000DBFF'i32
- Source Edit
highSurrogateMin = 0x0000D800'i32
- Source Edit
lowSurrogateMax = 0x0000DFFF'i32
- Source Edit
lowSurrogateMin = 0x0000DC00'i32
- Source Edit
replacementRune = 65533'i32
- Source Edit
Procs
proc containsControlCharacter(s: openArray[char]): bool {....raises: [], tags: [], forbids: [].}
- Source Edit
proc truncateUtf8(s: openArray[char]; maxBytes: int): string {. ...raises: [CatchableError], tags: [], forbids: [].}
- Source Edit
proc validateUtf8(s: openArray[char]): int {....raises: [], tags: [], forbids: [].}
- Source Edit
proc validRuneAt(s: openArray[char]; i: int): Option[Rune] {....raises: [], tags: [], forbids: [].}
- Source Edit
Templates
template isHighSurrogate(rune: Rune): bool
- Source Edit
template isLowSurrogate(rune: Rune): bool
- Source Edit
template isSurrogate(rune: Rune): bool
- Source Edit
template unsafeSize(rune: Rune): int
- Returns the number of bytes the rune takes without checking if the rune is valid. Source Edit