Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Unified Diff: source/i18n/brktrans.h

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/i18n/alphaindex.cpp ('k') | source/i18n/brktrans.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/i18n/brktrans.h
diff --git a/source/i18n/brktrans.h b/source/i18n/brktrans.h
index 00701181d365fb938bbe27972f068e15310ef055..48f83de886901be530864b828012ebc54fe25a9c 100644
--- a/source/i18n/brktrans.h
+++ b/source/i18n/brktrans.h
@@ -1,6 +1,6 @@
/*
**********************************************************************
-* Copyright (C) 2008-2009, International Business Machines
+* Copyright (C) 2008-2015, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Date Name Description
@@ -16,6 +16,8 @@
#include "unicode/translit.h"
+#include "unicode/localpointer.h"
+
U_NAMESPACE_BEGIN
@@ -30,10 +32,6 @@ class UVector32;
class BreakTransliterator : public Transliterator {
public:
- BreakTransliterator(const UnicodeString &ID,
- UnicodeFilter *adoptedFilter,
- BreakIterator *bi,
- const UnicodeString &insertion);
/**
* Constructs a transliterator.
* @param adoptedFilter the filter for this transliterator.
@@ -61,14 +59,6 @@ public:
virtual void setInsertion(const UnicodeString &insertion);
/**
- * Return the break iterator used by this transliterator.
- * Caution, this is the live break iterator; it must not be used while
- * there is any possibility that this transliterator is using it.
- */
- virtual BreakIterator *getBreakIterator();
-
-
- /**
* ICU "poor man's RTTI", returns a UClassID for the actual class.
*/
virtual UClassID getDynamicClassID() const;
@@ -93,10 +83,9 @@ public:
UBool isIncremental) const;
private:
- BreakIterator *bi;
- UnicodeString fInsertion;
- UVector32 *boundaries;
- UnicodeString sText; // text from handleTransliterate().
+ LocalPointer<BreakIterator> cachedBI;
+ LocalPointer<UVector32> cachedBoundaries;
+ UnicodeString fInsertion;
static UnicodeString replaceableAsString(Replaceable &r);
« no previous file with comments | « source/i18n/alphaindex.cpp ('k') | source/i18n/brktrans.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698