diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2012-05-09 16:44:36 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-10 11:34:25 +0200 |
commit | 8c0048a377568b646b3b87be0b02322fce68b780 (patch) | |
tree | 575e79f7191060be29ba17989bc9676b272e3370 /src/corelib/tools/qunicodetables.cpp | |
parent | 2d23374a6f88bac2f5f2d7f0528e9e554b4a4cbb (diff) |
add some useful methods to QUnicodeTables::
in order to reduce code duplication and prepare the ground for upcoming changes
Change-Id: I980244149f65384c9484bbec4682de8b7b848b08
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/corelib/tools/qunicodetables.cpp')
-rw-r--r-- | src/corelib/tools/qunicodetables.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/corelib/tools/qunicodetables.cpp b/src/corelib/tools/qunicodetables.cpp index 04031251e4..9a2a36cd49 100644 --- a/src/corelib/tools/qunicodetables.cpp +++ b/src/corelib/tools/qunicodetables.cpp @@ -4348,6 +4348,21 @@ Q_CORE_EXPORT const Properties * QT_FASTCALL properties(ushort ucs2) return qGetProp(ucs2); } +Q_CORE_EXPORT GraphemeBreak QT_FASTCALL graphemeBreakClass(uint ucs4) +{ + return (GraphemeBreak)qGetProp(ucs4)->graphemeBreak; +} + +Q_CORE_EXPORT WordBreak QT_FASTCALL wordBreakClass(uint ucs4) +{ + return (WordBreak)qGetProp(ucs4)->wordBreak; +} + +Q_CORE_EXPORT SentenceBreak QT_FASTCALL sentenceBreakClass(uint ucs4) +{ + return (SentenceBreak)qGetProp(ucs4)->sentenceBreak; +} + Q_CORE_EXPORT LineBreakClass QT_FASTCALL lineBreakClass(uint ucs4) { return (LineBreakClass)qGetProp(ucs4)->line_break_class; |