projects
/
icu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82081f3
)
ICU-9954 RBBI, conditionalize debug printfs.
author
Andy Heninger
<andy.heninger@gmail.com>
Fri, 6 Oct 2017 00:19:27 +0000
(
00:19
+0000)
committer
Andy Heninger
<andy.heninger@gmail.com>
Fri, 6 Oct 2017 00:19:27 +0000
(
00:19
+0000)
X-SVN-Rev: 40580
icu4c/source/common/rbbi_cache.cpp
patch
|
blob
|
history
diff --git
a/icu4c/source/common/rbbi_cache.cpp
b/icu4c/source/common/rbbi_cache.cpp
index 0a1e1a7151fb946f56da1d136793cb298f7c2b6e..4bf68fe1ad3a3e1fb0275db33b30667bcd2a9424 100644
(file)
--- a/
icu4c/source/common/rbbi_cache.cpp
+++ b/
icu4c/source/common/rbbi_cache.cpp
@@
-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)) {
-
p
rintf("%d %d\n", i, fBoundaries[i]);
+
RBBIDebugP
rintf("%d %d\n", i, fBoundaries[i]);
if (i == fEndBufIdx) {
break;
}
}
+#endif
}
U_NAMESPACE_END