Converting our Chinese characters into methods for keywords in pinyin

zhaozj2021-02-16  127

For example: transforming "our motherland is a garden" becomes "wmdzgshy"

Ansistring chinese {ANSISTRING TCHINESE, RESULT = ""; tchinese = trim (Chinese); Ansistring Temp = ""; char * ccp = new char [chinese.length () 1]; strcpy (CCP, Tchinese) C_STR ()); for (int i = 0; i <= tchinese.length (); i ) {IF ((Word (Word (Word (Word (CCP [I]) << 8) >> 8)> 128) // Judgment Is it Chinese character temp = Temp CCP [i ] CCP [i];} char * cp = new char [Temp.Length () 1]; strcpy (CP, Temp.c_str ()); for (int m = 0; m = 2) {INT K; k = (Word (Word (CP [M]) << 8)) (Word (Word (CP [M 1]) < <8) >> 8); if (k> = 0xB0A1 && k <= 0xB0C4) Result = "a"; if (k> = 0xB0C5 && k <= 0xB2C0) Result = "b"; if (k> = 0xB2c1 && k <= 0xb4ed) Result = "c"; if (k> = 0xB4ee && k <= 0xB6e9) Result = "d"; if (k> = 0xB6EA && K <= 0xB7A1) Result = "e"; if (k> = 0xB7A2 && k <= 0xB8c0) Result = "f"; if (k> = 0xB8c1 && k <= 0xB9FD) Result = "g"; if (k> = 0xB9FE && k <= 0xbbf6) Result = "h"; if (k> = 0xbbf7 && k <= 0xbfa5) Result = "j"; if (k> = 0xbfa6 && k <= 0xc0ab) Result = "k"; if (k> = 0xc0ac && k <= 0xc2e7) Result = "L"; if (k> = 0xc2e8 && k <=

0xc4c2) Result = "m"; if (k> = 0xc4c3 && k <= 0xc5b5) Result = "n"; if (k> = 0xc5b6 && k <= 0xc5bd) Result = "o"; if (k> = 0xc5be && k <= 0xc6d9) Result = "p"; if (k> = 0xc6da && k <= 0xc8ba) Result = "q"; if (k> = 0xc8bb && k <= 0xc8f5) Result = "r"; if (k> = 0xc8f6 && k <= 0xcbf9) Result = "s"; if (k> = 0xcbfa && k <= 0xcdd9) Result = "t"; if (k> = 0xcdda && k <= 0xcef3) Result = "w"; if (k> = 0xcef4 && k <= 0xD1b8) Result = "x "; If (k> = 0xD1b9 && k <= 0xd4d0) Result =" y "; if (k> = 0xD4d1 && k <= 0xD7f9) Result =" z ";} return result;}

转载请注明原文地址:https://www.9cbs.com/read-8508.html

New Post(0)