Tianchi  v0.0.2 build 20130701
C++ library for Qt with VC & mingW
tcchinese.h
1 // **************************************************************************
2 // Tianchi share library for Qt (C++)
3 // 天池共享源码库
4 // 版权所有 (C) 天池共享源码库开发组
5 // 授权协议:请阅读天池共享源码库附带的授权协议
6 // **************************************************************************
7 // 文档说明: 汉语相关处理
8 // ==========================================================================
9 // 开发日志:
10 // 日期 人员 说明
11 // --------------------------------------------------------------------------
12 // 2013.04.15 圣域天子 建立
13 //
14 // ==========================================================================
16 #ifndef TIANCHI_TCCHINESE_H
17 #define TIANCHI_TCCHINESE_H
18 
19 #include <tianchi/tcglobal.h>
20 
21 #include <QString>
22 
25 class TIANCHI_API TcChinese
26 {
27 public:
40  static QString firstPinyins(const QString& HzString);
41 
60  static QString toPinyin(const QString& Str, bool Tonality=false);
61 
75  static QString toChars(const QString& Str, bool Tonality=false);
76 };
77 
78 #endif // TIANCHI_CHINESE_H