C# 클래스 Signum.Utilities.StringExtensions

파일 보기 프로젝트 열기: signumsoftware/framework

공개 메소드들

메소드 설명
Add ( this str, string separator, string part ) : string
AddLine ( this str, string part ) : string
After ( this str, char separator ) : string

get the substring after the first occurence of the separator

After ( this str, string separator ) : string

get the substring after the first occurence of the separator

AfterLast ( this str, char separator ) : string

get the substring after the last occurence of the separator

AfterLast ( this str, string separator ) : string

get the substring after the last occurence of the separator

AppendLines ( this sb, IEnumerable strings ) : StringBuilder
AssertHasText ( this str, string errorMessage ) : string
Before ( this str, char separator ) : string

get the substring before the first occurence of the separator

Before ( this str, string separator ) : string

get the substring before the first occurence of the separator

BeforeLast ( this str, char separator ) : string

get the substring before the last occurence of the separator

BeforeLast ( this str, string separator ) : string

get the substring before the last occurence of the separator

Between ( this str, char firstSeparator, char secondSeparator = (char)0 ) : string
Between ( this str, string firstSeparator, string secondSeparator = null ) : string
Combine ( this separator ) : string
CombineIfNotEmpty ( this separator ) : string
Contains ( this source, string toCheck, System.StringComparison comp ) : bool
ContinuesWith ( this str, string subString, int pos ) : bool
CountRepetitions ( this text, string part ) : int
DefaultText ( this str, string defaultText ) : string
End ( this str, int numChars ) : string
Etc ( this str, int max ) : string
Etc ( this str, int max, string etcString ) : string
FirstLower ( this str ) : string
FirstNonEmptyLine ( this str ) : string
FirstUpper ( this str ) : string
FormatWith ( this pattern ) : string
FormatWith ( this format, IFormatProvider provider ) : string
FormatWith ( this format, object arg0 ) : string
FormatWith ( this format, object arg0, object arg1 ) : string
FormatWith ( this format, object arg0, object arg1, object arg2 ) : string
Indent ( this str, int numChars ) : string
Indent ( this str, int numChars, char indentChar ) : string
Like ( this str, string pattern ) : bool
Lines ( this str ) : string[]
PadChopLeft ( this str, int length ) : string
PadChopRight ( this str, int length ) : string
RemoveChars ( this str ) : string
RemoveDiacritics ( this s ) : string
RemoveEnd ( this str, int numChars ) : string
RemoveStart ( this str, int numChars ) : string
Replace ( this str, char>.Dictionary replacements ) : string
Replace ( this str, string>.Dictionary replacements ) : string
Replicate ( this str, int times ) : string
Reverse ( this str ) : string
SplitInGroupsOf ( this str, int maxChars ) : List
SplitNoEmpty ( this text ) : string[]
SplitNoEmpty ( this text, char separator ) : string[]
SplitNoEmpty ( this text, string separator ) : string[]
Start ( this str, int numChars ) : string
ToComputerSize ( this value ) : string
ToComputerSize ( this value, bool useAbbreviations ) : string
TryAfter ( this str, char separator ) : string

get the substring after the first occurence of the separator

TryAfter ( this str, string separator ) : string

get the substring after the first occurence of the separator

TryAfterLast ( this str, char separator ) : string

get the substring after the last occurence of the separator

TryAfterLast ( this str, string separator ) : string

get the substring after the last occurence of the separator

TryBefore ( this str, char separator ) : string

get the substring before the first occurence of the separator

TryBefore ( this str, string separator ) : string

get the substring before the first occurence of the separator

TryBeforeLast ( this str, char separator ) : string

get the substring before the last occurence of the separator

TryBeforeLast ( this str, string separator ) : string

get the substring before the last occurence of the separator

TryBetween ( this str, char firstSeparator, char secondSeparator = (char)0 ) : string
TryBetween ( this str, string firstSeparator, string secondSeparator = null ) : string
TryEnd ( this str, int numChars ) : string
TryRemoveEnd ( this str, int numChars ) : string
TryRemoveStart ( this str, int numChars ) : string
TryStart ( this str, int numChars ) : string
VerticalEtc ( this str, int maxLines, string etcString = "(...)" ) : string
Wildcards ( this fileName, IEnumerable wildcards ) : bool
Wildcards ( this fileName, string wildcard ) : bool

비공개 메소드들

메소드 설명
HasText ( this str ) : bool
NotFound ( string str, char separator ) : InvalidOperationException
NotFound ( string str, string separator ) : InvalidOperationException

메소드 상세

Add() 공개 정적인 메소드

public static Add ( this str, string separator, string part ) : string
str this
separator string
part string
리턴 string

AddLine() 공개 정적인 메소드

public static AddLine ( this str, string part ) : string
str this
part string
리턴 string

After() 공개 정적인 메소드

get the substring after the first occurence of the separator
If the separator is not found in the string
public static After ( this str, char separator ) : string
str this
separator char
리턴 string

After() 공개 정적인 메소드

get the substring after the first occurence of the separator
If the separator is not found in the string
public static After ( this str, string separator ) : string
str this
separator string
리턴 string

AfterLast() 공개 정적인 메소드

get the substring after the last occurence of the separator
If the separator is not found in the string
public static AfterLast ( this str, char separator ) : string
str this
separator char
리턴 string

AfterLast() 공개 정적인 메소드

get the substring after the last occurence of the separator
If the separator is not found in the string
public static AfterLast ( this str, string separator ) : string
str this
separator string
리턴 string

AppendLines() 공개 정적인 메소드

public static AppendLines ( this sb, IEnumerable strings ) : StringBuilder
sb this
strings IEnumerable
리턴 StringBuilder

AssertHasText() 공개 정적인 메소드

public static AssertHasText ( this str, string errorMessage ) : string
str this
errorMessage string
리턴 string

Before() 공개 정적인 메소드

get the substring before the first occurence of the separator
If the separator is not found in the string
public static Before ( this str, char separator ) : string
str this
separator char
리턴 string

Before() 공개 정적인 메소드

get the substring before the first occurence of the separator
If the separator is not found in the string
public static Before ( this str, string separator ) : string
str this
separator string
리턴 string

BeforeLast() 공개 정적인 메소드

get the substring before the last occurence of the separator
If the separator is not found in the string
public static BeforeLast ( this str, char separator ) : string
str this
separator char
리턴 string

BeforeLast() 공개 정적인 메소드

get the substring before the last occurence of the separator
If the separator is not found in the string
public static BeforeLast ( this str, string separator ) : string
str this
separator string
리턴 string

Between() 공개 정적인 메소드

public static Between ( this str, char firstSeparator, char secondSeparator = (char)0 ) : string
str this
firstSeparator char
secondSeparator char
리턴 string

Between() 공개 정적인 메소드

public static Between ( this str, string firstSeparator, string secondSeparator = null ) : string
str this
firstSeparator string
secondSeparator string
리턴 string

Combine() 공개 정적인 메소드

public static Combine ( this separator ) : string
separator this
리턴 string

CombineIfNotEmpty() 공개 정적인 메소드

public static CombineIfNotEmpty ( this separator ) : string
separator this
리턴 string

Contains() 공개 정적인 메소드

public static Contains ( this source, string toCheck, System.StringComparison comp ) : bool
source this
toCheck string
comp System.StringComparison
리턴 bool

ContinuesWith() 공개 정적인 메소드

public static ContinuesWith ( this str, string subString, int pos ) : bool
str this
subString string
pos int
리턴 bool

CountRepetitions() 공개 정적인 메소드

public static CountRepetitions ( this text, string part ) : int
text this
part string
리턴 int

DefaultText() 공개 정적인 메소드

public static DefaultText ( this str, string defaultText ) : string
str this
defaultText string
리턴 string

End() 공개 정적인 메소드

public static End ( this str, int numChars ) : string
str this
numChars int
리턴 string

Etc() 공개 정적인 메소드

public static Etc ( this str, int max ) : string
str this
max int
리턴 string

Etc() 공개 정적인 메소드

public static Etc ( this str, int max, string etcString ) : string
str this
max int
etcString string
리턴 string

FirstLower() 공개 정적인 메소드

public static FirstLower ( this str ) : string
str this
리턴 string

FirstNonEmptyLine() 공개 정적인 메소드

public static FirstNonEmptyLine ( this str ) : string
str this
리턴 string

FirstUpper() 공개 정적인 메소드

public static FirstUpper ( this str ) : string
str this
리턴 string

FormatWith() 공개 정적인 메소드

public static FormatWith ( this pattern ) : string
pattern this
리턴 string

FormatWith() 공개 정적인 메소드

public static FormatWith ( this format, IFormatProvider provider ) : string
format this
provider IFormatProvider
리턴 string

FormatWith() 공개 정적인 메소드

public static FormatWith ( this format, object arg0 ) : string
format this
arg0 object
리턴 string

FormatWith() 공개 정적인 메소드

public static FormatWith ( this format, object arg0, object arg1 ) : string
format this
arg0 object
arg1 object
리턴 string

FormatWith() 공개 정적인 메소드

public static FormatWith ( this format, object arg0, object arg1, object arg2 ) : string
format this
arg0 object
arg1 object
arg2 object
리턴 string

Indent() 공개 정적인 메소드

public static Indent ( this str, int numChars ) : string
str this
numChars int
리턴 string

Indent() 공개 정적인 메소드

public static Indent ( this str, int numChars, char indentChar ) : string
str this
numChars int
indentChar char
리턴 string

Like() 공개 정적인 메소드

public static Like ( this str, string pattern ) : bool
str this
pattern string
리턴 bool

Lines() 공개 정적인 메소드

public static Lines ( this str ) : string[]
str this
리턴 string[]

PadChopLeft() 공개 정적인 메소드

public static PadChopLeft ( this str, int length ) : string
str this
length int
리턴 string

PadChopRight() 공개 정적인 메소드

public static PadChopRight ( this str, int length ) : string
str this
length int
리턴 string

RemoveChars() 공개 정적인 메소드

public static RemoveChars ( this str ) : string
str this
리턴 string

RemoveDiacritics() 공개 정적인 메소드

public static RemoveDiacritics ( this s ) : string
s this
리턴 string

RemoveEnd() 공개 정적인 메소드

public static RemoveEnd ( this str, int numChars ) : string
str this
numChars int
리턴 string

RemoveStart() 공개 정적인 메소드

public static RemoveStart ( this str, int numChars ) : string
str this
numChars int
리턴 string

Replace() 공개 정적인 메소드

public static Replace ( this str, char>.Dictionary replacements ) : string
str this
replacements char>.Dictionary
리턴 string

Replace() 공개 정적인 메소드

public static Replace ( this str, string>.Dictionary replacements ) : string
str this
replacements string>.Dictionary
리턴 string

Replicate() 공개 정적인 메소드

public static Replicate ( this str, int times ) : string
str this
times int
리턴 string

Reverse() 공개 정적인 메소드

public static Reverse ( this str ) : string
str this
리턴 string

SplitInGroupsOf() 공개 정적인 메소드

public static SplitInGroupsOf ( this str, int maxChars ) : List
str this
maxChars int
리턴 List

SplitNoEmpty() 공개 정적인 메소드

public static SplitNoEmpty ( this text ) : string[]
text this
리턴 string[]

SplitNoEmpty() 공개 정적인 메소드

public static SplitNoEmpty ( this text, char separator ) : string[]
text this
separator char
리턴 string[]

SplitNoEmpty() 공개 정적인 메소드

public static SplitNoEmpty ( this text, string separator ) : string[]
text this
separator string
리턴 string[]

Start() 공개 정적인 메소드

public static Start ( this str, int numChars ) : string
str this
numChars int
리턴 string

ToComputerSize() 공개 정적인 메소드

public static ToComputerSize ( this value ) : string
value this
리턴 string

ToComputerSize() 공개 정적인 메소드

public static ToComputerSize ( this value, bool useAbbreviations ) : string
value this
useAbbreviations bool
리턴 string

TryAfter() 공개 정적인 메소드

get the substring after the first occurence of the separator
public static TryAfter ( this str, char separator ) : string
str this
separator char
리턴 string

TryAfter() 공개 정적인 메소드

get the substring after the first occurence of the separator
public static TryAfter ( this str, string separator ) : string
str this
separator string
리턴 string

TryAfterLast() 공개 정적인 메소드

get the substring after the last occurence of the separator
public static TryAfterLast ( this str, char separator ) : string
str this
separator char
리턴 string

TryAfterLast() 공개 정적인 메소드

get the substring after the last occurence of the separator
public static TryAfterLast ( this str, string separator ) : string
str this
separator string
리턴 string

TryBefore() 공개 정적인 메소드

get the substring before the first occurence of the separator
public static TryBefore ( this str, char separator ) : string
str this
separator char
리턴 string

TryBefore() 공개 정적인 메소드

get the substring before the first occurence of the separator
public static TryBefore ( this str, string separator ) : string
str this
separator string
리턴 string

TryBeforeLast() 공개 정적인 메소드

get the substring before the last occurence of the separator
public static TryBeforeLast ( this str, char separator ) : string
str this
separator char
리턴 string

TryBeforeLast() 공개 정적인 메소드

get the substring before the last occurence of the separator
public static TryBeforeLast ( this str, string separator ) : string
str this
separator string
리턴 string

TryBetween() 공개 정적인 메소드

public static TryBetween ( this str, char firstSeparator, char secondSeparator = (char)0 ) : string
str this
firstSeparator char
secondSeparator char
리턴 string

TryBetween() 공개 정적인 메소드

public static TryBetween ( this str, string firstSeparator, string secondSeparator = null ) : string
str this
firstSeparator string
secondSeparator string
리턴 string

TryEnd() 공개 정적인 메소드

public static TryEnd ( this str, int numChars ) : string
str this
numChars int
리턴 string

TryRemoveEnd() 공개 정적인 메소드

public static TryRemoveEnd ( this str, int numChars ) : string
str this
numChars int
리턴 string

TryRemoveStart() 공개 정적인 메소드

public static TryRemoveStart ( this str, int numChars ) : string
str this
numChars int
리턴 string

TryStart() 공개 정적인 메소드

public static TryStart ( this str, int numChars ) : string
str this
numChars int
리턴 string

VerticalEtc() 공개 정적인 메소드

public static VerticalEtc ( this str, int maxLines, string etcString = "(...)" ) : string
str this
maxLines int
etcString string
리턴 string

Wildcards() 공개 정적인 메소드

public static Wildcards ( this fileName, IEnumerable wildcards ) : bool
fileName this
wildcards IEnumerable
리턴 bool

Wildcards() 공개 정적인 메소드

public static Wildcards ( this fileName, string wildcard ) : bool
fileName this
wildcard string
리턴 bool