ICU-1265 change RBBI_IGNORE to UBRK_IGNORE

X-SVN-Rev: 8211
This commit is contained in:
Andy Heninger 2002-03-22 23:01:41 +00:00
parent 3013e4823a
commit 3d4d1c39ed
4 changed files with 8 additions and 8 deletions

View File

@ -368,7 +368,7 @@ DictionaryBasedBreakIterator::divideUpDictionaryRange(int32_t startPos, int32_t
text->setIndex(startPos);
UChar c = text->current();
int category = dictionaryTables->lookupCategory(c, this);
while (category == RBBI_IGNORE || !dictionaryTables->categoryFlags[category]) {
while (category == UBRK_IGNORE || !dictionaryTables->categoryFlags[category]) {
c = text->next();
category = dictionaryTables->lookupCategory(c, this);
}

View File

@ -63,7 +63,7 @@ DictionaryBasedBreakIteratorTables::lookupCategory(UChar c,
// categories represented in the dictionary. If it is, bump the dictionary-
// character count.
int32_t result = RuleBasedBreakIteratorTables::lookupCategory(c, bi);
if (result != RuleBasedBreakIterator::RBBI_IGNORE && categoryFlags[result]) {
if (result != RuleBasedBreakIterator::UBRK_IGNORE && categoryFlags[result]) {
((DictionaryBasedBreakIterator*)bi)->bumpDictionaryCharCount();
}
return result;

View File

@ -20,7 +20,7 @@ U_NAMESPACE_BEGIN
* A token used as a character-category value to identify ignore characters
*/
const int8_t
RuleBasedBreakIterator::RBBI_IGNORE = -1;
RuleBasedBreakIterator::UBRK_IGNORE = -1;
/**
* The state number of the starting state
@ -456,7 +456,7 @@ int32_t RuleBasedBreakIterator::handleNext(void) {
// if the character isn't an ignore character, look up a state
// transition in the state table
if (category != RBBI_IGNORE) {
if (category != UBRK_IGNORE) {
state = tables->lookupState(state, category);
}
@ -488,7 +488,7 @@ int32_t RuleBasedBreakIterator::handleNext(void) {
// keep track of the last "real" character we saw. If this character isn't an
// ignore character, take note of it and its position in the text
if (category != RBBI_IGNORE && state != STOP_STATE) {
if (category != UBRK_IGNORE && state != STOP_STATE) {
lastC = c;
lastCPos = text->getIndex();
}
@ -542,7 +542,7 @@ int32_t RuleBasedBreakIterator::handlePrevious(void) {
// if the current character isn't an ignore character, look up a
// state transition in the backwards state table
if (category != RBBI_IGNORE)
if (category != UBRK_IGNORE)
state = tables->lookupBackwardState(state, category);
// then advance one character backwards
@ -555,7 +555,7 @@ int32_t RuleBasedBreakIterator::handlePrevious(void) {
// that takes us into the stop state will always be the character BEFORE
// the break position.)
if (c != CharacterIterator::DONE) {
if (lastCategory != RBBI_IGNORE)
if (lastCategory != UBRK_IGNORE)
text->setIndex(text->getIndex() + 2);
else
text->next();

View File

@ -189,7 +189,7 @@ protected:
/**
* A token used as a character-category value to identify ignore characters
*/
static const int8_t RBBI_IGNORE;
static const int8_t UBRK_IGNORE;
friend class DictionaryBasedBreakIteratorTables;
private: