summaryrefslogtreecommitdiffstats
path: root/i18npool/inc
diff options
context:
space:
mode:
authorMatthew J. Francis <mjay.francis@gmail.com>2014-09-11 00:42:49 +0800
committerCaolán McNamara <caolanm@redhat.com>2014-09-10 20:02:04 +0000
commit44ead04eb5fc61a3f56f783adb1509fab440e212 (patch)
tree3b24fc52d98f5969ff77dd43ac1463d606404664 /i18npool/inc
parentInvalidate rect cache before moving object (diff)
downloadcore-44ead04eb5fc61a3f56f783adb1509fab440e212.tar.gz
core-44ead04eb5fc61a3f56f783adb1509fab440e212.zip
fdo#81272 Speed up break iterators
Change-Id: I7a45a61465f71a1cc6f583b9ffc68157d19e51fa Reviewed-on: https://gerrit.libreoffice.org/11386 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'i18npool/inc')
-rw-r--r--i18npool/inc/xdictionary.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/i18npool/inc/xdictionary.hxx b/i18npool/inc/xdictionary.hxx
index 57f5238ac853..f7c0110d39fd 100644
--- a/i18npool/inc/xdictionary.hxx
+++ b/i18npool/inc/xdictionary.hxx
@@ -76,6 +76,8 @@ public:
private:
WordBreakCache cache[CACHE_MAX];
+ OUString segmentCachedString;
+ Boundary segmentCachedBoundary;
bool seekSegment(const OUString& rText, sal_Int32 pos, Boundary& boundary);
WordBreakCache& getCache(const sal_Unicode *text, Boundary& boundary);