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

Function check_compose_table

deps/quickjs/unicode_gen.c:2880–2900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2878}
2879
2880void check_compose_table(void)
2881{
2882 int i, p;
2883 /* XXX: we don't test all the cases */
2884
2885 for(i = 0; i <= CHARCODE_MAX; i++) {
2886 CCInfo *ci = &unicode_db[i];
2887 if (ci->decomp_len == 2 && !ci->is_compat &&
2888 !ci->is_excluded) {
2889 p = unicode_compose_pair(ci->decomp_data[0], ci->decomp_data[1]);
2890 if (p != i) {
2891 printf("ERROR compose: c=%05x %05x -> %05x ref=%05x\n",
2892 ci->decomp_data[0], ci->decomp_data[1], p, i);
2893 exit(1);
2894 }
2895 }
2896 }
2897
2898
2899
2900}
2901
2902#endif
2903

Callers 1

mainFunction · 0.85

Calls 2

unicode_compose_pairFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected