C# Класс Microsoft.Automata.StringUtility

Provides some character escaping routines for strings.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Escape ( char c, bool useNumericRepresentationOnly = false ) : string

Make an escaped string from a character.

Escape ( string s ) : string

Makes an escaped string from a literal string s. Appends '\"' at the start and end of the encoded string.

Unescape ( string s ) : string

Unescapes any escaped characters in in the input string. (Same as System.Text.RegularExpressions.Regex.Unescape)

Приватные методы

Метод Описание
EscapeWithNumericSpace ( char c ) : string

Make an escaped string from a character

ToUnicodeRepr ( int i ) : string

Описание методов

Escape() публичный статический Метод

Make an escaped string from a character.
public static Escape ( char c, bool useNumericRepresentationOnly = false ) : string
c char given character
useNumericRepresentationOnly bool if true then use numeric hexadecimal escaping of all characters
Результат string

Escape() публичный статический Метод

Makes an escaped string from a literal string s. Appends '\"' at the start and end of the encoded string.
public static Escape ( string s ) : string
s string
Результат string

Unescape() публичный статический Метод

Unescapes any escaped characters in in the input string. (Same as System.Text.RegularExpressions.Regex.Unescape)
public static Unescape ( string s ) : string
s string
Результат string