ICU-13194 RBBI safe table, fix C++ typos found during Java port.

X-SVN-Rev: 41173
This commit is contained in:
Andy Heninger 2018-03-30 01:14:59 +00:00
parent 3180a6400e
commit 05f261001b
2 changed files with 4 additions and 4 deletions

View File

@ -57,8 +57,8 @@ RBBITableBuilder::~RBBITableBuilder() {
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// //
// RBBITableBuilder::build - This is the main function for building the DFA state transtion // RBBITableBuilder::buildForwardTable - This is the main function for building
// table from the RBBI rules parse tree. // the DFA state transition table from the RBBI rules parse tree.
// //
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void RBBITableBuilder::buildForwardTable() { 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 fSafeTable->removeElementAt(duplState); // Note that fSafeTable has a deleter function
// and will auto-delete the removed element. // and will auto-delete the removed element.
int32_t numStates = fSafeTable->size(); int32_t numStates = fSafeTable->size();
int32_t numCols = fRB->fSetBuilder->getNumCharCategories();
for (int32_t state=0; state<numStates; ++state) { for (int32_t state=0; state<numStates; ++state) {
UnicodeString *sd = (UnicodeString *)fSafeTable->elementAt(state); UnicodeString *sd = (UnicodeString *)fSafeTable->elementAt(state);
int32_t numCols = sd->length();
for (int32_t col=0; col<numCols; col++) { for (int32_t col=0; col<numCols; col++) {
int32_t existingVal = sd->charAt(col); int32_t existingVal = sd->charAt(col);
int32_t newVal = existingVal; int32_t newVal = existingVal;

View File

@ -145,7 +145,7 @@ public:
#define printPosSets(n) #define printPosSets(n)
#define printStates() #define printStates()
#define printRuleStatusTable() #define printRuleStatusTable()
#define printSafeTable() #define printReverseTable()
#endif #endif
private: private: