HierarchyEscapeName Method |
Escapes all the special symbols in the name.
Namespace:
KSPDev.ModelUtils
Assembly:
KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntaxpublic static string EscapeName(
string unescapedName
)
Request Example
View SourceParameters
- unescapedName
- Type: SystemString
The raw name with any symbols.
Return Value
Type:
StringA name where all the special symbols are properly escaped.
Remarks
For now the only specil symbol is / (slash) because of it's used as a name separator
in the hierarchy paths. The escaped separator symbol is simply doubled. I.e. string a/b
transforms into a//b.
See Also