From 05f261001b675087f3757a5f0a2d76c39cc06a2d Mon Sep 17 00:00:00 2001 From: Andy Heninger Date: Fri, 30 Mar 2018 01:14:59 +0000 Subject: [PATCH] ICU-13194 RBBI safe table, fix C++ typos found during Java port. X-SVN-Rev: 41173 --- icu4c/source/common/rbbitblb.cpp | 6 +++--- icu4c/source/common/rbbitblb.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/icu4c/source/common/rbbitblb.cpp b/icu4c/source/common/rbbitblb.cpp index 2a2e7132bc9..beb4dc58423 100644 --- a/icu4c/source/common/rbbitblb.cpp +++ b/icu4c/source/common/rbbitblb.cpp @@ -57,8 +57,8 @@ RBBITableBuilder::~RBBITableBuilder() { //----------------------------------------------------------------------------- // -// RBBITableBuilder::build - This is the main function for building the DFA state transtion -// table from the RBBI rules parse tree. +// RBBITableBuilder::buildForwardTable - This is the main function for building +// the DFA state transition table from the RBBI rules parse tree. // //----------------------------------------------------------------------------- void RBBITableBuilder::buildForwardTable() { @@ -1221,9 +1221,9 @@ void RBBITableBuilder::removeSafeState(int32_t keepState, int32_t duplState) { fSafeTable->removeElementAt(duplState); // Note that fSafeTable has a deleter function // and will auto-delete the removed element. int32_t numStates = fSafeTable->size(); - int32_t numCols = fRB->fSetBuilder->getNumCharCategories(); for (int32_t state=0; stateelementAt(state); + int32_t numCols = sd->length(); for (int32_t col=0; colcharAt(col); int32_t newVal = existingVal; diff --git a/icu4c/source/common/rbbitblb.h b/icu4c/source/common/rbbitblb.h index 9ab1942fb30..0a0326ae32f 100644 --- a/icu4c/source/common/rbbitblb.h +++ b/icu4c/source/common/rbbitblb.h @@ -145,7 +145,7 @@ public: #define printPosSets(n) #define printStates() #define printRuleStatusTable() - #define printSafeTable() + #define printReverseTable() #endif private: -- 2.40.0