327 references to XmlCharType
System.Private.Xml (327)
System\Xml\Base64Decoder.cs (2)
139
if (
XmlCharType
.IsWhiteSpace(ch))
178
if (!
XmlCharType
.IsWhiteSpace(chars[iChar++]))
System\Xml\BinaryXml\XmlBinaryReader.cs (4)
3503
if (value > byte.MaxValue || !
XmlCharType
.IsWhiteSpace((char)value))
3518
if (!
XmlCharType
.IsCharData(ch))
3522
if (!
XmlCharType
.IsHighSurrogate(ch))
3532
if (!
XmlCharType
.IsLowSurrogate((char)lowSurr))
System\Xml\BinHexDecoder.cs (1)
159
else if (
XmlCharType
.IsWhiteSpace(ch))
System\Xml\Core\CharEntityEncoderFallback.cs (1)
160
return
XmlCharType
.CombineSurrogateChar(lowSurrogate, highSurrogate);
System\Xml\Core\HtmlEncodedRawTextWriter.cs (2)
559
while (pDst < pDstEnd &&
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)))
647
while (pDst < pDstEnd &&
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)) && ch < 0x80)
System\Xml\Core\HtmlUtf8RawTextWriter.cs (2)
536
while (pDst < pDstEnd &&
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)) && ch <= 0x7F)
624
while (pDst < pDstEnd &&
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)) && ch < 0x80)
System\Xml\Core\XmlAutoDetectWriter.cs (1)
381
if (
XmlCharType
.IsOnlyWhitespace(textBlock))
System\Xml\Core\XmlCharCheckingReader.cs (2)
317
if ((i =
XmlCharType
.IsPublicId(str)) >= 0)
593
if ((i =
XmlCharType
.IsOnlyWhitespaceWithPos(value)) != -1)
System\Xml\Core\XmlCharCheckingReaderAsync.cs (1)
178
if ((i =
XmlCharType
.IsPublicId(str)) >= 0)
System\Xml\Core\XmlCharCheckingWriter.cs (2)
81
if ((i =
XmlCharType
.IsPublicId(pubid)) >= 0)
227
if ((i =
XmlCharType
.IsOnlyWhitespaceWithPos(ws)) != -1)
System\Xml\Core\XmlCharCheckingWriterAsync.cs (2)
31
if ((i =
XmlCharType
.IsPublicId(pubid)) >= 0)
173
if ((i =
XmlCharType
.IsOnlyWhitespaceWithPos(ws)) != -1)
System\Xml\Core\XmlEncodedRawTextWriter.cs (26)
567
if (_checkCharacters && !
XmlCharType
.IsCharData(ch))
637
int surrogateChar =
XmlCharType
.CombineSurrogateChar(lowChar, highChar);
905
while (pDst < pDstEnd &&
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)))
986
if (
XmlCharType
.IsSurrogate(ch))
1029
while (pDst < pDstEnd &&
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)))
1106
if (
XmlCharType
.IsSurrogate(ch))
1160
while (pDst < pDstEnd && ((ch = *pSrc) <
XmlCharType
.SurHighStart))
1184
if (
XmlCharType
.IsSurrogate(ch))
1224
while (pDst < pDstEnd &&
XmlCharType
.IsTextChar((char)(ch = *pSrc)))
1288
if (
XmlCharType
.IsSurrogate(ch))
1344
while (pDst < pDstEnd && (
XmlCharType
.IsTextChar((char)(ch = *pSrc)) && ch != stopChar))
1437
if (
XmlCharType
.IsSurrogate(ch))
1495
while (pDst < pDstEnd && (
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)) && ch != ']'))
1582
if (
XmlCharType
.IsSurrogate(ch))
1610
Debug.Assert(
XmlCharType
.IsSurrogate(*pSrc));
1613
if (ch <=
XmlCharType
.SurHighEnd)
1618
if (lowChar >=
XmlCharType
.SurLowStart &&
1619
(LocalAppContextSwitches.DontThrowOnInvalidSurrogatePairs || lowChar <=
XmlCharType
.SurLowEnd))
1636
Debug.Assert(!
XmlCharType
.IsWhiteSpace((char)ch));
1637
Debug.Assert(!
XmlCharType
.IsAttributeValueChar((char)ch));
1664
if (
XmlCharType
.IsSurrogate(ch))
1850
if (!
XmlCharType
.IsOnlyWhitespace(chars))
1860
if (!
XmlCharType
.IsTextChar(chars[i]))
1874
if (
XmlCharType
.IsHighSurrogate(chars[i]))
1878
if (
XmlCharType
.IsLowSurrogate(chars[i + 1]))
1887
else if (
XmlCharType
.IsLowSurrogate(chars[i]))
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (14)
465
if (_checkCharacters && !
XmlCharType
.IsCharData(ch))
532
int surrogateChar =
XmlCharType
.CombineSurrogateChar(lowChar, highChar);
741
while (pDst < pDstEnd &&
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)))
819
if (
XmlCharType
.IsSurrogate(ch))
945
while (pDst < pDstEnd &&
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)))
1024
if (
XmlCharType
.IsSurrogate(ch))
1186
while (pDst < pDstEnd && ((ch = *pSrc) <
XmlCharType
.SurHighStart))
1208
if (
XmlCharType
.IsSurrogate(ch))
1361
while (pDst < pDstEnd &&
XmlCharType
.IsTextChar((char)(ch = *pSrc)))
1427
if (
XmlCharType
.IsSurrogate(ch))
1563
while (pDst < pDstEnd && (
XmlCharType
.IsTextChar((char)(ch = *pSrc)) && ch != stopChar))
1658
if (
XmlCharType
.IsSurrogate(ch))
1753
while (pDst < pDstEnd && (
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)) && ch != ']'))
1842
if (
XmlCharType
.IsSurrogate(ch))
System\Xml\Core\XmlTextEncoder.cs (19)
100
if (!
XmlCharType
.IsLowSurrogate(lowChar) ||
101
!
XmlCharType
.IsHighSurrogate(highChar))
130
while (i < endPos &&
XmlCharType
.IsAttributeValueChar(ch = array[i]))
191
if (
XmlCharType
.IsHighSurrogate(ch))
202
else if (
XmlCharType
.IsLowSurrogate(ch))
208
Debug.Assert((ch < 0x20 && !
XmlCharType
.IsWhiteSpace(ch)) || (ch > 0xFFFD));
219
if (!
XmlCharType
.IsLowSurrogate(lowChar) ||
220
!
XmlCharType
.IsHighSurrogate(highChar))
224
int surrogateChar =
XmlCharType
.CombineSurrogateChar(lowChar, highChar);
258
while (i < len &&
XmlCharType
.IsAttributeValueChar(ch = text[i]))
347
if (
XmlCharType
.IsHighSurrogate(ch))
358
else if (
XmlCharType
.IsLowSurrogate(ch))
364
Debug.Assert((ch < 0x20 && !
XmlCharType
.IsWhiteSpace(ch)) || (ch > 0xFFFD));
371
while (i < len &&
XmlCharType
.IsAttributeValueChar(ch = text[i]))
397
while (i < len && (
XmlCharType
.IsCharData((ch = text[i])) || ch < 0x20))
405
if (
XmlCharType
.IsHighSurrogate(ch))
410
if (
XmlCharType
.IsLowSurrogate(lowChar))
422
else if (
XmlCharType
.IsLowSurrogate(ch))
457
if (
XmlCharType
.IsSurrogate(ch))
System\Xml\Core\XmlTextReaderImpl.cs (50)
1835
if (
XmlCharType
.IsHighSurrogate(ch))
1879
if (
XmlCharType
.IsHighSurrogate(ch))
3595
XmlCharType
.IsNameSingleChar(_ps.chars![_ps.charPos + 5]))
3772
while (
XmlCharType
.IsAttributeValueChar(chars[pos]))
4304
if (
XmlCharType
.IsStartNCNameSingleChar(chars[pos]))
4317
if (
XmlCharType
.IsNCNameSingleChar(chars[pos]))
4392
bool isWs =
XmlCharType
.IsWhiteSpace(ch);
4580
if (
XmlCharType
.IsNCNameSingleChar(chars[pos]) || (chars[pos] == ':'))
4589
while (
XmlCharType
.IsWhiteSpace(tmpCh = chars[pos]))
4686
while (
XmlCharType
.IsWhiteSpace(tmpch0 = chars[pos]))
4718
if (
XmlCharType
.IsStartNCNameSingleChar(tmpch1 = chars[pos]))
4790
if (
XmlCharType
.IsNCNameSingleChar(tmpch2 = chars[pos]))
4820
if (
XmlCharType
.IsStartNCNameSingleChar(chars[pos]))
4876
while (
XmlCharType
.IsAttributeValueChar(tmpch3 = chars[pos]))
5108
while (
XmlCharType
.IsAttributeValueChar(chars[pos]))
5285
if (
XmlCharType
.IsHighSurrogate(ch))
5292
if (
XmlCharType
.IsLowSurrogate(chars[pos]))
5550
while (
XmlCharType
.IsTextChar(c = chars[pos]))
5624
if (!
XmlCharType
.IsWhiteSpace(chars[charRefEndPos - charCount]) ||
5653
if (!
XmlCharType
.IsWhiteSpace(_ps.chars[pos - 1]))
5687
if (
XmlCharType
.IsHighSurrogate(ch))
5694
if (
XmlCharType
.IsLowSurrogate(chars[pos]))
5929
if (
XmlCharType
.IsCharData(_ps.chars[_ps.charPos]))
6317
while (
XmlCharType
.IsTextChar(tmpch = chars[pos]) && tmpch != '?')
6413
if (
XmlCharType
.IsHighSurrogate(ch))
6420
if (
XmlCharType
.IsLowSurrogate(chars[pos]))
6523
while (
XmlCharType
.IsTextChar(tmpch = chars[pos]) && tmpch != stopChar)
6629
if (
XmlCharType
.IsHighSurrogate(ch))
6636
if (
XmlCharType
.IsLowSurrogate(chars[pos]))
6687
if (!
XmlCharType
.IsWhiteSpace(_ps.chars[_ps.charPos + 7]))
6875
while (
XmlCharType
.IsAttributeValueChar(ch = chars[pos]) && chars[pos] != stopChar && ch != '-' && ch != '?')
7019
if (
XmlCharType
.IsHighSurrogate(tmpCh))
7026
if (
XmlCharType
.IsLowSurrogate(chars[pos]))
7288
if (!
XmlCharType
.IsCharData(ch) &&
7306
XmlCharType
.SplitSurrogateChar(val, out low, out high);
7310
if (
XmlCharType
.IsHighSurrogate(high))
7312
if (
XmlCharType
.IsLowSurrogate(low))
7516
if (
XmlCharType
.IsStartNCNameSingleChar(chars[pos]))
7540
if (
XmlCharType
.IsNCNameSingleChar(chars[pos]))
8279
while (
XmlCharType
.IsAttributeValueChar(c = chars[pos]) && c != '/')
8286
while (
XmlCharType
.IsAttributeValueChar(chars[pos]))
8380
(_ps.chars[endPos] == '>' ||
XmlCharType
.IsWhiteSpace(_ps.chars[endPos])))
8389
if (
XmlCharType
.IsWhiteSpace(_ps.chars[endPos]))
8419
(_ps.chars[endPos] == '>' || _ps.chars[endPos] == '/' ||
XmlCharType
.IsWhiteSpace(_ps.chars[endPos])))
8583
while (
XmlCharType
.IsAttributeValueChar(chars[pos]))
8627
if (_normalize &&
XmlCharType
.IsWhiteSpace(chars[_ps.charPos]) && pos - _ps.charPos == 1)
8660
if (
XmlCharType
.IsHighSurrogate(ch))
8668
if (
XmlCharType
.IsLowSurrogate(chars[pos]))
8785
if (
XmlCharType
.IsNCNameSingleChar(_ps.chars[_ps.charPos]))
8788
while (
XmlCharType
.IsNCNameSingleChar(_ps.chars[pos]))
System\Xml\Core\XmlTextReaderImplAsync.cs (35)
660
if (
XmlCharType
.IsHighSurrogate(ch))
706
if (
XmlCharType
.IsHighSurrogate(ch))
1180
XmlCharType
.IsNameSingleChar(_ps.chars[_ps.charPos + 5]))
1354
while (
XmlCharType
.IsAttributeValueChar(chars[pos]))
1868
if (
XmlCharType
.IsStartNCNameSingleChar(chars[pos]))
1881
if (
XmlCharType
.IsNCNameSingleChar(chars[pos]))
1987
isWs =
XmlCharType
.IsWhiteSpace(ch);
2198
if (
XmlCharType
.IsNCNameSingleChar(chars[pos]) || (chars[pos] == ':'))
2212
while (
XmlCharType
.IsWhiteSpace(tmpCh = chars[pos]))
2319
while (
XmlCharType
.IsWhiteSpace(tmpch0 = chars[pos]))
2351
if (
XmlCharType
.IsStartNCNameSingleChar(tmpch1 = chars[pos]))
2423
if (
XmlCharType
.IsNCNameSingleChar(tmpch2 = chars[pos]))
2453
if (
XmlCharType
.IsStartNCNameSingleChar(chars[pos]))
2519
while (
XmlCharType
.IsAttributeValueChar(tmpch3 = chars[pos]))
2618
while (
XmlCharType
.IsAttributeValueChar(chars[pos]))
2800
if (
XmlCharType
.IsHighSurrogate(ch))
2807
if (
XmlCharType
.IsLowSurrogate(chars[pos]))
3249
while (
XmlCharType
.IsTextChar(c = chars[pos]))
3365
if (!
XmlCharType
.IsWhiteSpace(chars[charRefEndPos - charCount]) ||
3403
if (!
XmlCharType
.IsWhiteSpace(_ps.chars[pos - 1]))
3423
if (
XmlCharType
.IsHighSurrogate(ch))
3432
if (
XmlCharType
.IsLowSurrogate(chars[pos]))
3705
if (
XmlCharType
.IsCharData(_ps.chars[_ps.charPos]))
4040
while (
XmlCharType
.IsTextChar(tmpch = chars[pos]) && tmpch != '?')
4137
if (
XmlCharType
.IsHighSurrogate(ch))
4144
if (
XmlCharType
.IsLowSurrogate(chars[pos]))
4265
while (
XmlCharType
.IsTextChar(tmpch = chars[pos]) && tmpch != stopChar)
4372
if (
XmlCharType
.IsHighSurrogate(ch))
4379
if (
XmlCharType
.IsLowSurrogate(chars[pos]))
4428
if (!
XmlCharType
.IsWhiteSpace(_ps.chars[_ps.charPos + 7]))
4618
while (
XmlCharType
.IsAttributeValueChar(ch = chars[pos]) && ch != stopChar && ch != '-' && ch != '?')
4762
if (
XmlCharType
.IsHighSurrogate(tmpCh))
4769
if (
XmlCharType
.IsLowSurrogate(chars[pos]))
4988
if (
XmlCharType
.IsStartNCNameSingleChar(chars[pos]))
5015
if (
XmlCharType
.IsNCNameSingleChar(chars[pos]))
System\Xml\Core\XmlTextWriter.cs (1)
847
if (!
XmlCharType
.IsOnlyWhitespace(ws))
System\Xml\Core\XmlUtf8RawTextWriter.cs (28)
489
if (_checkCharacters && !
XmlCharType
.IsCharData(ch))
552
int surrogateChar =
XmlCharType
.CombineSurrogateChar(lowChar, highChar);
724
while (pDst < pDstEnd &&
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)) && ch <= 0x7F)
805
if (
XmlCharType
.IsSurrogate(ch))
847
while (pDst < pDstEnd &&
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)) && ch <= 0x7F)
924
if (
XmlCharType
.IsSurrogate(ch))
1001
if (
XmlCharType
.IsSurrogate(ch))
1040
while (pDst < pDstEnd &&
XmlCharType
.IsTextChar((char)(ch = *pSrc)) && ch <= 0x7F)
1104
if (
XmlCharType
.IsSurrogate(ch))
1159
while (pDst < pDstEnd &&
XmlCharType
.IsTextChar((char)(ch = *pSrc)) && ch != stopChar && ch <= 0x7F)
1252
if (
XmlCharType
.IsSurrogate(ch))
1309
while (pDst < pDstEnd &&
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)) && ch != ']' && ch <= 0x7F)
1396
if (
XmlCharType
.IsSurrogate(ch))
1430
Debug.Assert(
XmlCharType
.IsSurrogate(*pSrc));
1433
if (ch <=
XmlCharType
.SurHighEnd)
1438
if (lowChar >=
XmlCharType
.SurLowStart &&
1439
(LocalAppContextSwitches.DontThrowOnInvalidSurrogatePairs || lowChar <=
XmlCharType
.SurLowEnd))
1444
ch =
XmlCharType
.CombineSurrogateChar(lowChar, ch);
1463
Debug.Assert(!
XmlCharType
.IsWhiteSpace((char)ch));
1464
Debug.Assert(!
XmlCharType
.IsAttributeValueChar((char)ch));
1498
if (
XmlCharType
.IsSurrogate(ch))
1519
Debug.Assert(ch >= 0x80 && !
XmlCharType
.IsSurrogate(ch));
1554
else if (
XmlCharType
.IsSurrogate(ch))
1712
if (!
XmlCharType
.IsOnlyWhitespace(chars))
1722
if (!
XmlCharType
.IsTextChar(chars[i]))
1736
if (
XmlCharType
.IsHighSurrogate(chars[i]))
1740
if (
XmlCharType
.IsLowSurrogate(chars[i + 1]))
1749
else if (
XmlCharType
.IsLowSurrogate(chars[i]))
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (13)
417
if (_checkCharacters && !
XmlCharType
.IsCharData(ch))
476
int surrogateChar =
XmlCharType
.CombineSurrogateChar(lowChar, highChar);
612
while (pDst < pDstEnd &&
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)) && ch <= 0x7F)
690
if (
XmlCharType
.IsSurrogate(ch))
815
while (pDst < pDstEnd &&
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)) && ch <= 0x7F)
894
if (
XmlCharType
.IsSurrogate(ch))
1077
if (
XmlCharType
.IsSurrogate(ch))
1229
while (pDst < pDstEnd &&
XmlCharType
.IsTextChar((char)(ch = *pSrc)) && ch <= 0x7F)
1295
if (
XmlCharType
.IsSurrogate(ch))
1430
while (pDst < pDstEnd &&
XmlCharType
.IsTextChar((char)(ch = *pSrc)) && ch != stopChar && ch <= 0x7F)
1525
if (
XmlCharType
.IsSurrogate(ch))
1619
while (pDst < pDstEnd &&
XmlCharType
.IsAttributeValueChar((char)(ch = *pSrc)) && ch != ']' && ch <= 0x7F)
1708
if (
XmlCharType
.IsSurrogate(ch))
System\Xml\Core\XmlWellFormedWriter.cs (6)
391
if ((i =
XmlCharType
.IsPublicId(pubid)) >= 0)
398
if ((i =
XmlCharType
.IsOnlyCharData(sysid)) >= 0)
405
if ((i =
XmlCharType
.IsOnlyCharData(subset)) >= 0)
1011
if (!
XmlCharType
.IsOnlyWhitespace(ws))
2037
if (
XmlCharType
.IsStartNCNameSingleChar(ncname[0]))
2049
if (
XmlCharType
.IsNCNameSingleChar(ncname[i]))
System\Xml\Core\XmlWellFormedWriterAsync.cs (4)
92
if ((i =
XmlCharType
.IsPublicId(pubid)) >= 0)
99
if ((i =
XmlCharType
.IsOnlyCharData(sysid)) >= 0)
106
if ((i =
XmlCharType
.IsOnlyCharData(subset)) >= 0)
913
if (!
XmlCharType
.IsOnlyWhitespace(ws))
System\Xml\Core\XmlWellFormedWriterHelpers.cs (2)
437
while (bufChunk.index < endIndex &&
XmlCharType
.IsWhiteSpace(bufChunk.buffer[bufChunk.index]))
477
while (bufChunk.count > 0 &&
XmlCharType
.IsWhiteSpace(bufChunk.buffer[bufChunk.index + bufChunk.count - 1]))
System\Xml\Dom\XmlCharacterData.cs (1)
190
return
XmlCharType
.IsOnlyWhitespace(data);
System\Xml\Dom\XmlDeclaration.cs (1)
179
return ver.Length >= 3 && ver[0] == '1' && ver[1] == '.' &&
XmlCharType
.IsOnlyDigits(ver, 2, ver.Length - 2);
System\Xml\Schema\DtdParser.cs (17)
291
if ((i =
XmlCharType
.IsOnlyCharData(systemId)) >= 0)
301
if ((i =
XmlCharType
.IsPublicId(publicId)) >= 0)
1499
if ((i =
XmlCharType
.IsPublicId(publicId)) >= 0)
1598
if (!
XmlCharType
.IsWhiteSpace(_chars[_curPos + 1]))
2408
while (
XmlCharType
.IsAttributeValueChar(_chars[_curPos]) && _chars[_curPos] != '%')
2590
if (
XmlCharType
.IsHighSurrogate(ch))
2597
if (
XmlCharType
.IsLowSurrogate(_chars[_curPos]))
2807
_chars[_curPos + 5] != 'E' ||
XmlCharType
.IsNameSingleChar(_chars[_curPos + 6]))
2818
XmlCharType
.IsNameSingleChar(_chars[_curPos + 5]))
2856
while (
XmlCharType
.IsTextChar(_chars[_curPos]) && _chars[_curPos] != ']')
2934
if (
XmlCharType
.IsHighSurrogate(ch))
2941
if (
XmlCharType
.IsLowSurrogate(_chars[_curPos]))
2983
if (
XmlCharType
.IsStartNCNameSingleChar(_chars[_curPos]) || _chars[_curPos] == ':')
3007
if (
XmlCharType
.IsNCNameSingleChar(_chars[_curPos]))
3071
if (
XmlCharType
.IsNCNameSingleChar(_chars[_curPos]) || _chars[_curPos] == ':')
3509
if (
XmlCharType
.IsNCNameSingleChar(_chars[startPos]))
3514
if (
XmlCharType
.IsNCNameSingleChar(_chars[endPos]))
System\Xml\Schema\DtdParserAsync.cs (13)
1124
if ((i =
XmlCharType
.IsPublicId(publicId)) >= 0)
1225
if (!
XmlCharType
.IsWhiteSpace(_chars[_curPos + 1]))
1854
while (
XmlCharType
.IsAttributeValueChar(_chars[_curPos]) && _chars[_curPos] != '%')
2036
if (
XmlCharType
.IsHighSurrogate(ch))
2043
if (
XmlCharType
.IsLowSurrogate(_chars[_curPos]))
2232
_chars[_curPos + 5] != 'E' ||
XmlCharType
.IsNameSingleChar(_chars[_curPos + 6]))
2243
XmlCharType
.IsNameSingleChar(_chars[_curPos + 5]))
2270
while (
XmlCharType
.IsTextChar(_chars[_curPos]) && _chars[_curPos] != ']')
2348
if (
XmlCharType
.IsHighSurrogate(ch))
2355
if (
XmlCharType
.IsLowSurrogate(_chars[_curPos]))
2397
if (
XmlCharType
.IsStartNCNameSingleChar(_chars[_curPos]) || _chars[_curPos] == ':')
2420
if (
XmlCharType
.IsNCNameSingleChar(_chars[_curPos]))
2484
if (
XmlCharType
.IsNCNameSingleChar(_chars[_curPos]) || _chars[_curPos] == ':')
System\Xml\Schema\Parser.cs (1)
224
if (!
XmlCharType
.IsOnlyWhitespace(_reader.Value))
System\Xml\Schema\XmlSchemaValidator.cs (1)
771
if (
XmlCharType
.IsOnlyWhitespace(textValue))
System\Xml\ValidateNames.cs (10)
44
if (
XmlCharType
.IsNCNameSingleChar(s[i]))
75
if (
XmlCharType
.IsNameSingleChar(s[i]) || s[i] == ':')
113
if (
XmlCharType
.IsStartNCNameSingleChar(s[i]) || s[i] == ':')
125
if (
XmlCharType
.IsNCNameSingleChar(s[i]) || s[i] == ':')
163
if (
XmlCharType
.IsStartNCNameSingleChar(s[i]))
175
if (
XmlCharType
.IsNCNameSingleChar(s[i]))
378
if (
XmlCharType
.IsNCNameSingleChar(s[offsetBadChar]) && !
XmlCharType
.IsStartNCNameSingleChar(s[offsetBadChar]))
398
if (
XmlCharType
.IsNCNameSingleChar(s[offsetBadChar]) && !
XmlCharType
.IsStartNCNameSingleChar(s[offsetBadChar]))
System\Xml\XmlComplianceUtil.cs (6)
25
while (
XmlCharType
.IsWhiteSpace(value[startPos]))
37
if (!
XmlCharType
.IsWhiteSpace(value[i]))
44
while (j < len &&
XmlCharType
.IsWhiteSpace(value[j]))
162
if (
XmlCharType
.IsLetter(ch))
164
if (
XmlCharType
.IsLetter(value[++i]))
187
if (
XmlCharType
.IsLetter(ch))
System\Xml\XmlConvert.cs (25)
130
XmlCharType
.SplitSurrogateChar(u, out lowChar, out highChar);
201
if ((!
XmlCharType
.IsStartNCNameCharXml4e(name[0]) && (local || name[0] != ':')) ||
207
if (length > 1 &&
XmlCharType
.IsHighSurrogate(name[0]) &&
XmlCharType
.IsLowSurrogate(name[1]))
211
int u =
XmlCharType
.CombineSurrogateChar(y, x);
235
if ((local && !
XmlCharType
.IsNCNameCharXml4e(name[position])) ||
236
(!local && !
XmlCharType
.IsNameCharXml4e(name[position])) ||
249
if ((length > position + 1) &&
XmlCharType
.IsHighSurrogate(name[position]) &&
XmlCharType
.IsLowSurrogate(name[position + 1]))
253
int u =
XmlCharType
.CombineSurrogateChar(y, x);
508
int pos =
XmlCharType
.IsPublicId(publicId);
524
int pos =
XmlCharType
.IsOnlyWhitespaceWithPos(content);
544
return
XmlCharType
.IsStartNCNameSingleChar(ch);
551
return
XmlCharType
.IsNCNameSingleChar(ch);
557
return
XmlCharType
.IsCharData(ch);
562
return
XmlCharType
.IsHighSurrogate(highChar) &&
XmlCharType
.IsLowSurrogate(lowChar);
568
return
XmlCharType
.IsPubidChar(ch);
574
return
XmlCharType
.IsWhiteSpace(ch);
1405
while (i < len &&
XmlCharType
.IsCharData(data[i]))
1415
if (
XmlCharType
.IsHighSurrogate(ch))
1422
if (
XmlCharType
.IsLowSurrogate(ch))
1447
while (i < endPos &&
XmlCharType
.IsCharData(data[i]))
1457
if (
XmlCharType
.IsHighSurrogate(ch))
1464
if (
XmlCharType
.IsLowSurrogate(ch))
System\Xml\XmlEncoding.cs (6)
505
chars[charIndex] = (char)(
XmlCharType
.SurHighStart + (char)((code >> 16) - 1) + (char)((code >> 10) & 0x3F));
506
chars[charIndex + 1] = (char)(
XmlCharType
.SurLowStart + (char)(code & 0x3FF));
533
if (
XmlCharType
.IsSurrogate((int)code))
574
if (
XmlCharType
.IsSurrogate((int)code))
616
if (
XmlCharType
.IsSurrogate((int)code))
658
if (
XmlCharType
.IsSurrogate((int)code))
System\Xml\XmlException.cs (2)
239
if (
XmlCharType
.IsHighSurrogate(invChar) && nextChar != 0)
241
int combinedChar =
XmlCharType
.CombineSurrogateChar(nextChar, invChar);
System\Xml\XPath\Internal\StringFunctions.cs (1)
234
if (!
XmlCharType
.IsWhiteSpace(chars[comparePos]))
System\Xml\XPath\Internal\XPathScanner.cs (8)
114
if (
XmlCharType
.IsWhiteSpace(CurrentChar))
122
Debug.Assert(
XmlCharType
.IsWhiteSpace(CurrentChar));
123
while (NextChar() &&
XmlCharType
.IsWhiteSpace(CurrentChar));
211
else if (
XmlCharType
.IsStartNCNameSingleChar(CurrentChar))
235
else if (
XmlCharType
.IsStartNCNameSingleChar(CurrentChar))
333
Debug.Assert(
XmlCharType
.IsStartNCNameSingleChar(span[0]));
334
Debug.Assert(
XmlCharType
.IsNCNameSingleChar(span[0]));
337
for (i = 1; i < span.Length &&
XmlCharType
.IsNCNameSingleChar(span[i]); i++);
System\Xml\Xsl\Runtime\WhitespaceRuleReader.cs (1)
108
if (
XmlCharType
.IsOnlyWhitespace(base.Value))
System\Xml\Xsl\Runtime\XsltFunctions.cs (1)
108
if (
XmlCharType
.IsWhiteSpace(value[idx]))
System\Xml\Xsl\XPath\XPathScanner.cs (5)
184
while (
XmlCharType
.IsWhiteSpace(_curChar))
335
if (
XmlCharType
.IsStartNCNameSingleChar(_curChar))
365
else if (
XmlCharType
.IsStartNCNameSingleChar(_curChar))
530
Debug.Assert(
XmlCharType
.IsStartNCNameSingleChar(_curChar));
534
if (
XmlCharType
.IsNCNameSingleChar(_curChar))
System\Xml\Xsl\XslException.cs (1)
208
if (message.Length > 0 && !
XmlCharType
.IsWhiteSpace(message[message.Length - 1]))
System\Xml\Xsl\Xslt\XsltInput.cs (2)
389
if (textIsWhite && !
XmlCharType
.IsOnlyWhitespace(_reader.Value))
411
if (textIsWhite && !
XmlCharType
.IsOnlyWhitespace(_records[curTextNode].value))
System\Xml\Xsl\XsltOld\BuilderInfo.cs (1)
85
Debug.Assert(info.NodeType != XmlNodeType.Text ||
XmlCharType
.IsOnlyWhitespace(info.Value));
System\Xml\Xsl\XsltOld\Compiler.cs (2)
737
string modifiedQuery =
XmlCharType
.IsOnlyWhitespace(xpathQuery) ? xpathQuery : $"string({xpathQuery})";
743
string modifiedQuery =
XmlCharType
.IsOnlyWhitespace(xpathQuery) ? xpathQuery : $"boolean({xpathQuery})";
System\Xml\Xsl\XsltOld\ProcessingInstructionAction.cs (2)
125
while (position < nameLength &&
XmlCharType
.IsWhiteSpace(name[position]))
142
while (position < nameLength &&
XmlCharType
.IsWhiteSpace(name[position]))
System\Xml\Xsl\XsltOld\ReaderOutput.cs (1)
339
if (
XmlCharType
.IsOnlyWhitespace(Value))
System\Xml\Xsl\XsltOld\SequentialOutput.cs (1)
375
if (
XmlCharType
.IsOnlyWhitespace(node.Value))