summaryrefslogtreecommitdiffstats
path: root/i18npool/inc
diff options
context:
space:
mode:
authorMatthew J. Francis <mjay.francis@gmail.com>2014-09-10 17:34:01 +0800
committerCaolán McNamara <caolanm@redhat.com>2014-09-10 14:10:16 +0000
commita34a8fca21c670c4e7ee147d05ed9e6e4136cbe1 (patch)
tree8f62e7d0bc0fc76261067d5156eb96796e2494b4 /i18npool/inc
parentclip PolyPolygon::Insert on .svm load (diff)
downloadcore-a34a8fca21c670c4e7ee147d05ed9e6e4136cbe1.tar.gz
core-a34a8fca21c670c4e7ee147d05ed9e6e4136cbe1.zip
fdo#81272 Speed up break iterators
Change-Id: Idcd7de83ff7e551b350db0bf80e2ac78baa67686 Reviewed-on: https://gerrit.libreoffice.org/11374 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);