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

◆ PushExternalEntity()

bool System.Xml.XmlTextReaderImpl.PushExternalEntity ( IDtdEntityInfo entity)
inlineprivate

Definition at line 7217 of file XmlTextReaderImpl.cs.

7218 {
7219 if (!IsResolverNull)
7220 {
7221 Uri baseUri = null;
7222 if (!string.IsNullOrEmpty(entity.BaseUriString))
7223 {
7224 baseUri = _xmlResolver.ResolveUri(null, entity.BaseUriString);
7225 }
7226 PushExternalEntityOrSubset(entity.PublicId, entity.SystemId, baseUri, entity.Name);
7227 RegisterEntity(entity);
7228 int charPos = _ps.charPos;
7229 if (_v1Compat)
7230 {
7231 EatWhitespaces(null);
7232 }
7234 {
7235 _ps.charPos = charPos;
7236 }
7237 return true;
7238 }
7239 Encoding encoding = _ps.encoding;
7241 InitStringInput(entity.SystemId, encoding, string.Empty);
7242 RegisterEntity(entity);
7244 return false;
7245 }
virtual Uri ResolveUri(Uri? baseUri, string? relativeUri)
void PushExternalEntityOrSubset(string publicId, string systemId, Uri baseUri, string entityName)
int EatWhitespaces(StringBuilder sb)
bool ParseXmlDeclaration(bool isTextDecl)
void RegisterConsumedCharacters(long characters, bool inEntityReference)
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.EatWhitespaces(), System.Xml.XmlTextReaderImpl.ParsingState.encoding, System.Xml.XmlTextReaderImpl.InitStringInput(), System.Xml.L, System.Xml.IDtdEntityInfo.Name, System.Xml.XmlTextReaderImpl.ParseXmlDeclaration(), System.Xml.IDtdEntityInfo.PublicId, System.Xml.XmlTextReaderImpl.PushExternalEntityOrSubset(), 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_PushEntity(), and System.Xml.XmlTextReaderImpl.HandleGeneralEntityReference().