Definition at line 11798 of file XmlTextReaderImpl.cs.
11799 {
11801 {
11803 }
11809 int charPos;
11810 while (true)
11811 {
11812 char c;
11813 if (XmlCharType.IsTextChar(c =
chars[num]) && c !=
'?')
11814 {
11815 num++;
11816 continue;
11817 }
11818 switch (
chars[num])
11819 {
11820 case '?':
11821 if (
chars[num + 1] ==
'>')
11822 {
11824 {
11827 }
11828 else
11829 {
11831 }
11834 return (charPos,
item,
true);
11835 }
11837 {
11838 num++;
11839 continue;
11840 }
11841 break;
11842 case '\n':
11843 num++;
11845 continue;
11846 case '\r':
11847 if (
chars[num + 1] ==
'\n')
11848 {
11850 {
11852 {
11854 {
11857 }
11858 else
11859 {
11863 }
11864 }
11865 else
11866 {
11868 }
11869 }
11870 num += 2;
11871 }
11872 else
11873 {
11875 {
11876 break;
11877 }
11879 {
11881 }
11882 num++;
11883 }
11885 continue;
11886 case '\t':
11887 case '&':
11888 case '<':
11889 case ']':
11890 num++;
11891 continue;
11892 default:
11893 {
11895 {
11896 break;
11897 }
11899 if (XmlCharType.IsHighSurrogate(
ch))
11900 {
11902 {
11903 break;
11904 }
11905 num++;
11906 if (XmlCharType.IsLowSurrogate(
chars[num]))
11907 {
11908 num++;
11909 continue;
11910 }
11911 }
11913 continue;
11914 }
11915 }
11916 break;
11917 }
11919 {
11922 }
11923 else
11924 {
11926 }
11929 return (charPos,
item,
false);
11930 }
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(), and System.SR.Xml_UnexpectedEOF.
Referenced by System.Xml.XmlTextReaderImpl.ParsePIAsync().