1 write to chars
System.Xml (1)
System\Xml\Schema\DtdParser.cs (1)
3062
chars
= readerAdapter.ParsingBuffer;
386 references to chars
System.Xml (386)
System\Xml\Schema\DtdParser.cs (206)
567
Debug.Assert( curPos > 0 &&
chars
[curPos-1] == ']' );
1578
switch (
chars
[curPos] ) {
1584
ThrowInvalidChar(
chars
, charsUsed, curPos );
1594
if (
chars
[curPos+1] == (char)0xA ) {
1602
chars
[curPos] = (char)0xA; // EOL normalization of 0xD
1619
if ( !xmlCharType.IsWhiteSpace(
chars
[curPos+1] ) ) {
1693
switch (
chars
[curPos] ) {
1695
switch (
chars
[curPos+1] ) {
1697
switch (
chars
[curPos+2] ) {
1699
if (
chars
[curPos+3] == 'L' ) {
1703
if (
chars
[curPos+4] != 'E' ||
chars
[curPos+5] != 'M' ||
1704
chars
[curPos+6] != 'E' ||
chars
[curPos+7] != 'N' ||
1705
chars
[curPos+8] != 'T' ) {
1713
else if (
chars
[curPos+3] == 'N' ) {
1717
if (
chars
[curPos+4] != 'T' ||
chars
[curPos+5] != 'I' ||
1718
chars
[curPos+6] != 'T' ||
chars
[curPos+7] != 'Y' ) {
1737
if (
chars
[curPos+3] != 'T' ||
chars
[curPos+4] != 'T' ||
1738
chars
[curPos+5] != 'L' ||
chars
[curPos+6] != 'I' ||
1739
chars
[curPos+7] != 'S' ||
chars
[curPos+8] != 'T' ) {
1751
if (
chars
[curPos+3] != 'O' ||
chars
[curPos+4] != 'T' ||
1752
chars
[curPos+5] != 'A' ||
chars
[curPos+6] != 'T' ||
1753
chars
[curPos+7] != 'I' ||
chars
[curPos+8] != 'O' ||
1754
chars
[curPos+9] != 'N' ) {
1767
if (
chars
[curPos+3] == '-' ) {
1801
if (
chars
[curPos+1] != ']' ) {
1809
if (
chars
[curPos+1] == ']' &&
chars
[curPos+2] == '>' ) {
1847
switch (
chars
[curPos] ) {
1877
switch (
chars
[curPos] ) {
1893
if (
chars
[curPos] != '>' ) {
1903
switch (
chars
[curPos] ) {
1912
if (
chars
[curPos+1] == 'M' &&
chars
[curPos+2] == 'P' &&
1913
chars
[curPos+3] == 'T' &&
chars
[curPos+4] == 'Y' ) {
1923
if (
chars
[curPos+1] == 'N' &&
chars
[curPos+2] == 'Y' ) {
1941
if (
chars
[curPos] == '#' ) {
1947
if (
chars
[curPos+1] == 'P' &&
chars
[curPos+2] == 'C' &&
1948
chars
[curPos+3] == 'D' &&
chars
[curPos+4] == 'A' &&
1949
chars
[curPos+5] == 'T' &&
chars
[curPos+6] == 'A' ) {
1964
switch (
chars
[curPos] ) {
1983
switch (
chars
[curPos] ) {
2004
switch (
chars
[curPos] ) {
2028
switch (
chars
[curPos] ) {
2046
if (
chars
[curPos] == '*' && !whitespaceSeen ) {
2054
switch (
chars
[curPos] ) {
2071
switch (
chars
[curPos] ) {
2080
if (
chars
[curPos+1] != 'D' ||
chars
[curPos+2] != 'A' ||
2081
chars
[curPos+3] != 'T' ||
chars
[curPos+4] != 'A' ) {
2091
if (
chars
[curPos+1] != 'N' ||
chars
[curPos+2] != 'T' ||
2092
chars
[curPos+3] != 'I' ||
chars
[curPos+4] != 'T' ) {
2095
switch (
chars
[curPos+5] ) {
2097
if (
chars
[curPos+6] != 'E' ||
chars
[curPos+7] != 'S' ) {
2114
if (
chars
[curPos+1] != 'D' ) {
2118
if (
chars
[curPos+2] != 'R' ) {
2123
if (
chars
[curPos+3] != 'E' ||
chars
[curPos+4] != 'F' ) {
2127
if (
chars
[curPos+5] != 'S' ) {
2139
switch (
chars
[curPos+1] ) {
2141
if (
chars
[curPos+2] != 'T' ||
chars
[curPos+3] != 'A' ||
2142
chars
[curPos+4] != 'T' ||
chars
[curPos+5] != 'I' ||
2143
chars
[curPos+6] != 'O' ||
chars
[curPos+7] != 'N' ) {
2150
if (
chars
[curPos+2] != 'T' ||
chars
[curPos+3] != 'O' ||
2151
chars
[curPos+4] != 'K' ||
chars
[curPos+5] != 'E' ||
2152
chars
[curPos+6] != 'N' ) {
2157
if (
chars
[curPos+7] == 'S' ) {
2183
if (
chars
[curPos] == '(' ) {
2196
switch (
chars
[curPos] ) {
2213
switch (
chars
[curPos] ) {
2232
switch (
chars
[curPos] ) {
2241
switch (
chars
[curPos+1] ) {
2245
if (
chars
[curPos+2] != 'E' ||
chars
[curPos+3] != 'Q' ||
2246
chars
[curPos+4] != 'U' ||
chars
[curPos+5] != 'I' ||
2247
chars
[curPos+6] != 'R' ||
chars
[curPos+7] != 'E' ||
2248
chars
[curPos+8] != 'D' ) {
2257
if (
chars
[curPos+2] != 'M' ||
chars
[curPos+3] != 'P' ||
2258
chars
[curPos+4] != 'L' ||
chars
[curPos+5] != 'I' ||
2259
chars
[curPos+6] != 'E' ||
chars
[curPos+7] != 'D' ) {
2266
if (
chars
[curPos+2] != 'I' ||
chars
[curPos+3] != 'X' ||
2267
chars
[curPos+4] != 'E' ||
chars
[curPos+5] != 'D' ) {
2290
switch (
chars
[curPos] ) {
2303
Debug.Assert(
chars
[curPos] == '"' ||
chars
[curPos] == '\'' );
2305
char quoteChar =
chars
[curPos];
2328
while ( ( xmlCharType.charProperties[
chars
[curPos]] & XmlCharType.fAttrValue ) != 0 &&
chars
[curPos] != '%' ) {
2334
if (
chars
[curPos] == quoteChar && currentEntityId == startQuoteEntityId ) {
2336
stringBuilder.Append(
chars
, tokenStartPos, curPos - tokenStartPos );
2345
stringBuilder.Append(
chars
, tokenStartPos, tmp1 );
2349
switch (
chars
[curPos] ) {
2365
if (
chars
[curPos+1] == (char)0xA ) {
2426
if (
chars
[curPos + 1] == '#' ) {
2430
stringBuilder.Append(
chars
, curPos, endPos - curPos );
2444
stringBuilder.Append(
chars
, curPos, endPos - curPos );
2483
char ch =
chars
[curPos];
2489
if ( XmlCharType.IsLowSurrogate(
chars
[curPos]) ) {
2494
ThrowInvalidChar(
chars
, charsUsed, curPos );
2520
if (
chars
[curPos] != ';' ) {
2530
switch (
chars
[curPos] ) {
2552
if (
chars
[curPos] != '"' &&
chars
[curPos] != '\'' ) {
2563
if (
chars
[curPos] == '%' ) {
2577
switch (
chars
[curPos] ) {
2605
if (
chars
[curPos] == 'N' ) {
2611
if (
chars
[curPos+1] == 'D' &&
chars
[curPos+2] == 'A' &&
2612
chars
[curPos+3] == 'T' &&
chars
[curPos+4] == 'A' ) {
2625
if (
chars
[curPos] != '"' &&
chars
[curPos] != '\'' ) {
2636
if (
chars
[curPos] != '"' &&
chars
[curPos] != '\'' ) {
2648
if (
chars
[curPos] != 'I' ) {
2657
switch (
chars
[curPos] ) {
2662
if (
chars
[curPos+1] != 'C' ||
chars
[curPos+2] != 'L' ||
2663
chars
[curPos+3] != 'U' ||
chars
[curPos+4] != 'D' ||
2664
chars
[curPos+5] != 'E' || xmlCharType.IsNameSingleChar(
chars
[curPos+6] )
2676
if (
chars
[curPos+1] != 'N' ||
chars
[curPos+2] != 'O' ||
2677
chars
[curPos+3] != 'R' ||
chars
[curPos+4] != 'E' ||
2678
xmlCharType.IsNameSingleChar(
chars
[curPos + 5] )
2701
if (
chars
[curPos] != '[' ) {
2721
while ( ( xmlCharType.charProperties[
chars
[curPos]] & XmlCharType.fText ) != 0 &&
chars
[curPos] != ']' ) {
2727
switch (
chars
[curPos] ) {
2740
if (
chars
[curPos+1] == (char)0xA ) {
2755
if (
chars
[curPos+1] != '!' ||
chars
[curPos+2] != '[' ) {
2766
if (
chars
[curPos+1] != ']' ||
chars
[curPos+2] != '>' ) {
2787
char ch =
chars
[curPos];
2793
if ( XmlCharType.IsLowSurrogate(
chars
[curPos])) {
2798
ThrowInvalidChar(
chars
, charsUsed, curPos );
2834
if ( ( xmlCharType.charProperties[
chars
[curPos]] & XmlCharType.fNCStartNameSC ) != 0 ||
chars
[curPos] == ':') { // if ( xmlCharType.IsStartNCNameSingleChar(chars[curPos]) || chars[curPos] == ':' ) {
2852
Throw( curPos, Res.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(
chars
, charsUsed, curPos ) );
2864
if ( ( xmlCharType.charProperties[
chars
[curPos]] & XmlCharType.fNCNameSC ) != 0 ) { // while ( xmlCharType.IsNCNameSingleChar(chars[curPos]) ) {
2880
if (
chars
[curPos] == ':' ) {
2932
if ((xmlCharType.charProperties[
chars
[curPos]] & XmlCharType.fNCNameSC) != 0 ||
chars
[curPos] == ':') { // if ( xmlCharType.IsNCNameChar(chars[curPos]) || chars[curPos] == ':' ) {
2954
Throw( curPos, Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(
chars
, charsUsed, curPos ) );
2975
Debug.Assert(
chars
[curPos] == 'P' );
2981
if (
chars
[curPos+1] != 'U' ||
chars
[curPos+2] != 'B' ||
2982
chars
[curPos+3] != 'L' ||
chars
[curPos+4] != 'I' ||
2983
chars
[curPos+5] != 'C' ) {
2991
Debug.Assert(
chars
[curPos] == 'S' );
2997
if (
chars
[curPos+1] != 'Y' ||
chars
[curPos+2] != 'S' ||
2998
chars
[curPos+3] != 'T' ||
chars
[curPos+4] != 'E' ||
2999
chars
[curPos+5] != 'M' ) {
3012
return new XmlQualifiedName( nameTable.Add(
chars
, tokenStartPos, curPos - tokenStartPos ) );
3016
return new XmlQualifiedName( nameTable.Add(
chars
, colonPos + 1, curPos - colonPos - 1 ),
3017
nameTable.Add(
chars
, tokenStartPos, colonPos - tokenStartPos ) );
3028
return new string(
chars
, tokenStartPos, curPos - tokenStartPos );
3037
return new string(
chars
, tokenStartPos, curPos - tokenStartPos - 1 );
3045
Debug.Assert( curPos == 0 ||
chars
[curPos-1] == '"' ||
chars
[curPos-1] == '\'' );
3047
string val = ( stringBuilder.Length == 0 ) ? new string(
chars
, tokenStartPos, curPos - tokenStartPos - 1 ) : stringBuilder.ToString();
3077
internalSubsetValueSb.Append(
chars
, readerCurPos, internalSubsetValueEndPos - readerCurPos );
3087
Debug.Assert(
chars
[curPos] == '&' ||
chars
[curPos] == '%' );
3095
Debug.Assert(
chars
[curPos-1] == ';' );
3172
Debug.Assert(
chars
[curPos-1] == ';' );
3310
if ( xmlCharType.IsNCNameSingleChar(
chars
[startPos] )
3318
if ( xmlCharType.IsNCNameSingleChar(
chars
[endPos] ) ) {
3332
return new string(
chars
, startPos, len > 0 ? len : 1 );
3336
return new string(
chars
, startPos, 1 );
System\Xml\Schema\DtdParserAsync.cs (180)
212
Debug.Assert( curPos > 0 &&
chars
[curPos-1] == ']' );
1195
switch (
chars
[curPos] ) {
1201
ThrowInvalidChar(
chars
, charsUsed, curPos );
1211
if (
chars
[curPos+1] == (char)0xA ) {
1219
chars
[curPos] = (char)0xA; // EOL normalization of 0xD
1236
if ( !xmlCharType.IsWhiteSpace(
chars
[curPos+1] ) ) {
1310
switch (
chars
[curPos] ) {
1312
switch (
chars
[curPos+1] ) {
1314
switch (
chars
[curPos+2] ) {
1316
if (
chars
[curPos+3] == 'L' ) {
1320
if (
chars
[curPos+4] != 'E' ||
chars
[curPos+5] != 'M' ||
1321
chars
[curPos+6] != 'E' ||
chars
[curPos+7] != 'N' ||
1322
chars
[curPos+8] != 'T' ) {
1330
else if (
chars
[curPos+3] == 'N' ) {
1334
if (
chars
[curPos+4] != 'T' ||
chars
[curPos+5] != 'I' ||
1335
chars
[curPos+6] != 'T' ||
chars
[curPos+7] != 'Y' ) {
1354
if (
chars
[curPos+3] != 'T' ||
chars
[curPos+4] != 'T' ||
1355
chars
[curPos+5] != 'L' ||
chars
[curPos+6] != 'I' ||
1356
chars
[curPos+7] != 'S' ||
chars
[curPos+8] != 'T' ) {
1368
if (
chars
[curPos+3] != 'O' ||
chars
[curPos+4] != 'T' ||
1369
chars
[curPos+5] != 'A' ||
chars
[curPos+6] != 'T' ||
1370
chars
[curPos+7] != 'I' ||
chars
[curPos+8] != 'O' ||
1371
chars
[curPos+9] != 'N' ) {
1384
if (
chars
[curPos+3] == '-' ) {
1418
if (
chars
[curPos+1] != ']' ) {
1426
if (
chars
[curPos+1] == ']' &&
chars
[curPos+2] == '>' ) {
1464
switch (
chars
[curPos] ) {
1495
switch (
chars
[curPos] ) {
1504
if (
chars
[curPos+1] == 'M' &&
chars
[curPos+2] == 'P' &&
1505
chars
[curPos+3] == 'T' &&
chars
[curPos+4] == 'Y' ) {
1515
if (
chars
[curPos+1] == 'N' &&
chars
[curPos+2] == 'Y' ) {
1533
if (
chars
[curPos] == '#' ) {
1539
if (
chars
[curPos+1] == 'P' &&
chars
[curPos+2] == 'C' &&
1540
chars
[curPos+3] == 'D' &&
chars
[curPos+4] == 'A' &&
1541
chars
[curPos+5] == 'T' &&
chars
[curPos+6] == 'A' ) {
1556
switch (
chars
[curPos] ) {
1572
switch (
chars
[curPos] ) {
1589
switch (
chars
[curPos] ) {
1598
if (
chars
[curPos+1] != 'D' ||
chars
[curPos+2] != 'A' ||
1599
chars
[curPos+3] != 'T' ||
chars
[curPos+4] != 'A' ) {
1609
if (
chars
[curPos+1] != 'N' ||
chars
[curPos+2] != 'T' ||
1610
chars
[curPos+3] != 'I' ||
chars
[curPos+4] != 'T' ) {
1613
switch (
chars
[curPos+5] ) {
1615
if (
chars
[curPos+6] != 'E' ||
chars
[curPos+7] != 'S' ) {
1632
if (
chars
[curPos+1] != 'D' ) {
1636
if (
chars
[curPos+2] != 'R' ) {
1641
if (
chars
[curPos+3] != 'E' ||
chars
[curPos+4] != 'F' ) {
1645
if (
chars
[curPos+5] != 'S' ) {
1657
switch (
chars
[curPos+1] ) {
1659
if (
chars
[curPos+2] != 'T' ||
chars
[curPos+3] != 'A' ||
1660
chars
[curPos+4] != 'T' ||
chars
[curPos+5] != 'I' ||
1661
chars
[curPos+6] != 'O' ||
chars
[curPos+7] != 'N' ) {
1668
if (
chars
[curPos+2] != 'T' ||
chars
[curPos+3] != 'O' ||
1669
chars
[curPos+4] != 'K' ||
chars
[curPos+5] != 'E' ||
1670
chars
[curPos+6] != 'N' ) {
1675
if (
chars
[curPos+7] == 'S' ) {
1702
switch (
chars
[curPos] ) {
1711
switch (
chars
[curPos+1] ) {
1715
if (
chars
[curPos+2] != 'E' ||
chars
[curPos+3] != 'Q' ||
1716
chars
[curPos+4] != 'U' ||
chars
[curPos+5] != 'I' ||
1717
chars
[curPos+6] != 'R' ||
chars
[curPos+7] != 'E' ||
1718
chars
[curPos+8] != 'D' ) {
1727
if (
chars
[curPos+2] != 'M' ||
chars
[curPos+3] != 'P' ||
1728
chars
[curPos+4] != 'L' ||
chars
[curPos+5] != 'I' ||
1729
chars
[curPos+6] != 'E' ||
chars
[curPos+7] != 'D' ) {
1736
if (
chars
[curPos+2] != 'I' ||
chars
[curPos+3] != 'X' ||
1737
chars
[curPos+4] != 'E' ||
chars
[curPos+5] != 'D' ) {
1760
Debug.Assert(
chars
[curPos] == '"' ||
chars
[curPos] == '\'' );
1762
char quoteChar =
chars
[curPos];
1785
while ((xmlCharType.charProperties[
chars
[curPos]] & XmlCharType.fAttrValue) != 0 &&
chars
[curPos] != '%') {
1791
if (
chars
[curPos] == quoteChar && currentEntityId == startQuoteEntityId ) {
1793
stringBuilder.Append(
chars
, tokenStartPos, curPos - tokenStartPos );
1802
stringBuilder.Append(
chars
, tokenStartPos, tmp1 );
1806
switch (
chars
[curPos] ) {
1822
if (
chars
[curPos+1] == (char)0xA ) {
1883
if (
chars
[curPos + 1] == '#' ) {
1887
stringBuilder.Append(
chars
, curPos, endPos - curPos );
1901
stringBuilder.Append(
chars
, curPos, endPos - curPos );
1940
char ch =
chars
[curPos];
1946
if ( XmlCharType.IsLowSurrogate(
chars
[curPos]) ) {
1951
ThrowInvalidChar(
chars
, charsUsed, curPos );
1970
switch (
chars
[curPos] ) {
1992
if (
chars
[curPos] != '"' &&
chars
[curPos] != '\'' ) {
2003
if (
chars
[curPos] == '%' ) {
2017
switch (
chars
[curPos] ) {
2045
if (
chars
[curPos] == 'N' ) {
2051
if (
chars
[curPos+1] == 'D' &&
chars
[curPos+2] == 'A' &&
2052
chars
[curPos+3] == 'T' &&
chars
[curPos+4] == 'A' ) {
2065
if (
chars
[curPos] != '"' &&
chars
[curPos] != '\'' ) {
2076
if (
chars
[curPos] != '"' &&
chars
[curPos] != '\'' ) {
2088
if (
chars
[curPos] != 'I' ) {
2097
switch (
chars
[curPos] ) {
2102
if (
chars
[curPos+1] != 'C' ||
chars
[curPos+2] != 'L' ||
2103
chars
[curPos+3] != 'U' ||
chars
[curPos+4] != 'D' ||
2104
chars
[curPos+5] != 'E' || xmlCharType.IsNameSingleChar(
chars
[curPos+6] )
2116
if (
chars
[curPos+1] != 'N' ||
chars
[curPos+2] != 'O' ||
2117
chars
[curPos+3] != 'R' ||
chars
[curPos+4] != 'E' ||
2118
xmlCharType.IsNameSingleChar(
chars
[curPos + 5] )
2152
while ((xmlCharType.charProperties[
chars
[curPos]] & XmlCharType.fText) != 0 &&
chars
[curPos] != ']') {
2158
switch (
chars
[curPos] ) {
2171
if (
chars
[curPos+1] == (char)0xA ) {
2186
if (
chars
[curPos+1] != '!' ||
chars
[curPos+2] != '[' ) {
2197
if (
chars
[curPos+1] != ']' ||
chars
[curPos+2] != '>' ) {
2218
char ch =
chars
[curPos];
2224
if ( XmlCharType.IsLowSurrogate(
chars
[curPos])) {
2229
ThrowInvalidChar(
chars
, charsUsed, curPos );
2266
if ((xmlCharType.charProperties[
chars
[curPos]] & XmlCharType.fNCStartNameSC) != 0 ||
chars
[curPos] == ':') { // if ( xmlCharType.IsStartNCNameSingleChar(chars[curPos]) || chars[curPos] == ':' ) {
2280
Throw(curPos, Res.Xml_BadStartNameChar, XmlException.BuildCharExceptionArgs(
chars
, charsUsed, curPos));
2298
if ((xmlCharType.charProperties[
chars
[curPos]] & XmlCharType.fNCNameSC) != 0) { // while ( xmlCharType.IsNCNameSingleChar(chars[curPos]) ) {
2314
if (
chars
[curPos] == ':' ) {
2366
if ((xmlCharType.charProperties[
chars
[curPos]] & XmlCharType.fNCNameSC) != 0 ||
chars
[curPos] == ':') { // if ( xmlCharType.IsNCNameChar(chars[curPos]) || chars[curPos] == ':' ) {
2387
Throw( curPos, Res.Xml_BadNameChar, XmlException.BuildCharExceptionArgs(
chars
, charsUsed, curPos ) );
2408
Debug.Assert(
chars
[curPos] == 'P' );
2414
if (
chars
[curPos+1] != 'U' ||
chars
[curPos+2] != 'B' ||
2415
chars
[curPos+3] != 'L' ||
chars
[curPos+4] != 'I' ||
2416
chars
[curPos+5] != 'C' ) {
2424
Debug.Assert(
chars
[curPos] == 'S' );
2430
if (
chars
[curPos+1] != 'Y' ||
chars
[curPos+2] != 'S' ||
2431
chars
[curPos+3] != 'T' ||
chars
[curPos+4] != 'E' ||
2432
chars
[curPos+5] != 'M' ) {
2453
Debug.Assert(
chars
[curPos] == '&' ||
chars
[curPos] == '%' );
2461
Debug.Assert(
chars
[curPos-1] == ';' );