private static String replaceOf2Char(String s, boolean replace2null) {
        StringBuffer sBuffer = new StringBuffer();
        int length = s.length();
        int i = 0;
        while (i < length) {
            char c1 = s.charAt(i);
            if (charMaps.containsKey(c1)) {
                CharData charData = charMaps.get(c1);
                if (charData.cn != null) {
                    if (!replace2null) {
                        sBuffer.append(charData.cn);
                    }
                } else {//双char
                    if ((i + 1) < length) {
                        char c2 = s.charAt(i + 1);
                        if (charData.containsKey(c2)) {
                            if (!replace2null) {
                                String cn = charData.get(c2);
                                sBuffer.append(cn);
                            }
                            i = i + 1;
                        } else {
                            sBuffer.append(c1);
                        }
                    } else {
                        sBuffer.append(c1);
                    }
                }
            } else {
                sBuffer.append(c1);
            }
            i = i + 1;
        }
        return sBuffer.toString();
    }