C# 클래스 Nuve.Orthographic.StringExtensions

파일 보기 프로젝트 열기: hrzafer/nuve

공개 메소드들

메소드 설명
ContainsWhitespaceAny ( ) : int

Returns the index of firt string that contains a whitespace

DeleteFirstChar ( this str ) : string
DeleteFirstOccurrenceOfAny ( this str, string letters ) : string

DeleteLastChar ( this str ) : string
DeleteLastOccurrenceOfAny ( this str, string letters ) : string
FirstCharEqualsAny ( this str, string letters ) : bool

Indicates whether the first character of this string is equal to any character in the specified string.

FirstOccurrenceOfAny ( this str, string letters ) : char?

Returns the character in the specified string that occurres first in this string. Returns null if no character in the specified string is found this string.

IsEmpty ( this str ) : bool

Indicates whether this string is empty. Throws an ArgumentNullException if this string is null.

LastCharEqualsAny ( this str, string letters ) : bool

Indicates whether the last character of this string is equal to any character in the specified string.

LastOccurrenceOfAny ( this str, string letters ) : char?

Returns the character in the specified string that occurres last in this string. Returns null if no character in the specified string is found this string.

PenultimateOccurrenceOfAny ( this str, string letters ) : char?

Returns the character in the specified string that occurres next to last in this string. Returns null if no such character is found.

ReplaceFirstOccurrence ( this str, string oldPattern, string newPattern ) : string
ReplaceLastOccurrence ( this str, string oldPattern, string newPattern ) : string
SubstringJava ( this s, int start, int end ) : string

Provides the same functionality with the substring method of Java

ThrowIfNull ( this str ) : void

Throws an ArgumentNullException if this string is null

ThrowIfNullAny ( ) : void

Throws an ArgumentNullException if any of the objects in the specified array is null

비공개 메소드들

메소드 설명
Normalize ( this s, string>.IDictionary map ) : string

Replaces each key of the map with corresponding value

RemoveParentheses ( this str ) : string

Removes all the '(' and ')' characters in this string.

RomanNumeralToArabic ( this number ) : int

Converts number from Roman form to Arabic form

ThrowIfEmpty ( this str ) : void

Throws an ArgumentException if this string is empty

UppercaseFirst ( this str ) : string

String'in ilk harfini Turkish culture'a göre büyük harf yapar

메소드 상세

ContainsWhitespaceAny() 공개 정적인 메소드

Returns the index of firt string that contains a whitespace
public static ContainsWhitespaceAny ( ) : int
리턴 int

DeleteFirstChar() 공개 정적인 메소드

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

DeleteFirstOccurrenceOfAny() 공개 정적인 메소드

public static DeleteFirstOccurrenceOfAny ( this str, string letters ) : string
str this
letters string
리턴 string

DeleteLastChar() 공개 정적인 메소드

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

DeleteLastOccurrenceOfAny() 공개 정적인 메소드

public static DeleteLastOccurrenceOfAny ( this str, string letters ) : string
str this
letters string
리턴 string

FirstCharEqualsAny() 공개 정적인 메소드

Indicates whether the first character of this string is equal to any character in the specified string.
public static FirstCharEqualsAny ( this str, string letters ) : bool
str this
letters string
리턴 bool

FirstOccurrenceOfAny() 공개 정적인 메소드

Returns the character in the specified string that occurres first in this string. Returns null if no character in the specified string is found this string.
public static FirstOccurrenceOfAny ( this str, string letters ) : char?
str this
letters string
리턴 char?

IsEmpty() 공개 정적인 메소드

Indicates whether this string is empty. Throws an ArgumentNullException if this string is null.
public static IsEmpty ( this str ) : bool
str this
리턴 bool

LastCharEqualsAny() 공개 정적인 메소드

Indicates whether the last character of this string is equal to any character in the specified string.
public static LastCharEqualsAny ( this str, string letters ) : bool
str this
letters string
리턴 bool

LastOccurrenceOfAny() 공개 정적인 메소드

Returns the character in the specified string that occurres last in this string. Returns null if no character in the specified string is found this string.
public static LastOccurrenceOfAny ( this str, string letters ) : char?
str this
letters string
리턴 char?

PenultimateOccurrenceOfAny() 공개 정적인 메소드

Returns the character in the specified string that occurres next to last in this string. Returns null if no such character is found.
public static PenultimateOccurrenceOfAny ( this str, string letters ) : char?
str this
letters string
리턴 char?

ReplaceFirstOccurrence() 공개 정적인 메소드

public static ReplaceFirstOccurrence ( this str, string oldPattern, string newPattern ) : string
str this
oldPattern string
newPattern string
리턴 string

ReplaceLastOccurrence() 공개 정적인 메소드

public static ReplaceLastOccurrence ( this str, string oldPattern, string newPattern ) : string
str this
oldPattern string
newPattern string
리턴 string

SubstringJava() 공개 정적인 메소드

Provides the same functionality with the substring method of Java
public static SubstringJava ( this s, int start, int end ) : string
s this
start int
end int
리턴 string

ThrowIfNull() 공개 정적인 메소드

Throws an ArgumentNullException if this string is null
public static ThrowIfNull ( this str ) : void
str this
리턴 void

ThrowIfNullAny() 공개 정적인 메소드

Throws an ArgumentNullException if any of the objects in the specified array is null
public static ThrowIfNullAny ( ) : void
리턴 void