Method | Description | |
---|---|---|
CountChar ( string str, char c ) : int | ||
Decode ( byte src, int offset, int length, string charset ) : string | ||
Decode ( byte src, string charset ) : string | ||
DumpAsHex ( byte src, int length ) : string | ||
Encode ( string src, string charset ) : byte[] | ||
EqualsIgnoreCase ( string str1, string str2 ) : bool | ||
GetRandomString ( int size ) : string | ||
Hash ( string s, int start, int end ) : long |
×Ö·û´®hashËã·¨£ºs[0]*31^(n-1) + s[1]*31^(n-2) + ... ×Ö·û´®hashËã·¨£ºs[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] |
|
HexString2Bytes ( char hexString, int offset, int length ) : byte[] | ||
IsEmpty ( string str ) : bool | ||
Replace ( string text, string repl, string with ) : string | ||
Replace ( string text, string repl, string with, int max ) : string | ||
ReplaceChars ( string str, char searchChar, char replaceChar ) : string | ||
ReplaceChars ( string str, string searchChars, string replaceChars ) : string | ||
ReplaceOnce ( string text, string repl, string with ) : string | ||
SafeToString ( object @object ) : string | ||
ToString ( byte bytes ) : string |
public static CountChar ( string str, char c ) : int | ||
str | string | |
c | char | |
return | int |
public static Decode ( byte src, int offset, int length, string charset ) : string | ||
src | byte | |
offset | int | |
length | int | |
charset | string | |
return | string |
public static Decode ( byte src, string charset ) : string | ||
src | byte | |
charset | string | |
return | string |
public static DumpAsHex ( byte src, int length ) : string | ||
src | byte | |
length | int | |
return | string |
public static Encode ( string src, string charset ) : byte[] | ||
src | string | |
charset | string | |
return | byte[] |
public static EqualsIgnoreCase ( string str1, string str2 ) : bool | ||
str1 | string | |
str2 | string | |
return | bool |
public static GetRandomString ( int size ) : string | ||
size | int | |
return | string |
public static Hash ( string s, int start, int end ) : long | ||
s | string | |
start | int | hash for s.substring(start, end) |
end | int | hash for s.substring(start, end) |
return | long |
public static HexString2Bytes ( char hexString, int offset, int length ) : byte[] | ||
hexString | char | |
offset | int | |
length | int | |
return | byte[] |
public static Replace ( string text, string repl, string with ) : string | ||
text | string | |
repl | string | |
with | string | |
return | string |
public static Replace ( string text, string repl, string with, int max ) : string | ||
text | string | |
repl | string | |
with | string | |
max | int | |
return | string |
public static ReplaceChars ( string str, char searchChar, char replaceChar ) : string | ||
str | string | |
searchChar | char | |
replaceChar | char | |
return | string |
public static ReplaceChars ( string str, string searchChars, string replaceChars ) : string | ||
str | string | |
searchChars | string | |
replaceChars | string | |
return | string |
public static ReplaceOnce ( string text, string repl, string with ) : string | ||
text | string | |
repl | string | |
with | string | |
return | string |
public static SafeToString ( object @object ) : string | ||
@object | object | |
return | string |
public static ToString ( byte bytes ) : string | ||
bytes | byte | |
return | string |