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: