String s= "$2.00";
S.replace ("$", "");
S.trim ();
System.text.encoding.default.getbytecount (Fox); Get string length, one character equals two characters
Acquiring the location code of Chinese characters
byte[] array = new BYTE[2];
Array = system.text.encoding.default.getbytes ("Ah");
int i1 = (short) (array[0]-');
int i2 = (short) (array[1]-');
Chinese character code under the Unicode decoding method
Array = system.text.encoding.unicode.getbytes ("Ah");
I1 = (short) (array[0]-');
I2 = (short) (array[1]-');
Unicode reverse decoding to Chinese characters
String str = "4a55";
string S1 = str.substring (0,2);
String s2 = str.substring (2,2);
int T1 = Convert.ToInt32 (s1,16);
int t2 = Convert.ToInt32 (s2,16);
Array[0] = (byte) t1;
ARRAY[1] = (byte) t2;
string s = system.text.encoding.unicode.getstring (array);
Default mode reverse decoding for Chinese characters
Array[0] = (byte) 196;
ARRAY[1] = (byte) 207;
s = system.text.encoding.default.getstring (array);
String Fox;
Fox.tolower () into lowercase letters
Fox.toupper () into uppercase letters
Fox.trim () Delete before and after spaces
Fox.trim (trimchars) Delete other characters
Fox.trimstart () Remove before space
Fox.trimend () Delete space after
Fox.padleft (10) adds the left space so that the string reaches a certain length.
Fox.padright (10) adds the right space so that the string reaches a certain length.
FOX.PADX (10, '-') adds additional characters so that the string reaches a certain length. X means: Left/right
Fox.split (") decomposes strings into groups