///
/// Chinese character turning pinyin ablation
/// code by
Musestudio@hotmail.com
/// 2004-11-30
/// summary>
/// Chinese characters to be converted param>
///
Public String getPystring (String STR)
{
String tempstr = ""
Foreach (Char C in Str)
{
IF ((int) c> = 33 && (int) c <= 126)
{// letter and symbols are reserved
Tempstr = c.toString ();
}
Else
{// accumulated pinyery
Tempstr = getpychar (c.toString ());
}
}
Return Tempstr;
}
///
/// Take a single character's pinyin
/// code by
Musestudio@hotmail.com
/// 2004-11-30
/// summary>
/// Single Chinese character to be converted param>
///
Public string getpychar (String C)
{
Byte [] array = new byte [2];
Array = system.text.Encoding.default.getbytes (c);
INT i = (SHORT) (Array [0] - '/ 0') * 256 ((short) (Array [1] - '/ 0');
IF (i <0xB0A1) Return "*"; if (i <0xB0C5) Return "a"; if (i <0xB2C1) Return "B"; if (i <0xB4ee) Return "C"; IF (i <0xB6ea) Return "D"; IF (i <0xB7A2) Return "E"; if (i <0xB8C1) Return "F"; if (i <0xB9fe) Return "G"; if (i <0xbbf7) return "h"; if (i <0xBFA6) Return "G"; if (i <0xc0ac) Return "K"; if (i <0xc2e8) Return "L"; if (i <0xc4c3) return "m"; if (i <0xc5b6) Return "n"; if (i <0xc5be) return "O"; if (i <0xc6da) return "p"; if (i <0xc8bb) return "q"; if (i <0xc8f6) return "r"; IF ( I <0XCBFA) Return "S"; if (i <0xcdda) Return "T"; if (i <0xCEF4) Return "W"; if (i <0xD1b9) return "x"; if (i <0xd4d1) return y "; if (i <0xD7fa) return" z "; return" * ";