From a34a8fca21c670c4e7ee147d05ed9e6e4136cbe1 Mon Sep 17 00:00:00 2001 From: "Matthew J. Francis" Date: Wed, 10 Sep 2014 17:34:01 +0800 Subject: fdo#81272 Speed up break iterators MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Idcd7de83ff7e551b350db0bf80e2ac78baa67686 Reviewed-on: https://gerrit.libreoffice.org/11374 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- i18npool/inc/xdictionary.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'i18npool/inc') 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); -- cgit