| 1196 | } |
| 1197 | |
| 1198 | void PiuCode_isSpace(xsMachine *the) |
| 1199 | { |
| 1200 | PiuCode* self = PIU(Code, xsThis); |
| 1201 | xsStringValue string = PiuToString((*self)->string); |
| 1202 | xsIntegerValue character; |
| 1203 | int32_t offset = xsToInteger(xsArg(0)); |
| 1204 | uint32_t classification; |
| 1205 | string += fxUnicodeToUTF8Offset(string, offset); |
| 1206 | fxUTF8Decode(string, &character); |
| 1207 | classification = PiuCodeClassifyCharacter(character); |
| 1208 | xsResult = xsBoolean(classification == teCharWhiteSpace); |
| 1209 | } |
| 1210 | |
| 1211 | void PiuCode_locate(xsMachine *the) |
| 1212 | { |
nothing calls this directly
no test coverage detected