| OLD | NEW |
| 1 /* | 1 /* |
| 2 ******************************************************************************* | 2 ******************************************************************************* |
| 3 * | 3 * |
| 4 * Copyright (C) 1999-2013 International Business Machines | 4 * Copyright (C) 1999-2014 International Business Machines |
| 5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
| 6 * | 6 * |
| 7 ******************************************************************************* | 7 ******************************************************************************* |
| 8 * file name: rbbidata.h | 8 * file name: rbbidata.h |
| 9 * encoding: US-ASCII | 9 * encoding: US-ASCII |
| 10 * tab size: 8 (not used) | 10 * tab size: 8 (not used) |
| 11 * indentation:4 | 11 * indentation:4 |
| 12 * | 12 * |
| 13 * RBBI data formats Includes | 13 * RBBI data formats Includes |
| 14 * | 14 * |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 class RBBIDataWrapper : public UMemory { | 143 class RBBIDataWrapper : public UMemory { |
| 144 public: | 144 public: |
| 145 enum EDontAdopt { | 145 enum EDontAdopt { |
| 146 kDontAdopt | 146 kDontAdopt |
| 147 }; | 147 }; |
| 148 RBBIDataWrapper(const RBBIDataHeader *data, UErrorCode &status); | 148 RBBIDataWrapper(const RBBIDataHeader *data, UErrorCode &status); |
| 149 RBBIDataWrapper(const RBBIDataHeader *data, enum EDontAdopt dontAdopt, UErro
rCode &status); | 149 RBBIDataWrapper(const RBBIDataHeader *data, enum EDontAdopt dontAdopt, UErro
rCode &status); |
| 150 RBBIDataWrapper(UDataMemory* udm, UErrorCode &status); | 150 RBBIDataWrapper(UDataMemory* udm, UErrorCode &status); |
| 151 ~RBBIDataWrapper(); | 151 ~RBBIDataWrapper(); |
| 152 | 152 |
| 153 void init0(); |
| 153 void init(const RBBIDataHeader *data, UErrorCode &status); | 154 void init(const RBBIDataHeader *data, UErrorCode &status); |
| 154 RBBIDataWrapper *addReference(); | 155 RBBIDataWrapper *addReference(); |
| 155 void removeReference(); | 156 void removeReference(); |
| 156 UBool operator ==(const RBBIDataWrapper &other) const; | 157 UBool operator ==(const RBBIDataWrapper &other) const; |
| 157 int32_t hashCode(); | 158 int32_t hashCode(); |
| 158 const UnicodeString &getRuleSourceString() const; | 159 const UnicodeString &getRuleSourceString() const; |
| 159 #ifdef RBBI_DEBUG | 160 #ifdef RBBI_DEBUG |
| 160 void printData(); | 161 void printData(); |
| 161 void printTable(const char *heading, const RBBIStateTable *
table); | 162 void printTable(const char *heading, const RBBIStateTable *
table); |
| 162 #else | 163 #else |
| (...skipping 12 matching lines...) Expand all Loading... |
| 175 const UChar *fRuleSource; | 176 const UChar *fRuleSource; |
| 176 const int32_t *fRuleStatusTable; | 177 const int32_t *fRuleStatusTable; |
| 177 | 178 |
| 178 /* number of int32_t values in the rule status table. Used to sanity check
indexing */ | 179 /* number of int32_t values in the rule status table. Used to sanity check
indexing */ |
| 179 int32_t fStatusMaxIdx; | 180 int32_t fStatusMaxIdx; |
| 180 | 181 |
| 181 UTrie fTrie; | 182 UTrie fTrie; |
| 182 | 183 |
| 183 private: | 184 private: |
| 184 u_atomic_int32_t fRefCount; | 185 u_atomic_int32_t fRefCount; |
| 185 UDataMemory *fUDataMem; | 186 UDataMemory *fUDataMem; |
| 186 UnicodeString fRuleString; | 187 UnicodeString fRuleString; |
| 187 UBool fDontFreeData; | 188 UBool fDontFreeData; |
| 188 | 189 |
| 189 RBBIDataWrapper(const RBBIDataWrapper &other); /* forbid copying of this cl
ass */ | 190 RBBIDataWrapper(const RBBIDataWrapper &other); /* forbid copying of this cl
ass */ |
| 190 RBBIDataWrapper &operator=(const RBBIDataWrapper &other); /* forbid copying
of this class */ | 191 RBBIDataWrapper &operator=(const RBBIDataWrapper &other); /* forbid copying
of this class */ |
| 191 }; | 192 }; |
| 192 | 193 |
| 193 | 194 |
| 194 | 195 |
| 195 U_NAMESPACE_END | 196 U_NAMESPACE_END |
| 196 | 197 |
| 197 #endif /* C++ */ | 198 #endif /* C++ */ |
| 198 | 199 |
| 199 #endif | 200 #endif |
| OLD | NEW |