C# Class Codaxy.Common.Text.StringExtensions

Afficher le fichier Open project: codaxy/common

Méthodes publiques

Méthode Description
AfterLastOf ( this s, char c ) : String
AfterLastOfAny ( this s ) : String
Contains ( this source, string toCheck, StringComparison comp ) : bool
Enclose ( this s, String within ) : string
Enclose ( this s, String left, String right ) : string
Enclose ( this s, char within ) : string
FormatWith ( this format ) : String
Indent ( this s, int count ) : string
IsEqualToAnyOf ( this s ) : bool
IsNullOrEmpty ( this s ) : bool
JoinNonEmpty ( String sep ) : String
LeftOf ( this s, char c, bool emptyIfNotFound ) : String
LeftPart ( this s, int n ) : String
Quote ( this s ) : string
QuoteSingle ( this s ) : string
Replace ( this original, string pattern, string replacement, StringComparison comparisonType ) : string
ReplaceNullOrEmptyWith ( this s, String replacement ) : String
Reverse ( this s ) : string
SplitKeep ( this s ) : IEnumerable

Split string using given delimiters and keeps delimiters. No empty string are returned.

ToCamelCase ( this source ) : string
ToPascalCase ( this source ) : string

Method Details

AfterLastOf() public static méthode

public static AfterLastOf ( this s, char c ) : String
s this
c char
Résultat String

AfterLastOfAny() public static méthode

public static AfterLastOfAny ( this s ) : String
s this
Résultat String

Contains() public static méthode

public static Contains ( this source, string toCheck, StringComparison comp ) : bool
source this
toCheck string
comp StringComparison
Résultat bool

Enclose() public static méthode

public static Enclose ( this s, String within ) : string
s this
within String
Résultat string

Enclose() public static méthode

public static Enclose ( this s, String left, String right ) : string
s this
left String
right String
Résultat string

Enclose() public static méthode

public static Enclose ( this s, char within ) : string
s this
within char
Résultat string

FormatWith() public static méthode

public static FormatWith ( this format ) : String
format this
Résultat String

Indent() public static méthode

public static Indent ( this s, int count ) : string
s this
count int
Résultat string

IsEqualToAnyOf() public static méthode

public static IsEqualToAnyOf ( this s ) : bool
s this
Résultat bool

IsNullOrEmpty() public static méthode

public static IsNullOrEmpty ( this s ) : bool
s this
Résultat bool

JoinNonEmpty() public static méthode

public static JoinNonEmpty ( String sep ) : String
sep String
Résultat String

LeftOf() public static méthode

public static LeftOf ( this s, char c, bool emptyIfNotFound ) : String
s this
c char
emptyIfNotFound bool
Résultat String

LeftPart() public static méthode

public static LeftPart ( this s, int n ) : String
s this
n int
Résultat String

Quote() public static méthode

public static Quote ( this s ) : string
s this
Résultat string

QuoteSingle() public static méthode

public static QuoteSingle ( this s ) : string
s this
Résultat string

Replace() public static méthode

public static Replace ( this original, string pattern, string replacement, StringComparison comparisonType ) : string
original this
pattern string
replacement string
comparisonType StringComparison
Résultat string

ReplaceNullOrEmptyWith() public static méthode

public static ReplaceNullOrEmptyWith ( this s, String replacement ) : String
s this
replacement String
Résultat String

Reverse() public static méthode

public static Reverse ( this s ) : string
s this
Résultat string

SplitKeep() public static méthode

Split string using given delimiters and keeps delimiters. No empty string are returned.
public static SplitKeep ( this s ) : IEnumerable
s this String instance.
Résultat IEnumerable

ToCamelCase() public static méthode

public static ToCamelCase ( this source ) : string
source this
Résultat string

ToPascalCase() public static méthode

public static ToPascalCase ( this source ) : string
source this
Résultat string