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

◆ QuoteChar

override char System.Xml.XmlTextReaderImpl.QuoteChar
get

Definition at line 1101 of file XmlTextReaderImpl.cs.

1102 {
1103 get
1104 {
1105 if (_curNode.type != XmlNodeType.Attribute)
1106 {
1107 return '"';
1108 }
1109 return _curNode.quoteChar;
1110 }
1111 }
1112
1113 public override XmlSpace XmlSpace => _xmlContext.xmlSpace;
1114
1115 public override string XmlLang => _xmlContext.xmlLang;
1116
1117 public override ReadState ReadState => _readState;
1118
1119 public override bool EOF => _parsingFunction == ParsingFunction.Eof;
1120
1121 public override XmlNameTable NameTable => _nameTable;
1122
1123 public override bool CanResolveEntity => true;
1124
1125 public override int AttributeCount => _attrCount;
1126
1127 internal XmlReader OuterReader
1128 {
1129 set
1130 {
1132 }
1133 }
1134
1135 public override bool CanReadBinaryContent => true;
1136
1137 public override bool CanReadValueChunk => true;
1138
1139 public int LineNumber => _curNode.LineNo;
1140
1141 public int LinePosition => _curNode.LinePos;
1142
1143 internal bool Namespaces
1144 {
1145 get
1146 {
1147 return _supportNamespaces;
1148 }
1149 set
1150 {
1151 if (_readState != 0)
1152 {
1154 }
1156 if (value)
1157 {
1158 if (_namespaceManager is NoNamespaceManager)
1159 {
1161 {
1163 }
1164 else
1165 {
1166 _namespaceManager = new XmlNamespaceManager(_nameTable);
1167 }
1168 }
1170 }
1171 else
1172 {
1173 if (!(_namespaceManager is NoNamespaceManager))
1174 {
1175 _namespaceManager = new NoNamespaceManager();
1176 }
1177 _xmlContext.defaultNamespace = string.Empty;
1178 }
1179 }
1180 }
1181
1182 internal bool Normalization
1183 {
1184 get
1185 {
1186 return _normalize;
1187 }
1188 set
1189 {
1190 if (_readState == ReadState.Closed)
1191 {
1193 }
1194 _normalize = value;
1195 if (_ps.entity == null || _ps.entity.IsExternal)
1196 {
1198 }
1199 }
1200 }
1201
1202 internal Encoding Encoding
1203 {
1204 get
1205 {
1206 if (_readState != ReadState.Interactive)
1207 {
1208 return null;
1209 }
1210 return _reportedEncoding;
1211 }
1212 }
1213
1214 internal WhitespaceHandling WhitespaceHandling
1215 {
1216 get
1217 {
1218 return _whitespaceHandling;
1219 }
1220 set
1221 {
1222 if (_readState == ReadState.Closed)
1223 {
1225 }
1226 if ((uint)value > 2u)
1227 {
1228 throw new XmlException(System.SR.Xml_WhitespaceHandling, string.Empty);
1229 }
1231 }
1232 }
1233
1234 internal DtdProcessing DtdProcessing
1235 {
1236 get
1237 {
1238 return _dtdProcessing;
1239 }
1240 set
1241 {
1242 if ((uint)value > 2u)
1243 {
1244 throw new ArgumentOutOfRangeException("value");
1245 }
1247 }
1248 }
1249
1250 internal EntityHandling EntityHandling
1251 {
1252 get
1253 {
1254 return _entityHandling;
1255 }
1256 set
1257 {
1258 if (value != EntityHandling.ExpandEntities && value != EntityHandling.ExpandCharEntities)
1259 {
1260 throw new XmlException(System.SR.Xml_EntityHandling, string.Empty);
1261 }
1263 }
1264 }
1265
1266 internal bool IsResolverSet => _xmlResolverIsSet;
1267
1268 internal XmlResolver XmlResolver
1269 {
1270 set
1271 {
1273 _xmlResolverIsSet = true;
1274 _ps.baseUri = null;
1275 for (int i = 0; i <= _parsingStatesStackTop; i++)
1276 {
1278 }
1279 }
1280 }
1281
1282 internal XmlNameTable DtdParserProxy_NameTable => _nameTable;
1283
1284 internal IXmlNamespaceResolver DtdParserProxy_NamespaceResolver => _namespaceManager;
1285
1286 internal bool DtdParserProxy_DtdValidation => DtdValidation;
1287
1289
1291
1293
1294 internal Uri DtdParserProxy_BaseUri
1295 {
1296 get
1297 {
1298 if (_ps.baseUriStr.Length > 0 && _ps.baseUri == null && _xmlResolver != null)
1299 {
1301 }
1302 return _ps.baseUri;
1303 }
1304 }
1305
1306 internal bool DtdParserProxy_IsEof => _ps.isEof;
1307
1308 internal char[] DtdParserProxy_ParsingBuffer => _ps.chars;
1309
1311
1313 {
1314 get
1315 {
1316 return _ps.charPos;
1317 }
1318 set
1319 {
1321 }
1322 }
1323
1325
1327
1328 internal IValidationEventHandling DtdParserProxy_ValidationEventHandling => _validationEventHandling;
1329
1330 internal int DtdParserProxy_LineNo => _ps.LineNo;
1331
1333
1334 private bool IsResolverNull
1335 {
1336 get
1337 {
1338 if (_xmlResolver != null)
1339 {
1340 return !_xmlResolverIsSet;
1341 }
1342 return true;
1343 }
1344 }
1345
1346 private bool InAttributeValueIterator
1347 {
1348 get
1349 {
1350 if (_attrCount > 0)
1351 {
1352 return _parsingFunction >= ParsingFunction.InReadAttributeValue;
1353 }
1354 return false;
1355 }
1356 }
1357
1358 private bool DtdValidation => _validationEventHandling != null;
1359
1360 private bool InEntity => _parsingStatesStackTop >= 0;
1361
1362 internal override IDtdInfo DtdInfo => _dtdInfo;
1363
1364 internal IValidationEventHandling ValidationEventHandling
1365 {
1366 set
1367 {
1369 }
1370 }
1371
1372 internal OnDefaultAttributeUseDelegate OnDefaultAttributeUse
1373 {
1374 set
1375 {
1377 }
1378 }
1379
1380 internal bool XmlValidatingReaderCompatibilityMode
1381 {
1382 set
1383 {
1385 if (value)
1386 {
1387 _nameTable.Add("http://www.w3.org/2001/XMLSchema");
1388 _nameTable.Add("http://www.w3.org/2001/XMLSchema-instance");
1389 _nameTable.Add("urn:schemas-microsoft-com:datatypes");
1390 }
1391 }
1392 }
static string Xml_WhitespaceHandling
Definition SR.cs:224
static string Xml_InvalidOperation
Definition SR.cs:18
static string Xml_EntityHandling
Definition SR.cs:228
Definition SR.cs:7
string Add(char[] array, int offset, int length)
virtual ? string LookupNamespace(string prefix)
XmlNamespaceManager? NamespaceManager
virtual bool CanResolveEntity
Definition XmlReader.cs:118
virtual ? IDtdInfo DtdInfo
Definition XmlReader.cs:145
virtual string XmlLang
Definition XmlReader.cs:98
XmlNameTable NameTable
Definition XmlReader.cs:116
virtual bool CanReadValueChunk
Definition XmlReader.cs:122
virtual bool CanReadBinaryContent
Definition XmlReader.cs:120
virtual Uri ResolveUri(Uri? baseUri, string? relativeUri)
XmlNamespaceManager _namespaceManager
XmlParserContext _fragmentParserContext
OnDefaultAttributeUseDelegate _onDefaultAttributeUse
WhitespaceHandling _whitespaceHandling
IValidationEventHandling _validationEventHandling