C# Class Tup.Cobar4Net.Util.SplitUtil

Exibir arquivo Open project: tupunco/Tup.Cobar4Net

Public Methods

Method Description
Split ( string src ) : string[]
Split ( string src, char separatorChar ) : string[]
Split ( string src, char separatorChar, bool trim ) : string[]
Split ( string src, char fi, char se, char th ) : string[]
Split ( string src, char c1, char c2, char c3, char c4 ) : string[]

½âÎö×Ö·û´®£¬±ÈÈç:
1.

½âÎö×Ö·û´®£¬±ÈÈç:
1. c1='$',c2='-',c3='[',c4=']' ÊäÈë×Ö·û´®£ºmysql_db$0-2
Êä³ömysql_db[0],mysql_db[1],mysql_db[2]
2. c1='$',c2='-',c3='#',c4='0' ÊäÈë×Ö·û´®£ºmysql_db$0-2
Êä³ömysql_db#0,mysql_db#1,mysql_db#2
3. c1='$',c2='-',c3='0',c4='0' ÊäÈë×Ö·û´®£ºmysql_db$0-2
Êä³ömysql_db0,mysql_db1,mysql_db2

Split ( string src, char fi, char se, char th, char left, char right ) : string[]
Split ( string str, string separatorChars ) : string[]
Split ( string src, string separatorChars, int max ) : string[]
Split2 ( string src, char c1, char c2 ) : string[]

½âÎö×Ö·û´®
±ÈÈç:c1='$',c2='-' ÊäÈë×Ö·û´®£ºmysql_db$0-2
Êä³öarray:mysql_db[0],mysql_db[1],mysql_db[2]

Method Details

Split() public static method

public static Split ( string src ) : string[]
src string
return string[]

Split() public static method

public static Split ( string src, char separatorChar ) : string[]
src string
separatorChar char
return string[]

Split() public static method

public static Split ( string src, char separatorChar, bool trim ) : string[]
src string
separatorChar char
trim bool
return string[]

Split() public static method

public static Split ( string src, char fi, char se, char th ) : string[]
src string
fi char
se char
th char
return string[]

Split() public static method

½âÎö×Ö·û´®£¬±ÈÈç:
1.
½âÎö×Ö·û´®£¬±ÈÈç:
1. c1='$',c2='-',c3='[',c4=']' ÊäÈë×Ö·û´®£ºmysql_db$0-2
Êä³ömysql_db[0],mysql_db[1],mysql_db[2]
2. c1='$',c2='-',c3='#',c4='0' ÊäÈë×Ö·û´®£ºmysql_db$0-2
Êä³ömysql_db#0,mysql_db#1,mysql_db#2
3. c1='$',c2='-',c3='0',c4='0' ÊäÈë×Ö·û´®£ºmysql_db$0-2
Êä³ömysql_db0,mysql_db1,mysql_db2
public static Split ( string src, char c1, char c2, char c3, char c4 ) : string[]
src string
c1 char
c2 char
c3 char
c4 char
return string[]

Split() public static method

public static Split ( string src, char fi, char se, char th, char left, char right ) : string[]
src string
fi char
se char
th char
left char
right char
return string[]

Split() public static method

public static Split ( string str, string separatorChars ) : string[]
str string
separatorChars string
return string[]

Split() public static method

public static Split ( string src, string separatorChars, int max ) : string[]
src string
separatorChars string
max int
return string[]

Split2() public static method

½âÎö×Ö·û´®
±ÈÈç:c1='$',c2='-' ÊäÈë×Ö·û´®£ºmysql_db$0-2
Êä³öarray:mysql_db[0],mysql_db[1],mysql_db[2]
public static Split2 ( string src, char c1, char c2 ) : string[]
src string
c1 char
c2 char
return string[]