diff options
author | Matthew J. Francis <mjay.francis@gmail.com> | 2014-09-11 00:42:49 +0800 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-10 20:02:04 +0000 |
commit | 44ead04eb5fc61a3f56f783adb1509fab440e212 (patch) | |
tree | 3b24fc52d98f5969ff77dd43ac1463d606404664 /i18npool/inc | |
parent | 5dc8691e0909654c68eb0dcbc6d787701d02839b (diff) |
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.hxx | 2 |
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); |