X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/374ca955a76ecab1204ca8bfa63ff9238d998416..fd0068a84e9996f225edba706498f6ed413d0673:/icuSources/common/rbbisetb.h diff --git a/icuSources/common/rbbisetb.h b/icuSources/common/rbbisetb.h index 17544f54..c8bc1df7 100644 --- a/icuSources/common/rbbisetb.h +++ b/icuSources/common/rbbisetb.h @@ -2,7 +2,7 @@ // rbbisetb.h /* ********************************************************************** -* Copyright (c) 2001-2004, International Business Machines +* Copyright (c) 2001-2005, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** */ @@ -79,13 +79,16 @@ public: ~RBBISetBuilder(); void build(); - void addValToSets(UVector *sets, uint32_t val); + void addValToSets(UVector *sets, uint32_t val); + void addValToSet (RBBINode *usetNode, uint32_t val); 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 + // runtime state machine, which are the same as + // columns in the DFA state table 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; + UBool sawBOF() const; // Indicate whether any references to the {bof} pseudo + // character were encountered. #ifdef RBBI_DEBUG void printSets(); void printRanges(); @@ -110,10 +113,13 @@ private: // Groups correspond to character categories - // groups of ranges that are in the same original UnicodeSets. // fGroupCount is the index of the last used group. - // The value is also the number of columns in the RBBI state table being compiled. - // Index 0 is not used. Funny counting. + // fGroupCount+1 is also the number of columns in the RBBI state table being compiled. + // State table column 0 is not used. Column 1 is for end-of-input. + // column 2 is for group 0. Funny counting. int32_t fGroupCount; + UBool fSawBOF; + RBBISetBuilder(const RBBISetBuilder &other); // forbid copying of this class RBBISetBuilder &operator=(const RBBISetBuilder &other); // forbid copying of this class };