MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuCodeClassifyCharacter

Function PiuCodeClassifyCharacter

modules/piu/PC/Code/piuCode.c:136–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136int32_t PiuCodeClassifyCharacter(int32_t character)
137{
138 const char *c;
139
140 if (0 == character)
141 return teCharDone;
142
143 if ((' ' == character) || (9 == character) || (10 == character) || (13 == character) || (12288 == character)) // 12288: double-byte space
144 return teCharWhiteSpace;
145
146 c = teSeparators;
147 while (*c)
148 if (*c++ == (char)character)
149 return teCharSeparator;
150
151 return teCharText;
152}
153
154void PiuCodeComputeStyle(PiuCode* self)
155{

Callers 2

PiuCodeFindWordBreakFunction · 0.85
PiuCode_isSpaceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected