C# 클래스 ElizaCore.EString

Eliza string functions.
Eliza string functions.
파일 보기 프로젝트 열기: xamarin/monotouch-samples 1 사용 예제들

공개 메소드들

메소드 설명
Amatch ( string str, string pat ) : int

Look for a match between the string and the pattern.

Look for a match between the string and the pattern. Return count of maching characters before * or #. Return -1 if strings do not match.

Compress ( string s ) : string

Compresses its input by: dropping space before space, comma, and period; adding space before question, if char before is not a space; and copying all others

Count ( string s, char c ) : int

Count number of occurrances of c in str

FindNum ( string str ) : int

Look for a number in the string.

Look for a number in the string. Return the number of digits at the beginning.

FindPat ( string str, string pat ) : int

Search in successive positions of the string, looking for a match to the pattern.

Search in successive positions of the string, looking for a match to the pattern. Return the string position in str of the match, or -1 for no match.

Match ( string str, string pat, string matches ) : bool
Pad ( string s ) : string

Pad by ensuring there are spaces before and after the sentence.

Pad by ensuring there are spaces before and after the sentence.

Translate ( string str, string src, string dest ) : string
Trim ( string s ) : string

Trim off leading space

비공개 메소드들

메소드 설명
MatchA ( string str, string pat, string matches ) : bool

Match the string against a pattern and fills in matches array with the pieces that matched * and #

MatchB ( string strIn, string patIn, string matches ) : bool

메소드 상세

Amatch() 공개 정적인 메소드

Look for a match between the string and the pattern.
Look for a match between the string and the pattern. Return count of maching characters before * or #. Return -1 if strings do not match.
public static Amatch ( string str, string pat ) : int
str string
pat string
리턴 int

Compress() 공개 정적인 메소드

Compresses its input by: dropping space before space, comma, and period; adding space before question, if char before is not a space; and copying all others
public static Compress ( string s ) : string
s string
리턴 string

Count() 공개 정적인 메소드

Count number of occurrances of c in str
public static Count ( string s, char c ) : int
s string
c char
리턴 int

FindNum() 공개 정적인 메소드

Look for a number in the string.
Look for a number in the string. Return the number of digits at the beginning.
public static FindNum ( string str ) : int
str string
리턴 int

FindPat() 공개 정적인 메소드

Search in successive positions of the string, looking for a match to the pattern.
Search in successive positions of the string, looking for a match to the pattern. Return the string position in str of the match, or -1 for no match.
public static FindPat ( string str, string pat ) : int
str string
pat string
리턴 int

Match() 공개 정적인 메소드

public static Match ( string str, string pat, string matches ) : bool
str string
pat string
matches string
리턴 bool

Pad() 공개 정적인 메소드

Pad by ensuring there are spaces before and after the sentence.
Pad by ensuring there are spaces before and after the sentence.
public static Pad ( string s ) : string
s string
리턴 string

Translate() 공개 정적인 메소드

public static Translate ( string str, string src, string dest ) : string
str string
src string
dest string
리턴 string

Trim() 공개 정적인 메소드

Trim off leading space
public static Trim ( string s ) : string
s string
리턴 string