/external/icu/android_icu4j/src/main/java/android/icu/util/ |
H A D | BytesTrieBuilder.java | 19 * Builder class for BytesTrie. 62 * Builds a BytesTrie for the add()ed data. 65 * <p>A BytesTrie cannot be empty. At least one (byte sequence, value) pair 73 * @return A new BytesTrie for the add()ed data. 75 public BytesTrie build(StringTrieBuilder.Option buildOption) { 77 return new BytesTrie(bytes, bytes.length-bytesLength); 81 * Builds a BytesTrie for the add()ed data and byte-serializes it. 84 * <p>A BytesTrie cannot be empty. At least one (byte sequence, value) pair 92 * <p>The serialized BytesTrie is accessible via the buffer's 95 * @return A ByteBuffer with the byte-serialized BytesTrie fo [all...] |
H A D | BytesTrie.java | 21 * Light-weight, non-const reader class for a BytesTrie. 30 public final class BytesTrie implements Cloneable, Iterable<BytesTrie.Entry> { class in inherits:Cloneable,Iterable 32 * Constructs a BytesTrie reader instance. 36 * The BytesTrie object will not read more bytes than 40 * the BytesTrie object is in use. 45 public BytesTrie(byte[] trieBytes, int offset) { method in class:BytesTrie 65 public BytesTrie reset() { 72 * BytesTrie state object, for saving a trie's current state 92 public BytesTrie saveStat [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | BytesTrieBuilder.java | 18 * Builder class for BytesTrie. 63 * Builds a BytesTrie for the add()ed data. 66 * <p>A BytesTrie cannot be empty. At least one (byte sequence, value) pair 74 * @return A new BytesTrie for the add()ed data. 77 public BytesTrie build(StringTrieBuilder.Option buildOption) { 79 return new BytesTrie(bytes, bytes.length-bytesLength); 83 * Builds a BytesTrie for the add()ed data and byte-serializes it. 86 * <p>A BytesTrie cannot be empty. At least one (byte sequence, value) pair 94 * <p>The serialized BytesTrie is accessible via the buffer's 97 * @return A ByteBuffer with the byte-serialized BytesTrie fo [all...] |
H A D | BytesTrie.java | 20 * Light-weight, non-const reader class for a BytesTrie. 29 public final class BytesTrie implements Cloneable, Iterable<BytesTrie.Entry> { class in inherits:Cloneable,Iterable 31 * Constructs a BytesTrie reader instance. 35 * The BytesTrie object will not read more bytes than 39 * the BytesTrie object is in use. 45 public BytesTrie(byte[] trieBytes, int offset) { method in class:BytesTrie 67 public BytesTrie reset() { 74 * BytesTrie state object, for saving a trie's current state 97 public BytesTrie saveStat [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
H A D | BytesDictionaryMatcher.java | 15 import android.icu.util.BytesTrie; 16 import android.icu.util.BytesTrie.Result; 48 BytesTrie bt = new BytesTrie(characters, 0);
|
H A D | CharsDictionaryMatcher.java | 14 import android.icu.util.BytesTrie.Result;
|
/external/icu/icu4c/source/common/unicode/ |
H A D | bytestrie.h | 38 * Light-weight, non-const reader class for a BytesTrie. 50 class U_COMMON_API BytesTrie : public UMemory { class in inherits:UMemory 53 * Constructs a BytesTrie reader instance. 57 * The BytesTrie object will not read more bytes than 61 * the BytesTrie object is in use. 66 BytesTrie(const void *trieBytes) function in class:BytesTrie 74 ~BytesTrie(); 79 * @param other Another BytesTrie object. 82 BytesTrie(const BytesTrie function in class:BytesTrie 352 BytesTrie(void *adoptBytes, const void *trieBytes) function in class:BytesTrie [all...] |
H A D | bytestriebuilder.h | 19 * \brief C++ API: Builder for icu::BytesTrie 35 * Builder class for BytesTrie. 72 * Builds a BytesTrie for the add()ed data. 75 * A BytesTrie cannot be empty. At least one (byte sequence, value) pair 86 * @return A new BytesTrie for the add()ed data. 89 BytesTrie *build(UStringTrieBuildOption buildOption, UErrorCode &errorCode); 92 * Builds a BytesTrie for the add()ed data and byte-serializes it. 95 * A BytesTrie cannot be empty. At least one (byte sequence, value) pair 110 * @return A StringPiece which refers to the byte-serialized BytesTrie for the add()ed data. 141 virtual int32_t getMaxBranchLinearSubNodeLength() const { return BytesTrie [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | BytesDictionaryMatcher.java | 14 import com.ibm.icu.util.BytesTrie; 15 import com.ibm.icu.util.BytesTrie.Result; 47 BytesTrie bt = new BytesTrie(characters, 0);
|
H A D | CharsDictionaryMatcher.java | 13 import com.ibm.icu.util.BytesTrie.Result;
|
/external/icu/icu4c/source/common/ |
H A D | bytestrieiterator.cpp | 25 BytesTrie::Iterator::Iterator(const void *trieBytes, int32_t maxStringLength, 37 // Unlike BytesTrie itself, its Iterator performs memory allocations anyway 47 BytesTrie::Iterator::Iterator(const BytesTrie &trie, int32_t maxStringLength, 78 BytesTrie::Iterator::~Iterator() { 83 BytesTrie::Iterator & 84 BytesTrie::Iterator::reset() { 99 BytesTrie::Iterator::hasNext() const { return pos_!=NULL || !stack_->isEmpty(); } 102 BytesTrie::Iterator::next(UErrorCode &errorCode) { 172 BytesTrie [all...] |
H A D | bytestrie.cpp | 26 BytesTrie::~BytesTrie() { 32 BytesTrie::readValue(const uint8_t *pos, int32_t leadByte) { 49 BytesTrie::jumpByDelta(const uint8_t *pos) { 69 BytesTrie::current() const { 81 BytesTrie::branchNext(const uint8_t *pos, int32_t length, int32_t inByte) { 151 BytesTrie::nextImpl(const uint8_t *pos, int32_t inByte) { 183 BytesTrie::next(int32_t inByte) { 209 BytesTrie::next(const char *s, int32_t sLength) { 316 BytesTrie [all...] |
H A D | bytestriebuilder.cpp | 32 * of the byte sequences, until the BytesTrie is built. 192 BytesTrie * 195 BytesTrie *newTrie=NULL; 197 newTrie=new BytesTrie(bytes, bytes+(bytesCapacity-bytesLength)); 428 if(0<=i && i<=BytesTrie::kMaxOneByteValue) { 429 return write(((BytesTrie::kMinOneByteValueLead+i)<<1)|isFinal); 434 intBytes[0]=(char)BytesTrie::kFiveByteValueLead; 440 // } else if(i<=BytesTrie::kMaxOneByteValue) { 441 // intBytes[0]=(char)(BytesTrie::kMinOneByteValueLead+i); 443 if(i<=BytesTrie [all...] |
H A D | propname.h | 111 static UBool containsName(BytesTrie &trie, const char *name); 188 * This is a sequence of BytesTrie structures, byte-serialized tries for
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
H A D | BytesTrieTest.java | 24 import android.icu.util.BytesTrie; 226 public BytesTrie buildMonthsTrie(StringTrieBuilder.Option buildOption) { 268 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.FAST); 285 if(trie.next('n')!=BytesTrie.Result.INTERMEDIATE_VALUE || 6!=trie.getValue()) { 302 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.SMALL); 318 trie.getValue(); // next() had returned BytesTrie.Result.INTERMEDIATE_VALUE. 349 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.FAST); 354 BytesTrie.Iterator iter=trie.iterator(); 392 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.SMALL); 399 BytesTrie [all...] |
H A D | CharsTrieTest.java | 24 import android.icu.util.BytesTrie; 248 BytesTrie.Result result; 249 if( (result=trie.nextForCodePoint(0x4dff))!=BytesTrie.Result.NO_VALUE || result!=trie.current() || 250 (result=trie.nextForCodePoint(0x10000))!=BytesTrie.Result.NO_VALUE || result!=trie.current() || 251 (result=trie.nextForCodePoint(0x9999))!=BytesTrie.Result.NO_VALUE || result!=trie.current() || 252 (result=trie.nextForCodePoint(0x20000))!=BytesTrie.Result.NO_VALUE || result!=trie.current() || 253 (result=trie.nextForCodePoint(0xdfff))!=BytesTrie.Result.NO_VALUE || result!=trie.current() || 254 (result=trie.nextForCodePoint(0x10ffff))!=BytesTrie.Result.FINAL_VALUE || result!=trie.current() || 259 if( (result=trie.firstForCodePoint(0x4dff))!=BytesTrie.Result.NO_VALUE || result!=trie.current() || 260 (result=trie.nextForCodePoint(0x10000))!=BytesTrie [all...] |
H A D | TrieMap.java | 20 import android.icu.util.BytesTrie; 21 import android.icu.util.BytesTrie.Result; 31 // the BytesTrieBuilder.build should create a BytesTrie, not a raw array. For the latter, use buildArray or something. 116 private final BytesTrie bytesTrie; 119 private BytesTrieMap(BytesTrie bytesTrie, V[] intToValue, int size) { 178 BytesTrie.Iterator iterator = bytesTrie.iterator(); 196 public BytesTrie.Entry bytesEntry; 327 BytesTrie bytesTrie = builder.build(option); 563 private static void getChars(BytesTrie.Entry entry, StringBuilder stringBuilder) { 582 public static String toString(BytesTrie bytesTrie [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
H A D | BytesTrieTest.java | 23 import com.ibm.icu.util.BytesTrie; 223 public BytesTrie buildMonthsTrie(StringTrieBuilder.Option buildOption) { 265 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.FAST); 282 if(trie.next('n')!=BytesTrie.Result.INTERMEDIATE_VALUE || 6!=trie.getValue()) { 299 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.SMALL); 315 trie.getValue(); // next() had returned BytesTrie.Result.INTERMEDIATE_VALUE. 346 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.FAST); 351 BytesTrie.Iterator iter=trie.iterator(); 389 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.SMALL); 396 BytesTrie [all...] |
H A D | CharsTrieTest.java | 23 import com.ibm.icu.util.BytesTrie; 245 BytesTrie.Result result; 246 if( (result=trie.nextForCodePoint(0x4dff))!=BytesTrie.Result.NO_VALUE || result!=trie.current() || 247 (result=trie.nextForCodePoint(0x10000))!=BytesTrie.Result.NO_VALUE || result!=trie.current() || 248 (result=trie.nextForCodePoint(0x9999))!=BytesTrie.Result.NO_VALUE || result!=trie.current() || 249 (result=trie.nextForCodePoint(0x20000))!=BytesTrie.Result.NO_VALUE || result!=trie.current() || 250 (result=trie.nextForCodePoint(0xdfff))!=BytesTrie.Result.NO_VALUE || result!=trie.current() || 251 (result=trie.nextForCodePoint(0x10ffff))!=BytesTrie.Result.FINAL_VALUE || result!=trie.current() || 256 if( (result=trie.firstForCodePoint(0x4dff))!=BytesTrie.Result.NO_VALUE || result!=trie.current() || 257 (result=trie.nextForCodePoint(0x10000))!=BytesTrie [all...] |
H A D | TrieMap.java | 19 import com.ibm.icu.util.BytesTrie; 20 import com.ibm.icu.util.BytesTrie.Result; 30 // the BytesTrieBuilder.build should create a BytesTrie, not a raw array. For the latter, use buildArray or something. 115 private final BytesTrie bytesTrie; 118 private BytesTrieMap(BytesTrie bytesTrie, V[] intToValue, int size) { 177 BytesTrie.Iterator iterator = bytesTrie.iterator(); 195 public BytesTrie.Entry bytesEntry; 326 BytesTrie bytesTrie = builder.build(option); 562 private static void getChars(BytesTrie.Entry entry, StringBuilder stringBuilder) { 581 public static String toString(BytesTrie bytesTrie [all...] |
/external/icu/icu4c/source/test/intltest/ |
H A D | bytestrietest.cpp | 49 BytesTrie *buildMonthsTrie(UStringTrieBuildOption buildOption); 62 BytesTrie *buildTrie(const StringAndValue data[], int32_t dataLength, 64 void checkFirst(BytesTrie &trie, const StringAndValue data[], int32_t dataLength); 65 void checkNext(BytesTrie &trie, const StringAndValue data[], int32_t dataLength); 66 void checkNextWithState(BytesTrie &trie, const StringAndValue data[], int32_t dataLength); 67 void checkNextString(BytesTrie &trie, const StringAndValue data[], int32_t dataLength); 68 void checkIterator(const BytesTrie &trie, const StringAndValue data[], int32_t dataLength); 69 void checkIterator(BytesTrie::Iterator &iter, const StringAndValue data[], int32_t dataLength); 269 BytesTrie *BytesTrieTest::buildMonthsTrie(UStringTrieBuildOption buildOption) { 310 LocalPointer<BytesTrie> tri [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
H A D | UPropertyAliases.java | 23 import android.icu.util.BytesTrie; 145 ++valueMapIndex; // Skip the BytesTrie offset. 203 private boolean containsName(BytesTrie trie, CharSequence name) { 204 BytesTrie.Result result=BytesTrie.Result.NO_VALUE; 273 BytesTrie trie=new BytesTrie(bytesTries, bytesTrieOffset); 306 // where the first word is the BytesTrie offset. 324 // where the first word is the BytesTrie offset.
|
H A D | SimpleFilteredSentenceBreakIterator.java | 20 import android.icu.util.BytesTrie; 86 BytesTrie.Result r = BytesTrie.Result.INTERMEDIATE_VALUE; 110 BytesTrie.Result rfwd = BytesTrie.Result.INTERMEDIATE_VALUE;
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | UPropertyAliases.java | 22 import com.ibm.icu.util.BytesTrie; 144 ++valueMapIndex; // Skip the BytesTrie offset. 202 private boolean containsName(BytesTrie trie, CharSequence name) { 203 BytesTrie.Result result=BytesTrie.Result.NO_VALUE; 272 BytesTrie trie=new BytesTrie(bytesTries, bytesTrieOffset); 305 // where the first word is the BytesTrie offset. 323 // where the first word is the BytesTrie offset.
|
H A D | SimpleFilteredSentenceBreakIterator.java | 19 import com.ibm.icu.util.BytesTrie; 84 BytesTrie.Result r = BytesTrie.Result.INTERMEDIATE_VALUE; 108 BytesTrie.Result rfwd = BytesTrie.Result.INTERMEDIATE_VALUE;
|