C# 클래스 Sage.XsltExtensions.String

파일 보기 프로젝트 열기: igorfrance/sage

공개 메소드들

메소드 설명
contains ( string subject, string value ) : bool

Returns a value indicating whether the specified value exists in the specified subject.

containsAny ( string subject, string values ) : bool

Returns a value indicating whether the specified subject contains any one of the specified values (split on comma and space).

format ( string value, string param1 ) : string

Formats the specified string value using the specified formatting parameters.

format ( string value, string param1, string param2 ) : string

Formats the specified string value using the specified formatting parameters.

format ( string value, string param1, string param2, string param3 ) : string

Formats the specified string value using the specified formatting parameters.

format ( string value, string param1, string param2, string param3, string param4 ) : string

Formats the specified string value using the specified formatting parameters.

format ( string value, string param1, string param2, string param3, string param4, string param5 ) : string

Formats the specified string value using the specified formatting parameters.

join ( XPathNodeIterator selection, string separator ) : string

Joins the specified selection using the specified separator.

lowerCase ( string value ) : string

Returns the value converted to lower case

matches ( string value, string expression ) : bool

Returns a value indicating whether the specified value matches the specified regular expression string.

replace ( string value, string expression, string replacement ) : string

Searched the specified value for expression and replaces it with specified replacement.

replace ( string value, string expression, string replacement, int regexOptions ) : string

Searched the specified value for expression and replaces it with specified replacement.

split ( string subject, string separator ) : XPathNodeIterator

Splits the specified subject, using the specified separator and returns a node iterator around the generated result.

substitute ( string pattern, string query ) : string

Substitutes the placeholders in the specified pattern using the parameters specified with query.

The query should be formatted as a URL query string. The placeholders are names surrounded with curly braces.

substitute ( string pattern, string name1, string value1 ) : string

Substitutes the placeholders in the specified pattern using the parameters specified.

substitute ( string pattern, string name1, string value1, string name2, string value2 ) : string

Substitutes the placeholders in the specified pattern using the parameters specified.

trim ( string subject ) : string

Trims the specified subject string.

trim ( string subject, string chars ) : string

Trims the specified chars from the specified subject string.

trim ( string subject, string chars, string separator ) : string

Trims all specified chars from the specified subject string, using the separator to split the chars.

trimSourceCode ( string subject ) : string

Trims the source code of initial indent characters.

trimSourceCode ( string subject, string tabChars ) : string

Trims the source code of initial indent characters.

trimSourceCode ( string subject, string tabChars, string lineIndent ) : string

Trims the source code of initial indent characters.

upperCase ( string value ) : string

Returns the value converted to upper case

upperCaseFirst ( string value ) : string

Returns the value with it's first char converted to upper case

비공개 메소드들

메소드 설명
unquoteReplacement ( string replacement ) : string

메소드 상세

contains() 공개 메소드

Returns a value indicating whether the specified value exists in the specified subject.
public contains ( string subject, string value ) : bool
subject string The string to search.
value string The value to look for.
리턴 bool

containsAny() 공개 메소드

Returns a value indicating whether the specified subject contains any one of the specified values (split on comma and space).
public containsAny ( string subject, string values ) : bool
subject string The string to search.
values string The list of values (comma or space-separated) to look for.
리턴 bool

format() 공개 메소드

Formats the specified string value using the specified formatting parameters.
public format ( string value, string param1 ) : string
value string The string to format.
param1 string The first substitution value.
리턴 string

format() 공개 메소드

Formats the specified string value using the specified formatting parameters.
public format ( string value, string param1, string param2 ) : string
value string The string to format.
param1 string The first substitution value.
param2 string The second substitution value.
리턴 string

format() 공개 메소드

Formats the specified string value using the specified formatting parameters.
public format ( string value, string param1, string param2, string param3 ) : string
value string The string to format.
param1 string The first substitution value.
param2 string The second substitution value.
param3 string The third substitution value.
리턴 string

format() 공개 메소드

Formats the specified string value using the specified formatting parameters.
public format ( string value, string param1, string param2, string param3, string param4 ) : string
value string The string to format.
param1 string The first substitution value.
param2 string The second substitution value.
param3 string The third substitution value.
param4 string The fourth substitution value.
리턴 string

format() 공개 메소드

Formats the specified string value using the specified formatting parameters.
public format ( string value, string param1, string param2, string param3, string param4, string param5 ) : string
value string The string to format.
param1 string The first substitution value.
param2 string The second substitution value.
param3 string The third substitution value.
param4 string The fourth substitution value.
param5 string The fifth substitution value.
리턴 string

join() 공개 메소드

Joins the specified selection using the specified separator.
public join ( XPathNodeIterator selection, string separator ) : string
selection System.Xml.XPath.XPathNodeIterator The selection.
separator string The separator.
리턴 string

lowerCase() 공개 메소드

Returns the value converted to lower case
public lowerCase ( string value ) : string
value string The string to process.
리턴 string

matches() 공개 메소드

Returns a value indicating whether the specified value matches the specified regular expression string.
public matches ( string value, string expression ) : bool
value string The value to check.
expression string The expression to look for.
리턴 bool

replace() 공개 메소드

Searched the specified value for expression and replaces it with specified replacement.
public replace ( string value, string expression, string replacement ) : string
value string The string to replace.
expression string The expression to look for.
replacement string The replacement string to substitute with.
리턴 string

replace() 공개 메소드

Searched the specified value for expression and replaces it with specified replacement.
public replace ( string value, string expression, string replacement, int regexOptions ) : string
value string The string to replace.
expression string The expression to look for.
replacement string The replacement string to substitute with.
regexOptions int The regex options to use.
리턴 string

split() 공개 메소드

Splits the specified subject, using the specified separator and returns a node iterator around the generated result.
public split ( string subject, string separator ) : XPathNodeIterator
subject string The subject.
separator string The separator.
리턴 System.Xml.XPath.XPathNodeIterator

substitute() 공개 메소드

Substitutes the placeholders in the specified pattern using the parameters specified with query.
The query should be formatted as a URL query string. The placeholders are names surrounded with curly braces.
public substitute ( string pattern, string query ) : string
pattern string The pattern string with placeholders.
query string The query string with substitution values.
리턴 string

substitute() 공개 메소드

Substitutes the placeholders in the specified pattern using the parameters specified.
public substitute ( string pattern, string name1, string value1 ) : string
pattern string The pattern string with placeholders.
name1 string The name1.
value1 string The value1.
리턴 string

substitute() 공개 메소드

Substitutes the placeholders in the specified pattern using the parameters specified.
public substitute ( string pattern, string name1, string value1, string name2, string value2 ) : string
pattern string The pattern string with placeholders.
name1 string The name1.
value1 string The value1.
name2 string The name2.
value2 string The value2.
리턴 string

trim() 공개 메소드

Trims the specified subject string.
public trim ( string subject ) : string
subject string The subject.
리턴 string

trim() 공개 메소드

Trims the specified chars from the specified subject string.
public trim ( string subject, string chars ) : string
subject string The subject to trim from.
chars string The chars to trim.
리턴 string

trim() 공개 메소드

Trims all specified chars from the specified subject string, using the separator to split the chars.
public trim ( string subject, string chars, string separator ) : string
subject string The subject to trim from.
chars string The chars to trim.
separator string The separator.
리턴 string

trimSourceCode() 공개 메소드

Trims the source code of initial indent characters.
public trimSourceCode ( string subject ) : string
subject string The subject.
리턴 string

trimSourceCode() 공개 메소드

Trims the source code of initial indent characters.
public trimSourceCode ( string subject, string tabChars ) : string
subject string The subject.
tabChars string The chars to replace the tabs with.
리턴 string

trimSourceCode() 공개 메소드

Trims the source code of initial indent characters.
public trimSourceCode ( string subject, string tabChars, string lineIndent ) : string
subject string The subject.
tabChars string The chars to replace the tabs with.
lineIndent string The indent chars to use at the start of each line.
리턴 string

upperCase() 공개 메소드

Returns the value converted to upper case
public upperCase ( string value ) : string
value string The string to process.
리턴 string

upperCaseFirst() 공개 메소드

Returns the value with it's first char converted to upper case
public upperCaseFirst ( string value ) : string
value string The string to process.
리턴 string