C# 클래스 GitSharp.Core.Util.QuotedString

Utility functions related to quoted string handling.
파일 보기 프로젝트 열기: stschake/GitSharp

공개 프로퍼티들

프로퍼티 타입 설명
BOURNE BourneStyle
BOURNE_USER_PATH BourneUserPathStyle
GIT_PATH GitPathStyle

공개 메소드들

메소드 설명
dequote ( byte instr, int offset, int end ) : string

Decode a previously quoted input, scanning a UTF-8 encoded buffer. This method must match quote such that: a.Equals(Dequote(Constants.encode(quote(a)))); is true for any a. This method removes any opening/closing quotation marks added by

dequote ( string instr ) : string

Clean a previously quoted input, decoding the result via UTF-8. This method must match quote such that: a.Equals(qequote(quote(a))); is true for any a.

quote ( string instr ) : string

Quote an input string by the quoting rules. If the input string does not require any quoting, the same String reference is returned to the caller. Otherwise a quoted string is returned, including the opening and closing quotation marks at the start and end of the string. If the style does not permit raw Unicode characters then the string will first be encoded in UTF-8, with unprintable sequences possibly escaped by the rules.

메소드 상세

dequote() 공개 추상적인 메소드

Decode a previously quoted input, scanning a UTF-8 encoded buffer. This method must match quote such that: a.Equals(Dequote(Constants.encode(quote(a)))); is true for any a. This method removes any opening/closing quotation marks added by
public abstract dequote ( byte instr, int offset, int end ) : string
instr byte /// The input buffer to parse. ///
offset int /// First position within to scan. ///
end int /// One position past in to scan. ///
리턴 string

dequote() 공개 메소드

Clean a previously quoted input, decoding the result via UTF-8. This method must match quote such that: a.Equals(qequote(quote(a))); is true for any a.
public dequote ( string instr ) : string
instr string a Unicode string to remove quoting from.
리턴 string

quote() 공개 추상적인 메소드

Quote an input string by the quoting rules. If the input string does not require any quoting, the same String reference is returned to the caller. Otherwise a quoted string is returned, including the opening and closing quotation marks at the start and end of the string. If the style does not permit raw Unicode characters then the string will first be encoded in UTF-8, with unprintable sequences possibly escaped by the rules.
public abstract quote ( string instr ) : string
instr string any non-null Unicode string
리턴 string

프로퍼티 상세

BOURNE 공개적으로 정적으로 프로퍼티

Quoting style used by the Bourne shell. Quotes are unconditionally inserted during quote(string). This protects shell meta-characters like $ or ~ from being recognized as special.
public static BourneStyle BOURNE
리턴 BourneStyle

BOURNE_USER_PATH 공개적으로 정적으로 프로퍼티

Bourne style, but permits ~user at the start of the string.
public static BourneUserPathStyle BOURNE_USER_PATH
리턴 BourneUserPathStyle

GIT_PATH 공개적으로 정적으로 프로퍼티

Quoting style that obeys the rules Git applies to file names.
public static GitPathStyle GIT_PATH
리턴 GitPathStyle