C# Класс Codaxy.Common.Text.StringExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

AfterLastOf() публичный статический Метод

public static AfterLastOf ( this s, char c ) : String
s this
c char
Результат String

AfterLastOfAny() публичный статический Метод

public static AfterLastOfAny ( this s ) : String
s this
Результат String

Contains() публичный статический Метод

public static Contains ( this source, string toCheck, StringComparison comp ) : bool
source this
toCheck string
comp StringComparison
Результат bool

Enclose() публичный статический Метод

public static Enclose ( this s, String within ) : string
s this
within String
Результат string

Enclose() публичный статический Метод

public static Enclose ( this s, String left, String right ) : string
s this
left String
right String
Результат string

Enclose() публичный статический Метод

public static Enclose ( this s, char within ) : string
s this
within char
Результат string

FormatWith() публичный статический Метод

public static FormatWith ( this format ) : String
format this
Результат String

Indent() публичный статический Метод

public static Indent ( this s, int count ) : string
s this
count int
Результат string

IsEqualToAnyOf() публичный статический Метод

public static IsEqualToAnyOf ( this s ) : bool
s this
Результат bool

IsNullOrEmpty() публичный статический Метод

public static IsNullOrEmpty ( this s ) : bool
s this
Результат bool

JoinNonEmpty() публичный статический Метод

public static JoinNonEmpty ( String sep ) : String
sep String
Результат String

LeftOf() публичный статический Метод

public static LeftOf ( this s, char c, bool emptyIfNotFound ) : String
s this
c char
emptyIfNotFound bool
Результат String

LeftPart() публичный статический Метод

public static LeftPart ( this s, int n ) : String
s this
n int
Результат String

Quote() публичный статический Метод

public static Quote ( this s ) : string
s this
Результат string

QuoteSingle() публичный статический Метод

public static QuoteSingle ( this s ) : string
s this
Результат string

Replace() публичный статический Метод

public static Replace ( this original, string pattern, string replacement, StringComparison comparisonType ) : string
original this
pattern string
replacement string
comparisonType StringComparison
Результат string

ReplaceNullOrEmptyWith() публичный статический Метод

public static ReplaceNullOrEmptyWith ( this s, String replacement ) : String
s this
replacement String
Результат String

Reverse() публичный статический Метод

public static Reverse ( this s ) : string
s this
Результат string

SplitKeep() публичный статический Метод

Split string using given delimiters and keeps delimiters. No empty string are returned.
public static SplitKeep ( this s ) : IEnumerable
s this String instance.
Результат IEnumerable

ToCamelCase() публичный статический Метод

public static ToCamelCase ( this source ) : string
source this
Результат string

ToPascalCase() публичный статический Метод

public static ToPascalCase ( this source ) : string
source this
Результат string