| OLD | NEW |
| 1 // | 1 // |
| 2 // file: rbbistbl.cpp Implementation of the ICU RBBISymbolTable class | 2 // file: rbbistbl.cpp Implementation of the ICU RBBISymbolTable class |
| 3 // | 3 // |
| 4 /* | 4 /* |
| 5 *************************************************************************** | 5 *************************************************************************** |
| 6 * Copyright (C) 2002-2011 International Business Machines Corporation | 6 * Copyright (C) 2002-2014 International Business Machines Corporation |
| 7 * and others. All rights reserved. | 7 * and others. All rights reserved. |
| 8 *************************************************************************** | 8 *************************************************************************** |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "unicode/utypes.h" | 11 #include "unicode/utypes.h" |
| 12 | 12 |
| 13 #if !UCONFIG_NO_BREAK_ITERATION | 13 #if !UCONFIG_NO_BREAK_ITERATION |
| 14 | 14 |
| 15 #include "unicode/unistr.h" | 15 #include "unicode/unistr.h" |
| 16 #include "unicode/uniset.h" | 16 #include "unicode/uniset.h" |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 223 |
| 224 // | 224 // |
| 225 // RBBISymbolTable::print Debugging function, dump out the symbol table cont
ents. | 225 // RBBISymbolTable::print Debugging function, dump out the symbol table cont
ents. |
| 226 // | 226 // |
| 227 #ifdef RBBI_DEBUG | 227 #ifdef RBBI_DEBUG |
| 228 void RBBISymbolTable::rbbiSymtablePrint() const { | 228 void RBBISymbolTable::rbbiSymtablePrint() const { |
| 229 RBBIDebugPrintf("Variable Definitions\n" | 229 RBBIDebugPrintf("Variable Definitions\n" |
| 230 "Name Node Val String Val\n" | 230 "Name Node Val String Val\n" |
| 231 "--------------------------------------------------------------------
--\n"); | 231 "--------------------------------------------------------------------
--\n"); |
| 232 | 232 |
| 233 int32_t pos = -1; | 233 int32_t pos = UHASH_FIRST; |
| 234 const UHashElement *e = NULL; | 234 const UHashElement *e = NULL; |
| 235 for (;;) { | 235 for (;;) { |
| 236 e = uhash_nextElement(fHashTable, &pos); | 236 e = uhash_nextElement(fHashTable, &pos); |
| 237 if (e == NULL ) { | 237 if (e == NULL ) { |
| 238 break; | 238 break; |
| 239 } | 239 } |
| 240 RBBISymbolTableEntry *s = (RBBISymbolTableEntry *)e->value.pointer; | 240 RBBISymbolTableEntry *s = (RBBISymbolTableEntry *)e->value.pointer; |
| 241 | 241 |
| 242 RBBI_DEBUG_printUnicodeString(s->key, 15); | 242 RBBI_DEBUG_printUnicodeString(s->key, 15); |
| 243 RBBIDebugPrintf(" %8p ", (void *)s->val); | 243 RBBIDebugPrintf(" %8p ", (void *)s->val); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 260 } | 260 } |
| 261 #endif | 261 #endif |
| 262 | 262 |
| 263 | 263 |
| 264 | 264 |
| 265 | 265 |
| 266 | 266 |
| 267 U_NAMESPACE_END | 267 U_NAMESPACE_END |
| 268 | 268 |
| 269 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */ | 269 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */ |
| OLD | NEW |