C# Class Regextra.RegexUtility

Afficher le fichier Open project: amageed/Regextra

Méthodes publiques

Méthode Description
FormatCamelCase ( string input, string delimiter = " ", CamelCaseOptions camelCaseOptions = CamelCaseOptions.None ) : string

Formats PascalCase (upper CamelCase) and (lower) camelCase words to a friendly format separated by the given delimiter (space by default).

MatchesToNamedGroupsDictionaries ( string input, string pattern, RegexOptions options = RegexOptions.None ) : string>[].Dictionary
MatchesToNamedGroupsLookup ( string input, string pattern, RegexOptions options = RegexOptions.None ) : string>.ILookup
Split ( string input, string delimiters, RegexOptions regexOptions = RegexOptions.None, SplitOptions splitOptions = SplitOptions.None ) : string[]
SplitIncludeDelimiters ( string input, string delimiters, RegexOptions regexOptions = RegexOptions.None ) : string[]
SplitMatchWholeWords ( string input, string delimiters, RegexOptions regexOptions = RegexOptions.None ) : string[]
SplitRemoveEmptyEntries ( string input, string pattern, RegexOptions regexOptions = RegexOptions.None ) : object
SplitRemoveEmptyEntries ( string input, string delimiters, RegexOptions regexOptions = RegexOptions.None ) : string[]
SplitTrimWhitespace ( string input, string delimiters, RegexOptions regexOptions = RegexOptions.None ) : string[]
TrimWhitespace ( string input ) : string

Private Methods

Méthode Description
CommonSetupForMatchesToNamedGroups ( string pattern, RegexOptions options, Regex &regex, IEnumerable &groupNames ) : void
EvaluateCamelCaseMatchWithCapitalization ( Match m, string delimiter, CamelCaseOptions options ) : string
PrefixSuffix ( StringBuilder input, string prefixSuffix ) : void
PrefixSuffix ( StringBuilder input, string prefix, string suffix ) : void
RemoveEmptyEntries ( string input ) : string[]

Method Details

FormatCamelCase() public static méthode

Formats PascalCase (upper CamelCase) and (lower) camelCase words to a friendly format separated by the given delimiter (space by default).
public static FormatCamelCase ( string input, string delimiter = " ", CamelCaseOptions camelCaseOptions = CamelCaseOptions.None ) : string
input string CamelCase input to format
delimiter string Delimiter to use for formatting (space by default)
camelCaseOptions CamelCaseOptions
Résultat string

MatchesToNamedGroupsDictionaries() public static méthode

public static MatchesToNamedGroupsDictionaries ( string input, string pattern, RegexOptions options = RegexOptions.None ) : string>[].Dictionary
input string
pattern string
options RegexOptions
Résultat string>[].Dictionary

MatchesToNamedGroupsLookup() public static méthode

public static MatchesToNamedGroupsLookup ( string input, string pattern, RegexOptions options = RegexOptions.None ) : string>.ILookup
input string
pattern string
options RegexOptions
Résultat string>.ILookup

Split() public static méthode

public static Split ( string input, string delimiters, RegexOptions regexOptions = RegexOptions.None, SplitOptions splitOptions = SplitOptions.None ) : string[]
input string
delimiters string
regexOptions RegexOptions
splitOptions SplitOptions
Résultat string[]

SplitIncludeDelimiters() public static méthode

public static SplitIncludeDelimiters ( string input, string delimiters, RegexOptions regexOptions = RegexOptions.None ) : string[]
input string
delimiters string
regexOptions RegexOptions
Résultat string[]

SplitMatchWholeWords() public static méthode

public static SplitMatchWholeWords ( string input, string delimiters, RegexOptions regexOptions = RegexOptions.None ) : string[]
input string
delimiters string
regexOptions RegexOptions
Résultat string[]

SplitRemoveEmptyEntries() public static méthode

public static SplitRemoveEmptyEntries ( string input, string pattern, RegexOptions regexOptions = RegexOptions.None ) : object
input string
pattern string
regexOptions RegexOptions
Résultat object

SplitRemoveEmptyEntries() public static méthode

public static SplitRemoveEmptyEntries ( string input, string delimiters, RegexOptions regexOptions = RegexOptions.None ) : string[]
input string
delimiters string
regexOptions RegexOptions
Résultat string[]

SplitTrimWhitespace() public static méthode

public static SplitTrimWhitespace ( string input, string delimiters, RegexOptions regexOptions = RegexOptions.None ) : string[]
input string
delimiters string
regexOptions RegexOptions
Résultat string[]

TrimWhitespace() public static méthode

public static TrimWhitespace ( string input ) : string
input string
Résultat string