6 instantiations of RegexCharClass
System (6)
regex\system\text\regularexpressions\RegexCharClass.cs (1)
1031
return new
RegexCharClass
(charClass[start+FLAGS] == 1, ranges, new StringBuilder(charClass.Substring(end, myCategoryLength)), sub);
regex\system\text\regularexpressions\RegexFCD.cs (2)
501
_cc = new
RegexCharClass
();
506
_cc = new
RegexCharClass
();
regex\system\text\regularexpressions\RegexNode.cs (1)
407
prevCharClass = new
RegexCharClass
();
regex\system\text\regularexpressions\RegexParser.cs (2)
494
cc = scanOnly ? null : new
RegexCharClass
();
976
cc = new
RegexCharClass
();
74 references to RegexCharClass
System (74)
regex\system\text\regularexpressions\RegexCharClass.cs (17)
38
private
RegexCharClass
_subtractor;
515
private RegexCharClass(bool negate, List<SingleRange> ranges, StringBuilder categories,
RegexCharClass
subtraction) {
542
internal void AddCharClass(
RegexCharClass
cc) {
582
internal void AddSubtraction(
RegexCharClass
sub) {
704
AddSet(
RegexCharClass
.NotECMAWordSet);
706
AddCategory(
RegexCharClass
.NotWord);
710
AddSet(
RegexCharClass
.ECMAWordSet);
712
AddCategory(
RegexCharClass
.Word);
719
AddSet(
RegexCharClass
.NotECMASpaceSet);
721
AddCategory(
RegexCharClass
.NotSpace);
725
AddSet(
RegexCharClass
.ECMASpaceSet);
727
AddCategory(
RegexCharClass
.Space);
734
AddSet(
RegexCharClass
.NotECMADigitSet);
736
AddSet(
RegexCharClass
.ECMADigitSet);
1002
internal static
RegexCharClass
Parse(string charClass) {
1006
private static
RegexCharClass
ParseRecursive(string charClass, int start) {
1027
RegexCharClass
sub = null;
regex\system\text\regularexpressions\RegexCompiler.cs (3)
1434
if (!
RegexCharClass
.IsSingleton(_fcPrefix.Prefix)) {
1441
Ldc(
RegexCharClass
.SingletonChar(_fcPrefix.Prefix));
1449
if (!
RegexCharClass
.IsSingleton(_fcPrefix.Prefix))
regex\system\text\regularexpressions\RegexFCD.cs (3)
472
PushFC(new RegexFC(
RegexCharClass
.AnyClass, true, false));
496
internal
RegexCharClass
_cc;
523
_cc =
RegexCharClass
.Parse(charClass);
regex\system\text\regularexpressions\RegexInterpreter.cs (7)
383
if (
RegexCharClass
.IsSingleton(set)) {
384
char ch =
RegexCharClass
.SingletonChar(set);
395
if (
RegexCharClass
.CharInClass(Forwardcharnext(), set)) {
822
if (Forwardchars() < 1 || !
RegexCharClass
.CharInClass(Forwardcharnext(), runstrings[Operand(0)]))
907
if (!
RegexCharClass
.CharInClass(Forwardcharnext(), set))
983
if (!
RegexCharClass
.CharInClass(Forwardcharnext(), set)) {
1098
if (!
RegexCharClass
.CharInClass(Forwardcharnext(), runstrings[Operand(0)]))
regex\system\text\regularexpressions\RegexNode.cs (11)
315
if (
RegexCharClass
.IsEmpty(_str)) {
319
else if (
RegexCharClass
.IsSingleton(_str)) {
320
_ch =
RegexCharClass
.SingletonChar(_str);
324
else if (
RegexCharClass
.IsSingletonInverse(_str)) {
325
_ch =
RegexCharClass
.SingletonChar(_str);
385
if (!wasLastSet || optionsLast != optionsAt || lastNodeCannotMerge || !
RegexCharClass
.IsMergeable(at._str)) {
387
lastNodeCannotMerge = !
RegexCharClass
.IsMergeable(at._str);
405
RegexCharClass
prevCharClass;
411
prevCharClass =
RegexCharClass
.Parse(prev._str);
418
RegexCharClass
atCharClass =
RegexCharClass
.Parse(at._str);
regex\system\text\regularexpressions\RegexParser.cs (26)
333
AddUnitSet(
RegexCharClass
.AnyClass);
477
internal
RegexCharClass
ScanCharClass(bool caseInsensitive) {
485
internal
RegexCharClass
ScanCharClass(bool caseInsensitive, bool scanOnly) {
492
RegexCharClass
cc;
734
else if (
RegexCharClass
.IsWordChar(ch)) {
768
else if (
RegexCharClass
.IsWordChar(ch)) {
816
else if (
RegexCharClass
.IsWordChar(ch)) {
922
RegexCharClass
cc;
940
return new RegexNode(RegexNode.Set, _options,
RegexCharClass
.ECMAWordClass);
941
return new RegexNode(RegexNode.Set, _options,
RegexCharClass
.WordClass);
946
return new RegexNode(RegexNode.Set, _options,
RegexCharClass
.NotECMAWordClass);
947
return new RegexNode(RegexNode.Set, _options,
RegexCharClass
.NotWordClass);
952
return new RegexNode(RegexNode.Set, _options,
RegexCharClass
.ECMASpaceClass);
953
return new RegexNode(RegexNode.Set, _options,
RegexCharClass
.SpaceClass);
958
return new RegexNode(RegexNode.Set, _options,
RegexCharClass
.NotECMASpaceClass);
959
return new RegexNode(RegexNode.Set, _options,
RegexCharClass
.NotSpaceClass);
964
return new RegexNode(RegexNode.Set, _options,
RegexCharClass
.ECMADigitClass);
965
return new RegexNode(RegexNode.Set, _options,
RegexCharClass
.DigitClass);
970
return new RegexNode(RegexNode.Set, _options,
RegexCharClass
.NotECMADigitClass);
971
return new RegexNode(RegexNode.Set, _options,
RegexCharClass
.NotDigitClass);
1073
else if (angled &&
RegexCharClass
.IsWordChar(ch)) {
1156
else if (angled &&
RegexCharClass
.IsWordChar(ch)) {
1212
if (!
RegexCharClass
.IsWordChar(MoveRightGetChar())) {
1414
if (!UseOptionE() &&
RegexCharClass
.IsWordChar(ch))
1435
if (!(
RegexCharClass
.IsWordChar(ch) || ch == '-')) {
1560
if (ch != '0' &&
RegexCharClass
.IsWordChar(ch)) {
regex\system\text\regularexpressions\RegexRunner.cs (7)
374
return (index > startpos &&
RegexCharClass
.IsWordChar(runtext [index - 1])) !=
375
(index < endpos &&
RegexCharClass
.IsWordChar(runtext [index]));
379
return (index > startpos &&
RegexCharClass
.IsECMAWordChar(runtext [index - 1])) !=
380
(index < endpos &&
RegexCharClass
.IsECMAWordChar(runtext [index]));
384
string charClass =
RegexCharClass
.ConvertOldStringsToClass(set, category);
385
return
RegexCharClass
.CharInClass(ch, charClass);
389
return
RegexCharClass
.CharInClass(ch, charClass);