C# 클래스 Codaxy.Common.Text.StringExtensions

파일 보기 프로젝트 열기: codaxy/common

공개 메소드들

메소드 설명
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