C# 클래스 eoschat.StringExtensions

string 拡張
파일 보기 프로젝트 열기: okamototomoyuki/unity_eos_chat

공개 메소드들

메소드 설명
IsMatch ( string s, string regex ) : bool

正規表現にマッチしたか

IsNullOrEmpty ( string s ) : bool

空か?

NotEmpty ( string s ) : bool

空ではないか?

NullToEmp ( string s ) : string

Null なら空文字

ReplaceAll ( string s, string regex, string replace ) : string

正規表現で置換

ToByte ( string s, byte error ) : byte

int に変換

ToInt ( string s, int error = -1 ) : int

int に変換

ToLong ( string s, long error = -1 ) : long

long に変換

메소드 상세

IsMatch() 공개 정적인 메소드

正規表現にマッチしたか
public static IsMatch ( string s, string regex ) : bool
s string 文字列
regex string 正規表現
리턴 bool

IsNullOrEmpty() 공개 정적인 메소드

空か?
public static IsNullOrEmpty ( string s ) : bool
s string 文字列
리턴 bool

NotEmpty() 공개 정적인 메소드

空ではないか?
public static NotEmpty ( string s ) : bool
s string 文字列
리턴 bool

NullToEmp() 공개 정적인 메소드

Null なら空文字
public static NullToEmp ( string s ) : string
s string 文字列
리턴 string

ReplaceAll() 공개 정적인 메소드

正規表現で置換
public static ReplaceAll ( string s, string regex, string replace ) : string
s string 文字列
regex string 正規表現
replace string 置換文字列
리턴 string

ToByte() 공개 정적인 메소드

int に変換
public static ToByte ( string s, byte error ) : byte
s string 文字列
error byte 変換失敗時の値
리턴 byte

ToInt() 공개 정적인 메소드

int に変換
public static ToInt ( string s, int error = -1 ) : int
s string 文字列
error int 変換失敗時の値
리턴 int

ToLong() 공개 정적인 메소드

long に変換
public static ToLong ( string s, long error = -1 ) : long
s string 文字列
error long 変換失敗時の値
리턴 long