C# 클래스 Microsoft.Automata.StringUtility

Provides some character escaping routines for strings.
파일 보기 프로젝트 열기: AutomataDotNet/Automata 1 사용 예제들

공개 메소드들

메소드 설명
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