com.luhuiguo.chinese.ChineseUtils Java Examples

The following examples show how to use com.luhuiguo.chinese.ChineseUtils. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ChapterContentHelp.java    From a with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 转繁体
 */
private String toTraditional(String content) {
    int convertCTS = ReadBookControl.getInstance().getTextConvert();
    switch (convertCTS) {
        case 0:
            break;
        case 1:
            content = ChineseUtils.toSimplified(content);
            break;
        case 2:
            content = ChineseUtils.toTraditional(content);
            break;
    }
    return content;
}
 
Example #2
Source File: ChapterContentHelp.java    From MyBookshelf with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 转繁体
 */
private String toTraditional(String content) {
    int convertCTS = ReadBookControl.getInstance().getTextConvert();
    switch (convertCTS) {
        case 0:
            break;
        case 1:
            content = ChineseUtils.toSimplified(content);
            break;
        case 2:
            content = ChineseUtils.toTraditional(content);
            break;
    }
    return content;
}
 
Example #3
Source File: ChapterContentHelp.java    From HaoReader with GNU General Public License v3.0 5 votes vote down vote up
/**
 * 转繁体
 */
private static String toTraditional(String content) {
    int convert = ReadBookControl.getInstance().getTextConvert();
    switch (convert) {
        case 0:
            break;
        case 1:
            content = ChineseUtils.toSimplified(content);
            break;
        case 2:
            content = ChineseUtils.toTraditional(content);
            break;
    }
    return content;
}