MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / printcharset

Function printcharset

other_src/lua/src/lpeg.cpp:255–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253
254
255static void printcharset (const Charset st) {
256 int i;
257 printf("[");
258 for (i = 0; i <= UCHAR_MAX; i++) {
259 int first = i;
260 while (testchar(st, i) && i <= UCHAR_MAX) i++;
261 if (i - 1 == first) /* unary range? */
262 printf("(%02x)", first);
263 else if (i - 1 > first) /* non-empty range? */
264 printf("(%02x-%02x)", first, i - 1);
265 }
266 printf("]");
267}
268
269
270static void printcapkind (int kind) {

Callers 1

printinstFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected