|
Terraria v1.4.4.9
Terraria source code documentation
|
Public Member Functions | |
| SecurityElement (string tag) | |
| SecurityElement (string tag, string? text) | |
| void | AddAttribute (string name, string value) |
| void | AddChild (SecurityElement child) |
| bool | Equal ([NotNullWhen(true)] SecurityElement? other) |
| SecurityElement | Copy () |
| override string | ToString () |
| string? | Attribute (string name) |
| SecurityElement? | SearchForChildByTag (string tag) |
| string? | SearchForTextOfTag (string tag) |
Static Public Member Functions | |
| static bool | IsValidTag ([NotNullWhen(true)] string? tag) |
| static bool | IsValidText ([NotNullWhen(true)] string? text) |
| static bool | IsValidAttributeName ([NotNullWhen(true)] string? name) |
| static bool | IsValidAttributeValue ([NotNullWhen(true)] string? value) |
| static ? string | Escape (string? str) |
| static ? SecurityElement | FromString (string xml) |
Package Functions | |
| void | AddAttributeSafe (string name, string value) |
Package Attributes | |
| string | _tag |
| string | _text |
| ArrayList | _attributes |
Properties | |
| string | Tag [get, set] |
| Hashtable? | Attributes [get, set] |
| string? | Text [get, set] |
| ArrayList? | Children [get, set] |
Private Member Functions | |
| void | ToString (object obj, Action< object, string > write) |
Static Private Member Functions | |
| static string | GetEscapeSequence (char c) |
| static string | GetUnescapeSequence (string str, int index, out int newIndex) |
| static string | Unescape (string str) |
Private Attributes | |
| ArrayList | _children |
Static Private Attributes | |
| static readonly char[] | s_tagIllegalCharacters = new char[3] { ' ', '<', '>' } |
| static readonly char[] | s_textIllegalCharacters = new char[2] { '<', '>' } |
| static readonly char[] | s_valueIllegalCharacters = new char[3] { '<', '>', '"' } |
| static readonly char[] | s_escapeChars = new char[5] { '<', '>', '"', '\'', '&' } |
| static readonly string[] | s_escapeStringPairs = new string[10] { "<", "<", ">", ">", "\"", """, "'", "'", "&", "&" } |
Definition at line 7 of file SecurityElement.cs.