public static String toPinyin(char c){
  if (isChinese(c)) {
    if (c == PinyinData.CHAR_12295) {
      return PinyinData.PINYIN_12295;
    }
 else {
      return PinyinData.PINYIN_TABLE[getPinyinCode(c)];
    }
  }
 else {
    return String.valueOf(c);
  }
}

public static String toPinyin ( char c ) { if ( isChinese ( c ) ) { if ( c == PinyinData . CHAR_12295 ) { return PinyinData . PINYIN_12295 ; } else { return PinyinData . PINYIN_TABLE [ getPinyinCode ( c ) ] ; } } else { return String . valueOf ( c ) ; } }
return pinyin if c is chinese in uppercase , string . valueof ( c ) otherwise .
