1 instantiation of XmlCharType
System.Xml (1)
System\Xml\XmlCharType.cs (1)
490
return new
XmlCharType
( s_CharProperties );
278 references to XmlCharType
System.Xml (278)
System\Xml\Base64Decoder.cs (4)
153
XmlCharType
xmlCharType =
XmlCharType
.Instance;
163
if ( ( xmlCharType.charProperties[ch] &
XmlCharType
.fWhitespace ) != 0 ) { // if ( xmlCharType.IsWhiteSpace(ch) ) {
196
if ( !( ( xmlCharType.charProperties[*pChar++] &
XmlCharType
.fWhitespace ) != 0 ) ) { // if ( !( xmlCharType.IsWhiteSpace( chars[charPos++] ) ) ) {
System\Xml\BinaryXml\XmlBinaryReader.cs (7)
307
XmlCharType
xmlCharType;
315
xmlCharType =
XmlCharType
.Instance;
3095
XmlCharType
xmlCharType = this.xmlCharType;
3107
if (pb[pos + 1] != 0 || (xmlCharType.charProperties[pb[pos]] &
XmlCharType
.fWhitespace) == 0)
3120
if ((xmlCharType.charProperties[ch] &
XmlCharType
.fCharData) == 0)
3125
if (!
XmlCharType
.IsHighSurrogate(ch)) {
3133
if (!
XmlCharType
.IsLowSurrogate(chNext)) {
System\Xml\BinHexDecoder.cs (3)
177
XmlCharType
xmlCharType =
XmlCharType
.Instance;
191
else if ( ( xmlCharType.charProperties[ch] &
XmlCharType
.fWhitespace ) != 0 ) { // else if ( xmlCharType.IsWhiteSpace( ch ) ) {
System\Xml\Core\CharEntityEncoderFallback.cs (1)
180
return
XmlCharType
.CombineSurrogateChar(lowSurrogate, highSurrogate);
System\Xml\Core\HtmlEncodedRawTextWriter.cs (2)
565
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) ) ) {
642
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) && ch < 0x80 ) ) {
System\Xml\Core\HtmlUtf8RawTextWriter.cs (2)
563
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) && ch <= 0x7F ) ) {
642
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) && ch < 0x80 ) ) {
System\Xml\Core\XmlAutoDetectWriter.cs (1)
346
if (
XmlCharType
.Instance.IsOnlyWhitespace(textBlock)) {
System\Xml\Core\XmlCharCheckingReader.cs (2)
47
XmlCharType
xmlCharType;
70
xmlCharType =
XmlCharType
.Instance;
System\Xml\Core\XmlCharCheckingWriter.cs (2)
59
XmlCharType
xmlCharType;
73
xmlCharType =
XmlCharType
.Instance;
System\Xml\Core\XmlEncodedRawTextWriter.cs (23)
53
protected
XmlCharType
xmlCharType =
XmlCharType
.Instance;
598
int surrogateChar =
XmlCharType
.CombineSurrogateChar( lowChar, highChar );
827
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) ) ) {
899
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, true ); pSrc++; } else { *pDst = (char)ch; pDst++; pSrc++; };
924
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) ) ) {
997
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, true ); pSrc++; } else { *pDst = (char)ch; pDst++; pSrc++; };
1030
while ( pDst < pDstEnd && ( ( ch = *pSrc ) <
XmlCharType
.SurHighStart ) ) {
1053
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { *pDst = (char)ch; pDst++; pSrc++; };
1074
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fText ) != 0 ) ) ) {
1134
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { *pDst = (char)ch; pDst++; pSrc++; };
1169
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fText ) != 0 ) && ch != stopChar ) ) {
1254
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { *pDst = (char)ch; pDst++; pSrc++; };
1290
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) && ch != ']' ) ) {
1370
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { *pDst = (char)ch; pDst++; pSrc++; };
1381
Debug.Assert(
XmlCharType
.IsSurrogate( *pSrc ) );
1384
if ( ch <=
XmlCharType
.SurHighEnd ) {
1387
if ( lowChar >=
XmlCharType
.SurLowStart &&
1388
(LocalAppContextSwitches.DontThrowOnInvalidSurrogatePairs || lowChar <=
XmlCharType
.SurLowEnd)) {
1427
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { *pDst = (char)ch; pDst++; pSrc++; };
1599
if (
XmlCharType
.IsHighSurrogate(chars[i]) ) {
1601
if (
XmlCharType
.IsLowSurrogate(chars[i + 1]) ) {
1609
else if (
XmlCharType
.IsLowSurrogate(chars[i]) ) {
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (13)
417
int surrogateChar =
XmlCharType
.CombineSurrogateChar( lowChar, highChar );
602
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) ) ) {
672
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, true ); pSrc++; } else { *pDst = (char)ch; pDst++; pSrc++; };
772
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) ) ) {
846
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, true ); pSrc++; } else { *pDst = (char)ch; pDst++; pSrc++; };
976
while ( pDst < pDstEnd && ( ( ch = *pSrc ) <
XmlCharType
.SurHighStart ) ) {
997
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { *pDst = (char)ch; pDst++; pSrc++; };
1064
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fText ) != 0 ) ) ) {
1126
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { *pDst = (char)ch; pDst++; pSrc++; };
1237
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fText ) != 0 ) && ch != stopChar ) ) {
1324
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { *pDst = (char)ch; pDst++; pSrc++; };
1397
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) && ch != ']' ) ) {
1479
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { *pDst = (char)ch; pDst++; pSrc++; };
System\Xml\Core\XmlTextEncoder.cs (19)
38
XmlCharType
xmlCharType;
46
this.xmlCharType =
XmlCharType
.Instance;
91
if ( !
XmlCharType
.IsLowSurrogate(lowChar) ||
92
!
XmlCharType
.IsHighSurrogate( highChar ) ) {
130
while ( i < endPos && ( xmlCharType.charProperties[ch = array[i]] &
XmlCharType
.fAttrValue ) != 0 ) { // ( xmlCharType.IsAttributeValueChar( ( ch = array[i] ) ) ) ) {
182
if (
XmlCharType
.IsHighSurrogate( ch ) ) {
190
else if (
XmlCharType
.IsLowSurrogate( ch ) ) {
204
if ( !
XmlCharType
.IsLowSurrogate( lowChar ) ||
205
!
XmlCharType
.IsHighSurrogate( highChar ) ) {
209
int surrogateChar =
XmlCharType
.CombineSurrogateChar( lowChar, highChar );
240
while ( i < len && ( xmlCharType.charProperties[ch = text[i]] &
XmlCharType
.fAttrValue ) != 0 ) { // ( xmlCharType.IsAttributeValueChar( ( ch = text[i] ) ) ) ) {
313
if (
XmlCharType
.IsHighSurrogate( ch ) ) {
321
else if (
XmlCharType
.IsLowSurrogate( ch ) ) {
333
while ( i < len && ( xmlCharType.charProperties[ch = text[i]] &
XmlCharType
.fAttrValue ) != 0 ) { // ( xmlCharType.IsAttributeValueChar( ( text[i] ) ) ) ) {
358
( ( xmlCharType.charProperties[ch = text[i]] &
XmlCharType
.fCharData ) != 0 // ( xmlCharType.IsCharData( ( ch = text[i] ) )
366
if (
XmlCharType
.IsHighSurrogate( ch ) ) {
369
if (
XmlCharType
.IsLowSurrogate( lowChar ) ) {
379
else if (
XmlCharType
.IsLowSurrogate( ch ) ) {
424
if (
XmlCharType
.IsSurrogate(ch) ) {
System\Xml\Core\XmlTextReaderImpl.cs (39)
161
XmlCharType
xmlCharType =
XmlCharType
.Instance;
1761
if (
XmlCharType
.IsHighSurrogate(ch) ) {
1797
if (
XmlCharType
.IsHighSurrogate(ch) ) {
3440
while ( ( (xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fAttrValue) != 0) ) {
3911
if ( ( xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fNCStartNameSC ) != 0 ) {
3932
if( ( ( xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fNCNameSC ) != 0 ) ) {
4006
isWs = ( ( xmlCharType.charProperties[ch] &
XmlCharType
.fWhitespace ) != 0 );
4170
if ( ( (xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fNCNameSC) != 0 ) ||
4272
while ( ( ( xmlCharType.charProperties[tmpch0 = chars[pos]] &
XmlCharType
.fWhitespace ) != 0 ) ) {
4304
if ( ( xmlCharType.charProperties[tmpch1 = chars[pos]] &
XmlCharType
.fNCStartNameSC ) != 0 ) {
4376
if (((xmlCharType.charProperties[tmpch2 = chars[pos]] &
XmlCharType
.fNCNameSC) != 0)) {
4410
if ( ( ( xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fNCStartNameSC ) != 0 ) ) {
4474
while ( ( ( xmlCharType.charProperties[tmpch3 = chars[pos]] &
XmlCharType
.fAttrValue ) != 0 ) ) {
4671
while ( ( ( xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fAttrValue ) != 0 ) ) {
4833
if (
XmlCharType
.IsHighSurrogate(ch) ) {
4838
if (
XmlCharType
.IsLowSurrogate( chars[pos] ) ) {
5069
while ( ( ( xmlCharType.charProperties[c = chars[pos]] &
XmlCharType
.fText ) != 0 ) ) {
5187
if (
XmlCharType
.IsHighSurrogate(ch) ) {
5192
if (
XmlCharType
.IsLowSurrogate( chars[pos] ) ) {
5745
while ( ( ( xmlCharType.charProperties[tmpch = chars[pos]] &
XmlCharType
.fText ) != 0 ) &&
5826
if (
XmlCharType
.IsHighSurrogate(ch) ) {
5831
if (
XmlCharType
.IsLowSurrogate( chars[pos] ) ) {
5923
while ( ( ( xmlCharType.charProperties[tmpch = chars[pos]] &
XmlCharType
.fText ) != 0 ) &&
6011
if (
XmlCharType
.IsHighSurrogate(ch) ) {
6016
if (
XmlCharType
.IsLowSurrogate( chars[pos] ) ) {
6225
while ( ( ( xmlCharType.charProperties[ch = chars[pos]] &
XmlCharType
.fAttrValue ) != 0 ) && chars[pos] != stopChar && ch != '-' && ch != '?') {
6346
if (
XmlCharType
.IsHighSurrogate( tmpCh ) ) {
6351
if (
XmlCharType
.IsLowSurrogate( chars[pos] ) ) {
6590
XmlCharType
.SplitSurrogateChar(val, out low, out high);
6593
if (
XmlCharType
.IsHighSurrogate( high ) ) {
6594
if (
XmlCharType
.IsLowSurrogate( low ) ) {
6772
if ( ( xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fNCStartNameSC ) != 0 ) {
6801
if ( ( ( xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fNCNameSC ) != 0 ) ) {
7439
while ( ( ( xmlCharType.charProperties[c = chars[pos]] &
XmlCharType
.fAttrValue ) != 0 ) && c != '/' ) {
7444
while ( ( ( xmlCharType.charProperties[c = chars[pos]] &
XmlCharType
.fAttrValue ) != 0 ) ) {
7703
while ( ( ( xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fAttrValue ) != 0 ) )
7771
if (
XmlCharType
.IsHighSurrogate(ch) ) {
7776
if (
XmlCharType
.IsLowSurrogate( chars[pos] ) ) {
System\Xml\Core\XmlTextReaderImplAsync.cs (29)
633
if (
XmlCharType
.IsHighSurrogate(ch) ) {
675
if (
XmlCharType
.IsHighSurrogate(ch) ) {
1273
while (((xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fAttrValue) != 0)) {
1718
if ((xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fNCStartNameSC) != 0) {
1740
if (((xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fNCNameSC) != 0)) {
1841
isWs = ((xmlCharType.charProperties[ch] &
XmlCharType
.fWhitespace) != 0);
2029
if (((xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fNCNameSC) != 0) ||
2147
while (((xmlCharType.charProperties[tmpch0 = chars[pos]] &
XmlCharType
.fWhitespace) != 0)) {
2179
if ((xmlCharType.charProperties[tmpch1 = chars[pos]] &
XmlCharType
.fNCStartNameSC) != 0) {
2251
if (((xmlCharType.charProperties[tmpch2 = chars[pos]] &
XmlCharType
.fNCNameSC) != 0)) {
2285
if (((xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fNCStartNameSC) != 0)) {
2360
while (((xmlCharType.charProperties[tmpch3 = chars[pos]] &
XmlCharType
.fAttrValue) != 0)) {
2453
while (((xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fAttrValue) != 0)) {
2620
if (
XmlCharType
.IsHighSurrogate(ch) ) {
2625
if (
XmlCharType
.IsLowSurrogate( chars[pos] ) ) {
3042
while (((xmlCharType.charProperties[c = chars[pos]] &
XmlCharType
.fText) != 0)) {
3194
if (
XmlCharType
.IsHighSurrogate(ch)) {
3201
if (
XmlCharType
.IsLowSurrogate(chars[pos])) {
3762
while (((xmlCharType.charProperties[tmpch = chars[pos]] &
XmlCharType
.fText) != 0) &&
3845
if (
XmlCharType
.IsHighSurrogate(ch) ) {
3850
if (
XmlCharType
.IsLowSurrogate( chars[pos] ) ) {
3971
while (((xmlCharType.charProperties[tmpch = chars[pos]] &
XmlCharType
.fText) != 0) &&
4061
if (
XmlCharType
.IsHighSurrogate(ch) ) {
4066
if (
XmlCharType
.IsLowSurrogate( chars[pos] ) ) {
4282
while (((xmlCharType.charProperties[ch = chars[pos]] &
XmlCharType
.fAttrValue) != 0) && chars[pos] != stopChar && ch != '-' && ch != '?') {
4403
if (
XmlCharType
.IsHighSurrogate( tmpCh ) ) {
4408
if (
XmlCharType
.IsLowSurrogate( chars[pos] ) ) {
4607
if ((xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fNCStartNameSC) != 0) {
4644
if (((xmlCharType.charProperties[chars[pos]] &
XmlCharType
.fNCNameSC) != 0)) {
System\Xml\Core\XmlTextWriter.cs (2)
163
XmlCharType
xmlCharType =
XmlCharType
.Instance;
System\Xml\Core\XmlUtf8RawTextWriter.cs (25)
53
protected
XmlCharType
xmlCharType =
XmlCharType
.Instance;
530
int surrogateChar =
XmlCharType
.CombineSurrogateChar( lowChar, highChar );
687
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) && ch <= 0x7F ) ) {
759
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, true ); pSrc++; } else { pDst = EncodeMultibyteUTF8( ch, pDst ); pSrc++; };
784
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) && ch <= 0x7F ) ) {
857
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, true ); pSrc++; } else { pDst = EncodeMultibyteUTF8( ch, pDst ); pSrc++; };
913
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { pDst = EncodeMultibyteUTF8( ch, pDst ); pSrc++; };
934
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fText ) != 0 ) && ch <= 0x7F ) ) {
994
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { pDst = EncodeMultibyteUTF8( ch, pDst ); pSrc++; };
1029
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fText ) != 0 ) && ch != stopChar && ch <= 0x7F ) ) {
1114
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { pDst = EncodeMultibyteUTF8( ch, pDst ); pSrc++; };
1150
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) && ch != ']' && ch <= 0x7F ) ) {
1230
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { pDst = EncodeMultibyteUTF8( ch, pDst ); pSrc++; };
1247
Debug.Assert(
XmlCharType
.IsSurrogate( *pSrc ) );
1249
if ( ch <=
XmlCharType
.SurHighEnd ) {
1252
if ( lowChar >=
XmlCharType
.SurLowStart &&
1253
(LocalAppContextSwitches.DontThrowOnInvalidSurrogatePairs || lowChar <=
XmlCharType
.SurLowEnd)) {
1258
ch =
XmlCharType
.CombineSurrogateChar( lowChar, ch );
1306
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { pDst = EncodeMultibyteUTF8( ch, pDst ); pSrc++; };
1310
Debug.Assert( ch >= 0x80 && !
XmlCharType
.IsSurrogate( ch ) );
1337
else if (
XmlCharType
.IsSurrogate( ch ) ) {
1499
if (
XmlCharType
.IsHighSurrogate(chars[i]) ) {
1501
if (
XmlCharType
.IsLowSurrogate(chars[i + 1]) ) {
1509
else if (
XmlCharType
.IsLowSurrogate(chars[i]) ) {
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (12)
391
int surrogateChar =
XmlCharType
.CombineSurrogateChar( lowChar, highChar );
520
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) && ch <= 0x7F ) ) {
590
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, true ); pSrc++; } else { pDst = EncodeMultibyteUTF8( ch, pDst ); pSrc++; };
689
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) && ch <= 0x7F ) ) {
763
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, true ); pSrc++; } else { pDst = EncodeMultibyteUTF8( ch, pDst ); pSrc++; };
914
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { pDst = EncodeMultibyteUTF8( ch, pDst ); pSrc++; };
981
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fText ) != 0 ) && ch <= 0x7F ) ) {
1043
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { pDst = EncodeMultibyteUTF8( ch, pDst ); pSrc++; };
1154
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fText ) != 0 ) && ch != stopChar && ch <= 0x7F ) ) {
1241
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { pDst = EncodeMultibyteUTF8( ch, pDst ); pSrc++; };
1314
while ( pDst < pDstEnd && ( ( ( xmlCharType.charProperties[( ch = *pSrc )] &
XmlCharType
.fAttrValue ) != 0 ) && ch != ']' && ch <= 0x7F ) ) {
1396
if (
XmlCharType
.IsSurrogate( ch ) ) { pDst = EncodeSurrogate( pSrc, pSrcEnd, pDst ); pSrc += 2; } else if ( ch <= 0x7F || ch >= 0xFFFE ) { pDst = InvalidXmlChar( ch, pDst, false ); pSrc++; } else { pDst = EncodeMultibyteUTF8( ch, pDst ); pSrc++; };
System\Xml\Core\XmlWellFormedWriter.cs (5)
72
XmlCharType
xmlCharType =
XmlCharType
.Instance;
897
if (!
XmlCharType
.Instance.IsOnlyWhitespace(ws)) {
1781
if ((xmlCharType.charProperties[ncname[0]] &
XmlCharType
.fNCStartNameSC) != 0) { // if ( xmlCharType.IsStartNCNameChar( ncname[0] ) ) {
1795
if ((xmlCharType.charProperties[ncname[i]] &
XmlCharType
.fNCNameSC) != 0) { // if ( xmlCharType.IsNCNameChar( ncname[i] ) ) {
System\Xml\Core\XmlWellFormedWriterAsync.cs (1)
748
if (!
XmlCharType
.Instance.IsOnlyWhitespace(ws)) {
System\Xml\Core\XmlWellFormedWriterHelpers.cs (2)
355
XmlCharType
xmlCharType =
XmlCharType
.Instance;
System\Xml\Core\XsdValidatingReader.cs (2)
114
private
XmlCharType
xmlCharType =
XmlCharType
.Instance;
System\Xml\Dom\XmlCharacterData.cs (1)
167
return
XmlCharType
.Instance.IsOnlyWhitespace( data );
System\Xml\Dom\XmlDeclaration.cs (1)
150
return ver.Length >= 3 && ver[0] == '1' && ver[1] == '.' &&
XmlCharType
.IsOnlyDigits(ver, 2, ver.Length - 2);
System\Xml\Schema\DtdParser.cs (11)
157
XmlCharType
xmlCharType =
XmlCharType
.Instance;
2328
while ( ( xmlCharType.charProperties[chars[curPos]] &
XmlCharType
.fAttrValue ) != 0 && chars[curPos] != '%' ) {
2484
if (
XmlCharType
.IsHighSurrogate(ch) ) {
2489
if (
XmlCharType
.IsLowSurrogate(chars[curPos]) ) {
2721
while ( ( xmlCharType.charProperties[chars[curPos]] &
XmlCharType
.fText ) != 0 && chars[curPos] != ']' ) {
2788
if (
XmlCharType
.IsHighSurrogate(ch) ) {
2793
if (
XmlCharType
.IsLowSurrogate(chars[curPos])) {
2834
if ( ( xmlCharType.charProperties[chars[curPos]] &
XmlCharType
.fNCStartNameSC ) != 0 || chars[curPos] == ':') { // if ( xmlCharType.IsStartNCNameSingleChar(chars[curPos]) || chars[curPos] == ':' ) {
2864
if ( ( xmlCharType.charProperties[chars[curPos]] &
XmlCharType
.fNCNameSC ) != 0 ) { // while ( xmlCharType.IsNCNameSingleChar(chars[curPos]) ) {
2932
if ((xmlCharType.charProperties[chars[curPos]] &
XmlCharType
.fNCNameSC) != 0 || chars[curPos] == ':') { // if ( xmlCharType.IsNCNameChar(chars[curPos]) || chars[curPos] == ':' ) {
System\Xml\Schema\DtdParserAsync.cs (9)
1785
while ((xmlCharType.charProperties[chars[curPos]] &
XmlCharType
.fAttrValue) != 0 && chars[curPos] != '%') {
1941
if (
XmlCharType
.IsHighSurrogate(ch) ) {
1946
if (
XmlCharType
.IsLowSurrogate(chars[curPos]) ) {
2152
while ((xmlCharType.charProperties[chars[curPos]] &
XmlCharType
.fText) != 0 && chars[curPos] != ']') {
2219
if (
XmlCharType
.IsHighSurrogate(ch) ) {
2224
if (
XmlCharType
.IsLowSurrogate(chars[curPos])) {
2266
if ((xmlCharType.charProperties[chars[curPos]] &
XmlCharType
.fNCStartNameSC) != 0 || chars[curPos] == ':') { // if ( xmlCharType.IsStartNCNameSingleChar(chars[curPos]) || chars[curPos] == ':' ) {
2298
if ((xmlCharType.charProperties[chars[curPos]] &
XmlCharType
.fNCNameSC) != 0) { // while ( xmlCharType.IsNCNameSingleChar(chars[curPos]) ) {
2366
if ((xmlCharType.charProperties[chars[curPos]] &
XmlCharType
.fNCNameSC) != 0 || chars[curPos] == ':') { // if ( xmlCharType.IsNCNameChar(chars[curPos]) || chars[curPos] == ':' ) {
System\Xml\Schema\Parser.cs (2)
43
XmlCharType
xmlCharType =
XmlCharType
.Instance;
System\Xml\Schema\XmlSchemaValidator.cs (2)
148
XmlCharType
xmlCharType =
XmlCharType
.Instance;
System\Xml\ValidateNames.cs (9)
37
static
XmlCharType
xmlCharType =
XmlCharType
.Instance;
54
if ((xmlCharType.charProperties[s[i]] &
XmlCharType
.fNCNameSC) != 0) { // if (xmlCharType.IsNCNameSingleChar(s[i])) {
91
if ((xmlCharType.charProperties[s[i]] &
XmlCharType
.fNCNameSC) != 0 || s[i] == ':') { // if (xmlCharType.IsNameSingleChar(s[i])) {
133
if ((xmlCharType.charProperties[s[i]] &
XmlCharType
.fNCStartNameSC) != 0 || s[i] == ':') { // xmlCharType.IsStartNCNameSingleChar(s[i])) {
147
if ((xmlCharType.charProperties[s[i]] &
XmlCharType
.fNCNameSC) != 0 || s[i] == ':') { // if (xmlCharType.IsNCNameSingleChar(s[i]))
189
if ((xmlCharType.charProperties[s[i]] &
XmlCharType
.fNCStartNameSC) != 0) { // xmlCharType.IsStartNCNameSingleChar(s[i])) {
203
if ((xmlCharType.charProperties[s[i]] &
XmlCharType
.fNCNameSC) != 0) { // if (xmlCharType.IsNCNameSingleChar(s[i]))
385
if (xmlCharType.IsNCNameSingleChar(s[offsetBadChar]) && !
XmlCharType
.Instance.IsStartNCNameSingleChar(s[offsetBadChar])) {
System\Xml\XmlCharType.cs (3)
482
public static
XmlCharType
Instance {
699
if ( i + 1 >= str.Length || !(
XmlCharType
.IsHighSurrogate(str[i]) &&
XmlCharType
.IsLowSurrogate(str[i+1]))) {
System\Xml\XmlComplianceUtil.cs (4)
27
XmlCharType
xmlCharType =
XmlCharType
.Instance;
140
XmlCharType
xmlCharType =
XmlCharType
.Instance;
System\Xml\XmlConvert.cs (21)
41
static
XmlCharType
xmlCharType =
XmlCharType
.Instance;
142
XmlCharType
.SplitSurrogateChar(u, out lowChar, out highChar);
213
if (length > 1 &&
XmlCharType
.IsHighSurrogate(name[0]) &&
XmlCharType
.IsLowSurrogate(name[1]) ) {
216
Int32 u =
XmlCharType
.CombineSurrogateChar(y, x);
255
if ((length > position + 1) &&
XmlCharType
.IsHighSurrogate(name[position]) &&
XmlCharType
.IsLowSurrogate(name[position + 1])) {
258
Int32 u =
XmlCharType
.CombineSurrogateChar(y, x);
544
return (xmlCharType.charProperties[ch] &
XmlCharType
.fNCStartNameSC) != 0;
560
return (xmlCharType.charProperties[ch] &
XmlCharType
.fNCNameSC) != 0;
575
return (xmlCharType.charProperties[ch] &
XmlCharType
.fCharData) != 0;
580
return
XmlCharType
.IsHighSurrogate(highChar) &&
XmlCharType
.IsLowSurrogate(lowChar);
593
return (xmlCharType.charProperties[ch] &
XmlCharType
.fWhitespace) != 0;
1475
while ( i < len && ( xmlCharType.charProperties[data[i]] &
XmlCharType
.fCharData ) != 0 ) {
1484
if (
XmlCharType
.IsHighSurrogate( ch ) ) {
1489
if (
XmlCharType
.IsLowSurrogate( ch ) ) {
1516
while ( i < endPos && ( xmlCharType.charProperties[data[i]] &
XmlCharType
.fCharData ) != 0 ) {
1525
if (
XmlCharType
.IsHighSurrogate( ch ) ) {
1530
if (
XmlCharType
.IsLowSurrogate( ch ) ) {
System\Xml\XmlEncoding.cs (6)
436
chars[charIndex] = (char)(
XmlCharType
.SurHighStart + (char)((code >> 16) - 1) + (char)((code >> 10) & 0x3F));
437
chars[charIndex + 1] = (char)(
XmlCharType
.SurLowStart + (char)(code & 0x3FF));
459
if (
XmlCharType
.IsSurrogate( (int)code ) ) {
491
if (
XmlCharType
.IsSurrogate( (int)code ) ) {
524
if (
XmlCharType
.IsSurrogate( (int)code ) ) {
557
if (
XmlCharType
.IsSurrogate( (int)code ) ) {
System\Xml\XmlException.cs (2)
255
if (
XmlCharType
.IsHighSurrogate(invChar) && nextChar != 0) {
256
int combinedChar =
XmlCharType
.CombineSurrogateChar(nextChar, invChar);
System\Xml\XPath\Internal\StringFunctions.cs (2)
191
XmlCharType
xmlCharType =
XmlCharType
.Instance;
System\Xml\XPath\Internal\XPathScanner.cs (9)
27
private
XmlCharType
xmlCharType =
XmlCharType
.Instance;
158
else if (
XmlCharType
.IsDigit(this.CurerntChar)) {
177
if (
XmlCharType
.IsDigit(this.CurerntChar)) {
243
Debug.Assert(this.CurerntChar == '.' ||
XmlCharType
.IsDigit(this.CurerntChar));
246
while (
XmlCharType
.IsDigit(this.CurerntChar)) {
251
while (
XmlCharType
.IsDigit(this.CurerntChar)) {
259
Debug.Assert(
XmlCharType
.IsDigit(this.CurerntChar));
263
while (
XmlCharType
.IsDigit(this.CurerntChar)) {