| 134 | } |
| 135 | |
| 136 | int32_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 | |
| 154 | void PiuCodeComputeStyle(PiuCode* self) |
| 155 | { |
no outgoing calls
no test coverage detected