// rbbisetb.h
/*
**********************************************************************
-* Copyright (c) 2001, International Business Machines
+* Copyright (c) 2001-2004, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
*/
#include "unicode/uobject.h"
#include "rbbirb.h"
#include "uvector.h"
-#include "uhash.h"
struct UNewTrie;
void build();
void addValToSets(UVector *sets, uint32_t val);
- int32_t getNumCharCategories(); // CharCategories are the same as input symbol set to the
+ int32_t getNumCharCategories() const; // CharCategories are the same as input symbol set to the
// runtime state machine, which are the same as
// columns in the DFA state table
- int32_t getTrieSize(); // Size in bytes of the serialized Trie.
+ int32_t getTrieSize() /*const*/; // Size in bytes of the serialized Trie.
void serializeTrie(uint8_t *where); // write out the serialized Trie.
+ UChar32 getFirstChar(int32_t val) const;
+#ifdef RBBI_DEBUG
void printSets();
void printRanges();
void printRangeGroups();
+#else
+ #define printSets()
+ #define printRanges()
+ #define printRangeGroups()
+#endif
private:
void numberSets();