MCPcopy Create free account
hub / github.com/buke/quickjs-go / parse_composition_exclusions

Function parse_composition_exclusions

deps/quickjs/unicode_gen.c:548–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548void parse_composition_exclusions(const char *filename)
549{
550 FILE *f;
551 char line[4096], *p;
552 uint32_t c0;
553
554 f = fopen(filename, "rb");
555 if (!f) {
556 perror(filename);
557 exit(1);
558 }
559
560 for(;;) {
561 if (!get_line(line, sizeof(line), f))
562 break;
563 p = line;
564 while (isspace(*p))
565 p++;
566 if (*p == '#' || *p == '@' || *p == '\0')
567 continue;
568 c0 = strtoul(p, (char **)&p, 16);
569 assert(c0 > 0 && c0 <= CHARCODE_MAX);
570 unicode_db[c0].is_excluded = true;
571 }
572 fclose(f);
573}
574
575void parse_derived_core_properties(const char *filename)
576{

Callers 1

mainFunction · 0.85

Calls 3

exitFunction · 0.85
get_lineFunction · 0.85
assertFunction · 0.50

Tested by

no test coverage detected