diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-05-01 16:06:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-05-01 16:27:17 +0100 |
commit | fd4fe85329654883a0bf3304ad0aa8ef0bfde844 (patch) | |
tree | a24ba18cb3ef5e29bbbbf64acc36ae2108d28c59 /sw/inc/breakit.hxx | |
parent | 268ec2e64f89eb39fd5f02688787cd6f53e948b5 (diff) |
Related: fdo#49208 don't copy string if we can reuse the original
Change-Id: I95d82ce168fd1790107316460f6ddbd9f6b32e18
Diffstat (limited to 'sw/inc/breakit.hxx')
-rw-r--r-- | sw/inc/breakit.hxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sw/inc/breakit.hxx b/sw/inc/breakit.hxx index 5fa2bd5c3ac5..031d91cefddd 100644 --- a/sw/inc/breakit.hxx +++ b/sw/inc/breakit.hxx @@ -96,7 +96,12 @@ public: sal_uInt16 GetRealScriptOfText( const rtl::OUString& rTxt, sal_Int32 nPos ) const; sal_uInt16 GetAllScriptsOfText( const rtl::OUString& rTxt ) const; - sal_Int32 getGraphemeCount(const rtl::OUString& rStr) const; + sal_Int32 getGraphemeCount(const rtl::OUString& rStr, + sal_Int32 nStart, sal_Int32 nEnd) const; + sal_Int32 getGraphemeCount(const rtl::OUString& rStr) const + { + return getGraphemeCount(rStr, 0, rStr.getLength()); + } }; #define SW_BREAKITER() SwBreakIt::Get() |