C# 클래스 PEBakery.Core.StringEscaper

파일 보기 프로젝트 열기: pebakery/pebakery 1 사용 예제들

공개 메소드들

메소드 설명
DoubleQuote ( string str ) : string
Escape ( IEnumerable strs, bool fullEscape = false, bool escapePercent = false ) : List
Escape ( string str, bool fullEscape = false, bool escapePercent = false ) : string
EscapePercent ( IEnumerable strs ) : List
EscapePercent ( string str ) : string
ExpandSectionParams ( PEBakery.Core.EngineState s, IEnumerable strs ) : List
ExpandSectionParams ( PEBakery.Core.EngineState s, string str ) : string

Expand #1, #2, #3, etc...

ExpandVariables ( PEBakery.Core.EngineState s, IEnumerable strs ) : List
ExpandVariables ( PEBakery.Core.Variables vars, IEnumerable strs ) : List
ExpandVariables ( PEBakery.Core.EngineState s, string str ) : string

Expand #n and %Var% variables.

ExpandVariables ( PEBakery.Core.Variables vars, string str ) : string
GetUniqueFileName ( string srcKey, IEnumerable keys ) : string
GetUniqueKey ( string srcKey, IEnumerable keys, int startIdx = 1 ) : string
IsFileFilterValid ( string filter ) : bool

Check if given filter is a valid Microsoft.Win32.OpenFileDialog.Filter format.

IsFileNameValid ( string path, IEnumerable more = null ) : bool
IsPathValid ( string path, IEnumerable more = null ) : bool
IsUrlValid ( string url ) : bool

Check if given url is valid http or https url.

PackRegBinary ( Array bin, bool escape = false ) : string
PackRegMultiBinary ( IEnumerable multiStrs ) : string
PackRegMultiString ( IEnumerable multiStrs ) : string
PathSecurityCheck ( string path, string &errorMsg ) : bool

Check if a path is safe to write. Allows wildcard.

Preprocess ( PEBakery.Core.EngineState s, IEnumerable strs, bool escapePercent = true ) : List
Preprocess ( PEBakery.Core.Variables vars, IEnumerable strs, bool escapePercent = true ) : List
Preprocess ( PEBakery.Core.EngineState s, string str, bool escapePercent = true ) : string
Preprocess ( PEBakery.Core.Variables vars, string str, bool escapePercent = true ) : string
ProcessVersionString ( string str ) : string
QuoteEscape ( IEnumerable strs, bool fullEscape = false, bool escapePercent = false ) : List
QuoteEscape ( string str, bool fullEscape = false, bool escapePercent = false ) : string
QuoteUnescape ( IEnumerable strs, bool escapePercent = false ) : List
QuoteUnescape ( string str, bool escapePercent = false ) : string
Unescape ( IEnumerable strs, bool escapePercent = false ) : List
Unescape ( string str, bool escapePercent = false ) : string
UnescapePercent ( IEnumerable strs ) : List
UnescapePercent ( string str ) : string
UnpackRegBinary ( Array packStrs, Array &bin ) : bool
UnpackRegBinary ( string packStr, Array &bin ) : bool
UnpackRegMultiString ( string packStr ) : List

비공개 메소드들

메소드 설명
PackListStr ( IList list, string separator ) : string
UnpackListStr ( string listStr, string separator ) : List

메소드 상세

DoubleQuote() 공개 정적인 메소드

public static DoubleQuote ( string str ) : string
str string
리턴 string

Escape() 공개 정적인 메소드

public static Escape ( IEnumerable strs, bool fullEscape = false, bool escapePercent = false ) : List
strs IEnumerable
fullEscape bool
escapePercent bool
리턴 List

Escape() 공개 정적인 메소드

public static Escape ( string str, bool fullEscape = false, bool escapePercent = false ) : string
str string
fullEscape bool
escapePercent bool
리턴 string

EscapePercent() 공개 정적인 메소드

public static EscapePercent ( IEnumerable strs ) : List
strs IEnumerable
리턴 List

EscapePercent() 공개 정적인 메소드

public static EscapePercent ( string str ) : string
str string
리턴 string

ExpandSectionParams() 공개 정적인 메소드

public static ExpandSectionParams ( PEBakery.Core.EngineState s, IEnumerable strs ) : List
s PEBakery.Core.EngineState
strs IEnumerable
리턴 List

ExpandSectionParams() 공개 정적인 메소드

Expand #1, #2, #3, etc...
public static ExpandSectionParams ( PEBakery.Core.EngineState s, string str ) : string
s PEBakery.Core.EngineState
str string
리턴 string

ExpandVariables() 공개 정적인 메소드

public static ExpandVariables ( PEBakery.Core.EngineState s, IEnumerable strs ) : List
s PEBakery.Core.EngineState
strs IEnumerable
리턴 List

ExpandVariables() 공개 정적인 메소드

public static ExpandVariables ( PEBakery.Core.Variables vars, IEnumerable strs ) : List
vars PEBakery.Core.Variables
strs IEnumerable
리턴 List

ExpandVariables() 공개 정적인 메소드

Expand #n and %Var% variables.
public static ExpandVariables ( PEBakery.Core.EngineState s, string str ) : string
s PEBakery.Core.EngineState
str string
리턴 string

ExpandVariables() 공개 정적인 메소드

public static ExpandVariables ( PEBakery.Core.Variables vars, string str ) : string
vars PEBakery.Core.Variables
str string
리턴 string

GetUniqueFileName() 공개 정적인 메소드

public static GetUniqueFileName ( string srcKey, IEnumerable keys ) : string
srcKey string
keys IEnumerable
리턴 string

GetUniqueKey() 공개 정적인 메소드

public static GetUniqueKey ( string srcKey, IEnumerable keys, int startIdx = 1 ) : string
srcKey string
keys IEnumerable
startIdx int
리턴 string

IsFileFilterValid() 공개 정적인 메소드

Check if given filter is a valid Microsoft.Win32.OpenFileDialog.Filter format.
public static IsFileFilterValid ( string filter ) : bool
filter string File filter string to test
리턴 bool

IsFileNameValid() 공개 정적인 메소드

public static IsFileNameValid ( string path, IEnumerable more = null ) : bool
path string
more IEnumerable
리턴 bool

IsPathValid() 공개 정적인 메소드

public static IsPathValid ( string path, IEnumerable more = null ) : bool
path string
more IEnumerable
리턴 bool

IsUrlValid() 공개 정적인 메소드

Check if given url is valid http or https url.
public static IsUrlValid ( string url ) : bool
url string
리턴 bool

PackRegBinary() 공개 정적인 메소드

public static PackRegBinary ( Array bin, bool escape = false ) : string
bin Array
escape bool
리턴 string

PackRegMultiBinary() 공개 정적인 메소드

public static PackRegMultiBinary ( IEnumerable multiStrs ) : string
multiStrs IEnumerable
리턴 string

PackRegMultiString() 공개 정적인 메소드

public static PackRegMultiString ( IEnumerable multiStrs ) : string
multiStrs IEnumerable
리턴 string

PathSecurityCheck() 공개 정적인 메소드

Check if a path is safe to write. Allows wildcard.
public static PathSecurityCheck ( string path, string &errorMsg ) : bool
path string
errorMsg string
리턴 bool

Preprocess() 공개 정적인 메소드

public static Preprocess ( PEBakery.Core.EngineState s, IEnumerable strs, bool escapePercent = true ) : List
s PEBakery.Core.EngineState
strs IEnumerable
escapePercent bool
리턴 List

Preprocess() 공개 정적인 메소드

public static Preprocess ( PEBakery.Core.Variables vars, IEnumerable strs, bool escapePercent = true ) : List
vars PEBakery.Core.Variables
strs IEnumerable
escapePercent bool
리턴 List

Preprocess() 공개 정적인 메소드

public static Preprocess ( PEBakery.Core.EngineState s, string str, bool escapePercent = true ) : string
s PEBakery.Core.EngineState
str string
escapePercent bool
리턴 string

Preprocess() 공개 정적인 메소드

public static Preprocess ( PEBakery.Core.Variables vars, string str, bool escapePercent = true ) : string
vars PEBakery.Core.Variables
str string
escapePercent bool
리턴 string

ProcessVersionString() 공개 정적인 메소드

public static ProcessVersionString ( string str ) : string
str string
리턴 string

QuoteEscape() 공개 정적인 메소드

public static QuoteEscape ( IEnumerable strs, bool fullEscape = false, bool escapePercent = false ) : List
strs IEnumerable
fullEscape bool
escapePercent bool
리턴 List

QuoteEscape() 공개 정적인 메소드

public static QuoteEscape ( string str, bool fullEscape = false, bool escapePercent = false ) : string
str string
fullEscape bool
escapePercent bool
리턴 string

QuoteUnescape() 공개 정적인 메소드

public static QuoteUnescape ( IEnumerable strs, bool escapePercent = false ) : List
strs IEnumerable
escapePercent bool
리턴 List

QuoteUnescape() 공개 정적인 메소드

public static QuoteUnescape ( string str, bool escapePercent = false ) : string
str string
escapePercent bool
리턴 string

Unescape() 공개 정적인 메소드

public static Unescape ( IEnumerable strs, bool escapePercent = false ) : List
strs IEnumerable
escapePercent bool
리턴 List

Unescape() 공개 정적인 메소드

public static Unescape ( string str, bool escapePercent = false ) : string
str string
escapePercent bool
리턴 string

UnescapePercent() 공개 정적인 메소드

public static UnescapePercent ( IEnumerable strs ) : List
strs IEnumerable
리턴 List

UnescapePercent() 공개 정적인 메소드

public static UnescapePercent ( string str ) : string
str string
리턴 string

UnpackRegBinary() 공개 정적인 메소드

public static UnpackRegBinary ( Array packStrs, Array &bin ) : bool
packStrs Array
bin Array
리턴 bool

UnpackRegBinary() 공개 정적인 메소드

public static UnpackRegBinary ( string packStr, Array &bin ) : bool
packStr string
bin Array
리턴 bool

UnpackRegMultiString() 공개 정적인 메소드

public static UnpackRegMultiString ( string packStr ) : List
packStr string
리턴 List