summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu/icu-src/source/common/rbbi.cpp
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-05-31 01:17:15 +0000
committerKarl Berry <karl@freefriends.org>2022-05-31 01:17:15 +0000
commit4066e47693c667d91051785d7bbe909d30a8b09c (patch)
treebe535ccab8551ddc1ab65d86e7007bc404573687 /Build/source/libs/icu/icu-src/source/common/rbbi.cpp
parent76b41dbf2d1a8bf3f9563393f8c7570b105405f9 (diff)
icu 71.1
git-svn-id: svn://tug.org/texlive/trunk@63452 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu/icu-src/source/common/rbbi.cpp')
-rw-r--r--Build/source/libs/icu/icu-src/source/common/rbbi.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/libs/icu/icu-src/source/common/rbbi.cpp b/Build/source/libs/icu/icu-src/source/common/rbbi.cpp
index f65177f2323..cae8d154b30 100644
--- a/Build/source/libs/icu/icu-src/source/common/rbbi.cpp
+++ b/Build/source/libs/icu/icu-src/source/common/rbbi.cpp
@@ -82,6 +82,19 @@ RuleBasedBreakIterator::RuleBasedBreakIterator(RBBIDataHeader* data, UErrorCode
}
}
+//-------------------------------------------------------------------------------
+//
+// Constructor from a UDataMemory handle to precompiled break rules
+// stored in an ICU data file. This construcotr is private API,
+// only for internal use.
+//
+//-------------------------------------------------------------------------------
+RuleBasedBreakIterator::RuleBasedBreakIterator(UDataMemory* udm, UBool isPhraseBreaking,
+ UErrorCode &status) : RuleBasedBreakIterator(udm, status)
+{
+ fIsPhraseBreaking = isPhraseBreaking;
+}
+
//
// Construct from precompiled binary rules (tables). This constructor is public API,
// taking the rules as a (const uint8_t *) to match the type produced by getBinaryRules().
@@ -322,6 +335,7 @@ void RuleBasedBreakIterator::init(UErrorCode &status) {
fBreakCache = nullptr;
fDictionaryCache = nullptr;
fLookAheadMatches = nullptr;
+ fIsPhraseBreaking = false;
// Note: IBM xlC is unable to assign or initialize member fText from UTEXT_INITIALIZER.
// fText = UTEXT_INITIALIZER;