Mask to quickly check whether a C 'size_t' contains a non-ASCII, UTF8-encoded char.10xxxxxx
Consts
ALIGNOF_SIZE_T = 8
- Source Edit
ASCII_CHAR_MASK = 0x80808080'u
- Source Edit
Procs
func getMaxChar[C](): C
- Source Edit
proc utf8_decode[STRINGLIB_CHAR](inptr: var (cstring | ptr char); end: (cstring | ptr char); dest: ptr STRINGLIB_CHAR; outpos: var Py_ssize_t): Py_UCS4
- Source Edit
Templates
template IS_CONTINUATION_BYTE(ch: untyped): untyped
- Source Edit
template Py_IS_ALIGNED(p: cstring | ptr; a: typeof(ALIGNOF_SIZE_T)): bool
- Source Edit