52 references to ParserState
System.Data (52)
fx\src\data\System\Data\Common\DbConnectionOptions.cs (52)
609
ParserState
parserState =
ParserState
.NothingYet;
615
case
ParserState
.NothingYet: // [\\s;]*
619
if ('\0' == currentChar) { parserState =
ParserState
.NullTermination; continue; } // MDAC 83540
623
parserState =
ParserState
.Key;
627
parserState =
ParserState
.KeyEqual;
631
case
ParserState
.Key: // (?<key>([^=\\s\\p{Cc}]|\\s+[^=\\s\\p{Cc}]|\\s+==|==)+)
632
if ('=' == currentChar) { parserState =
ParserState
.KeyEqual; continue; }
637
case
ParserState
.KeyEqual: // \\s*=(?!=)\\s*
638
if (!useOdbcRules && '=' == currentChar) { parserState =
ParserState
.Key; break; }
642
parserState =
ParserState
.KeyEnd;
643
goto case
ParserState
.KeyEnd;
645
case
ParserState
.KeyEnd:
648
if ('{' == currentChar) { parserState =
ParserState
.BraceQuoteValue; break; }
651
if ('\'' == currentChar) { parserState =
ParserState
.SingleQuoteValue; continue; }
652
if ('"' == currentChar) { parserState =
ParserState
.DoubleQuoteValue; continue; }
657
parserState =
ParserState
.UnquotedValue;
660
case
ParserState
.UnquotedValue: // "((?![\"'\\s])" + "([^;\\s\\p{Cc}]|\\s+[^;\\s\\p{Cc}])*" + "(?<![\"']))"
665
case
ParserState
.DoubleQuoteValue: // "(\"([^\"\u0000]|\"\")*\")"
666
if ('"' == currentChar) { parserState =
ParserState
.DoubleQuoteValueQuote; continue; }
670
case
ParserState
.DoubleQuoteValueQuote:
671
if ('"' == currentChar) { parserState =
ParserState
.DoubleQuoteValue; break; }
673
parserState =
ParserState
.QuotedValueEnd;
674
goto case
ParserState
.QuotedValueEnd;
676
case
ParserState
.SingleQuoteValue: // "('([^'\u0000]|'')*')"
677
if ('\'' == currentChar) { parserState =
ParserState
.SingleQuoteValueQuote; continue; }
681
case
ParserState
.SingleQuoteValueQuote:
682
if ('\'' == currentChar) { parserState =
ParserState
.SingleQuoteValue; break; }
684
parserState =
ParserState
.QuotedValueEnd;
685
goto case
ParserState
.QuotedValueEnd;
687
case
ParserState
.BraceQuoteValue: // "(\\{([^\\}\u0000]|\\}\\})*\\})"
688
if ('}' == currentChar) { parserState =
ParserState
.BraceQuoteValueQuote; break; }
692
case
ParserState
.BraceQuoteValueQuote:
693
if ('}' == currentChar) { parserState =
ParserState
.BraceQuoteValue; break; }
695
parserState =
ParserState
.QuotedValueEnd;
696
goto case
ParserState
.QuotedValueEnd;
698
case
ParserState
.QuotedValueEnd:
701
if ('\0' == currentChar) { parserState =
ParserState
.NullTermination; continue; } // MDAC 83540
704
case
ParserState
.NullTermination: // [\\s;\u0000]*
716
case
ParserState
.Key:
717
case
ParserState
.DoubleQuoteValue:
718
case
ParserState
.SingleQuoteValue:
719
case
ParserState
.BraceQuoteValue:
723
case
ParserState
.KeyEqual:
729
case
ParserState
.UnquotedValue:
739
case
ParserState
.DoubleQuoteValueQuote:
740
case
ParserState
.SingleQuoteValueQuote:
741
case
ParserState
.BraceQuoteValueQuote:
742
case
ParserState
.QuotedValueEnd:
747
case
ParserState
.NothingYet:
748
case
ParserState
.KeyEnd:
749
case
ParserState
.NullTermination: