fault.system

CELL_STACK_ALLOC
define

#define CELL_STACK_ALLOC 16

MODULE_FUNCTIONS
macro

MODULE_FUNCTIONS()

dsetlocale
function
PyObj

dsetlocale(self)

get_encoding160%
function
PyObj

get_encoding(self)

measure1530%
function
long

measure(wcv, ws, ctlen, tablen)

Process the codepoints in the string handling cases not covered by wcwidth.

Sequences are presumed valid; when encountered, the character with the maximum cell count is used as the sequence cell count.

This needs to be changed to only use the maximum given that wcswidth does recognize the sequence.

cells50%
function
PyObj

cells(self, args)

Cell count of string with some sequence and Variant Selector awareness.