Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1291)

Unified Diff: icu4c/source/common/rbbisetb.h

Issue 331690043: ticket:13569 RBBI state table optmizations Base URL: svn+ssh://source.icu-project.org/repos/icu/trunk/
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: icu4c/source/common/rbbisetb.h
===================================================================
--- icu4c/source/common/rbbisetb.h (revision 40919)
+++ icu4c/source/common/rbbisetb.h (working copy)
@@ -82,7 +82,8 @@
RBBISetBuilder(RBBIRuleBuilder *rb);
~RBBISetBuilder();
- void build();
+ void buildRanges();
+ void buildTrie();
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
@@ -93,6 +94,13 @@
UChar32 getFirstChar(int32_t val) const;
UBool sawBOF() const; // Indicate whether any references to the {bof} pseudo
// character were encountered.
+ /** merge two character categories that have been identified as having equivalent behavior.
+ * The ranges belonging to the right category (table column) will be added to the left.
+ */
+ void mergeCategories(int32_t left, int32_t right);
+
+ static constexpr int32_t DICT_BIT = 0x4000;
+
#ifdef RBBI_DEBUG
void printSets();
void printRanges();

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b