MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxCharSetCanonicalizeSingle

Function fxCharSetCanonicalizeSingle

xs/sources/xsre.c:645–653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643}
644
645void* fxCharSetCanonicalizeSingle(txPatternParser* parser, txCharSet* set)
646{
647 if ((parser->flags & XS_REGEXP_I) && (set->characters[0] == 2) && (set->characters[1] + 1 == set->characters[2])) {
648 txBoolean flag = (parser->flags & XS_REGEXP_UV) ? 1 : 0;
649 set->characters[1] = fxCharCaseCanonicalize(set->characters[1], flag);
650 set->characters[2] = set->characters[1] + 1;
651 }
652 return set;
653}
654
655void* fxCharSetCombine(txPatternParser* parser, txCharSet* set1, txCharSet* set2, txInteger op)
656{

Callers 3

fxCharSetParseListFunction · 0.85
fxCharSetStringsSequenceFunction · 0.85
fxSequenceParseFunction · 0.85

Calls 1

fxCharCaseCanonicalizeFunction · 0.85

Tested by

no test coverage detected