Definition at line 11988 of file XmlTextReaderImpl.cs.
11989 {
11991 {
11993 }
11998 char c = ((
type == XmlNodeType.Comment) ?
'-' :
']');
12000 int charPos;
12001 while (true)
12002 {
12004 if (XmlCharType.IsTextChar(
c2 =
chars[num]) &&
c2 != c)
12005 {
12006 num++;
12007 continue;
12008 }
12009 if (
chars[num] == c)
12010 {
12011 if (
chars[num + 1] == c)
12012 {
12013 if (
chars[num + 2] ==
'>')
12014 {
12016 {
12019 }
12020 else
12021 {
12023 }
12026 return (charPos,
item,
true);
12027 }
12029 {
12030 break;
12031 }
12032 if (
type == XmlNodeType.Comment)
12033 {
12035 }
12036 }
12038 {
12039 break;
12040 }
12041 num++;
12042 continue;
12043 }
12044 switch (
chars[num])
12045 {
12046 case '\n':
12047 num++;
12049 continue;
12050 case '\r':
12051 if (
chars[num + 1] ==
'\n')
12052 {
12054 {
12056 {
12058 {
12061 }
12062 else
12063 {
12067 }
12068 }
12069 else
12070 {
12072 }
12073 }
12074 num += 2;
12075 }
12076 else
12077 {
12079 {
12080 break;
12081 }
12083 {
12085 }
12086 num++;
12087 }
12089 continue;
12090 case '\t':
12091 case '&':
12092 case '<':
12093 case ']':
12094 num++;
12095 continue;
12096 default:
12097 {
12099 {
12100 break;
12101 }
12103 if (XmlCharType.IsHighSurrogate(
ch))
12104 {
12106 {
12107 break;
12108 }
12109 num++;
12110 if (XmlCharType.IsLowSurrogate(
chars[num]))
12111 {
12112 num++;
12113 continue;
12114 }
12115 }
12117 break;
12118 }
12119 }
12120 break;
12121 }
12123 {
12126 }
12127 else
12128 {
12130 }
12133 return (charPos,
item,
false);
12134 }
static string Xml_InvalidCommentChars
static string Xml_UnexpectedEOF
void ThrowInvalidChar(char[] data, int length, int invCharPos)
async Task< int > ReadDataAsync()
void Throw(int pos, string res, string arg)
void ShiftBuffer(int sourcePos, int destPos, int count)
References System.Xml.XmlTextReaderImpl._parsingMode, System.Xml.XmlTextReaderImpl._ps, System.ch, System.Xml.XmlTextReaderImpl.ParsingState.charPos, System.chars, System.Xml.XmlTextReaderImpl.ParsingState.chars, System.Xml.XmlTextReaderImpl.ParsingState.charsUsed, System.Xml.Dictionary, System.Xml.XmlTextReaderImpl.ParsingState.eolNormalized, System.Xml.XmlTextReaderImpl.ParsingState.isEof, System.Xml.XmlCharType.IsHighSurrogate(), System.Xml.XmlCharType.IsLowSurrogate(), System.Xml.XmlCharType.IsTextChar(), System.item, System.Xml.XmlTextReaderImpl.OnNewLine(), System.Xml.XmlTextReaderImpl.ReadDataAsync(), System.Xml.XmlTextReaderImpl.ShiftBuffer(), System.Xml.XmlTextReaderImpl.Throw(), System.Xml.XmlTextReaderImpl.ThrowInvalidChar(), System.type, System.SR.Xml_InvalidCommentChars, and System.SR.Xml_UnexpectedEOF.
Referenced by System.Xml.XmlTextReaderImpl.ParseCDataOrCommentAsync().