mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 09:45:26 +00:00
ICU-9954 RBBI, conditionalize debug printfs.
X-SVN-Rev: 40580
This commit is contained in:
parent
82081f352c
commit
24297c1601
1 changed files with 4 additions and 2 deletions
|
@ -610,13 +610,15 @@ bool RuleBasedBreakIterator::BreakCache::addPreceding(int32_t position, int32_t
|
|||
|
||||
|
||||
void RuleBasedBreakIterator::BreakCache::dumpCache() {
|
||||
printf("fTextIdx:%d fBufIdx:%d\n", fTextIdx, fBufIdx);
|
||||
#ifdef RBBI_DEBUG
|
||||
RBBIDebugPrintf("fTextIdx:%d fBufIdx:%d\n", fTextIdx, fBufIdx);
|
||||
for (int32_t i=fStartBufIdx; ; i=modChunkSize(i+1)) {
|
||||
printf("%d %d\n", i, fBoundaries[i]);
|
||||
RBBIDebugPrintf("%d %d\n", i, fBoundaries[i]);
|
||||
if (i == fEndBufIdx) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
U_NAMESPACE_END
|
||||
|
|
Loading…
Add table
Reference in a new issue