Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ PushExternalEntityAsync()

async Task< bool > System.Xml.XmlTextReaderImpl.PushExternalEntityAsync ( IDtdEntityInfo entity)
inlineprivate

Definition at line 12761 of file XmlTextReaderImpl.cs.

12762 {
12763 if (!IsResolverNull)
12764 {
12765 Uri baseUri = null;
12766 if (!string.IsNullOrEmpty(entity.BaseUriString))
12767 {
12768 baseUri = _xmlResolver.ResolveUri(null, entity.BaseUriString);
12769 }
12770 await PushExternalEntityOrSubsetAsync(entity.PublicId, entity.SystemId, baseUri, entity.Name).ConfigureAwait(continueOnCapturedContext: false);
12771 RegisterEntity(entity);
12772 int initialPos = _ps.charPos;
12773 if (_v1Compat)
12774 {
12776 }
12778 {
12780 }
12781 return true;
12782 }
12783 Encoding encoding = _ps.encoding;
12785 InitStringInput(entity.SystemId, encoding, string.Empty);
12786 RegisterEntity(entity);
12788 return false;
12789 }
virtual Uri ResolveUri(Uri? baseUri, string? relativeUri)
async Task PushExternalEntityOrSubsetAsync(string publicId, string systemId, Uri baseUri, string entityName)
async Task< bool > ParseXmlDeclarationAsync(bool isTextDecl)
void RegisterConsumedCharacters(long characters, bool inEntityReference)
async Task< int > EatWhitespacesAsync(StringBuilder sb)
void InitStringInput(string baseUriStr, Encoding originalEncoding, string str)
void RegisterEntity(IDtdEntityInfo entity)

References System.Xml.XmlTextReaderImpl._ps, System.Xml.XmlTextReaderImpl._v1Compat, System.Xml.XmlTextReaderImpl._xmlResolver, System.Xml.IDtdEntityInfo.BaseUriString, System.Xml.XmlTextReaderImpl.ParsingState.charPos, System.Xml.Dictionary, System.Xml.XmlTextReaderImpl.EatWhitespacesAsync(), System.Xml.XmlTextReaderImpl.ParsingState.encoding, System.Xml.XmlTextReaderImpl.InitStringInput(), System.Xml.L, System.Xml.IDtdEntityInfo.Name, System.Xml.XmlTextReaderImpl.ParseXmlDeclarationAsync(), System.Xml.IDtdEntityInfo.PublicId, System.Xml.XmlTextReaderImpl.PushExternalEntityOrSubsetAsync(), System.Xml.XmlTextReaderImpl.PushParsingState(), System.Xml.XmlTextReaderImpl.RegisterConsumedCharacters(), System.Xml.XmlTextReaderImpl.RegisterEntity(), System.Xml.XmlResolver.ResolveUri(), and System.Xml.IDtdEntityInfo.SystemId.

Referenced by System.Xml.XmlTextReaderImpl.DtdParserProxy_PushEntityAsync(), and System.Xml.XmlTextReaderImpl.HandleGeneralEntityReferenceAsync().