diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-03 11:00:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-03 12:18:17 +0000 |
commit | 12db5315fca413ae66e88c4cd8212ee3b01667b7 (patch) | |
tree | 2e8abe3a62ee41a39b3a7aeaf261923f02bc41f6 /sw/inc/breakit.hxx | |
parent | 56d5a48099165dabb72eb3a2655c2eb503684f1c (diff) |
Follow UAX-29 and present user-perceived character counts
Not a count of code-units, nor a count of code-points, but try and follow
http://unicode.org/reports/tr29/ and present the grapheme count.
Add a few representative tests to try and avoid gotchas.
Diffstat (limited to 'sw/inc/breakit.hxx')
-rw-r--r-- | sw/inc/breakit.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/inc/breakit.hxx b/sw/inc/breakit.hxx index ae05468aa16b..3075fc9dfe63 100644 --- a/sw/inc/breakit.hxx +++ b/sw/inc/breakit.hxx @@ -110,7 +110,9 @@ public: } sal_uInt16 GetRealScriptOfText( const String& rTxt, xub_StrLen nPos ) const; - sal_uInt16 GetAllScriptsOfText( const String& rTxt ) const; + sal_uInt16 GetAllScriptsOfText( const String& rTxt ) const; + + sal_Int32 getGraphemeCount(const rtl::OUString& rStr) const; }; #define SW_BREAKITER() SwBreakIt::Get() |