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

Function fxCharSetAny

xs/sources/xsre.c:617–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615// COMPILE
616
617void* fxCharSetAny(txPatternParser* parser)
618{
619 txCharSet* result;
620 if (parser->flags & XS_REGEXP_S) {
621 result = fxPatternParserCreateTerm(parser, sizeof(txCharSet) + (2 * sizeof(txInteger)), fxCharSetMeasure);
622 result->stringCount = 0;
623 result->strings = C_NULL;
624 result->characters[0] = 2;
625 result->characters[1] = 0x0000;
626 result->characters[2] = 0x7FFFFFFF;
627 }
628 else {
629 result = fxPatternParserCreateTerm(parser, sizeof(txCharSet) + (8 * sizeof(txInteger)), fxCharSetMeasure);
630 result->stringCount = 0;
631 result->strings = C_NULL;
632 result->characters[0] = 8;
633 result->characters[1] = 0x0000;
634 result->characters[2] = 0x000A;
635 result->characters[3] = 0x000B;
636 result->characters[4] = 0x000D;
637 result->characters[5] = 0x000E;
638 result->characters[6] = 0x2028;
639 result->characters[7] = 0x2030;
640 result->characters[8] = 0x7FFFFFFF;
641 }
642 return result;
643}
644
645void* fxCharSetCanonicalizeSingle(txPatternParser* parser, txCharSet* set)
646{

Callers 1

fxSequenceParseFunction · 0.85

Calls 1

Tested by

no test coverage detected