Searched refs:BytesTrie (Results 1 - 25 of 34) sorted by relevance

12

/external/icu/android_icu4j/src/main/java/android/icu/util/
H A DBytesTrieBuilder.java19 * 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 DBytesTrie.java21 * 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 DBytesTrieBuilder.java18 * 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 DBytesTrie.java20 * 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 DBytesDictionaryMatcher.java15 import android.icu.util.BytesTrie;
16 import android.icu.util.BytesTrie.Result;
48 BytesTrie bt = new BytesTrie(characters, 0);
H A DCharsDictionaryMatcher.java14 import android.icu.util.BytesTrie.Result;
/external/icu/icu4c/source/common/unicode/
H A Dbytestrie.h38 * 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 Dbytestriebuilder.h19 * \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 DBytesDictionaryMatcher.java14 import com.ibm.icu.util.BytesTrie;
15 import com.ibm.icu.util.BytesTrie.Result;
47 BytesTrie bt = new BytesTrie(characters, 0);
H A DCharsDictionaryMatcher.java13 import com.ibm.icu.util.BytesTrie.Result;
/external/icu/icu4c/source/common/
H A Dbytestrieiterator.cpp25 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 Dbytestrie.cpp26 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 Dbytestriebuilder.cpp32 * 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 Dpropname.h111 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 DBytesTrieTest.java22 import android.icu.util.BytesTrie;
221 public BytesTrie buildMonthsTrie(StringTrieBuilder.Option buildOption) {
263 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.FAST);
280 if(trie.next('n')!=BytesTrie.Result.INTERMEDIATE_VALUE || 6!=trie.getValue()) {
297 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.SMALL);
313 trie.getValue(); // next() had returned BytesTrie.Result.INTERMEDIATE_VALUE.
344 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.FAST);
349 BytesTrie.Iterator iter=trie.iterator();
387 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.SMALL);
394 BytesTrie
[all...]
H A DCharsTrieTest.java22 import android.icu.util.BytesTrie;
243 BytesTrie.Result result;
244 if( (result=trie.nextForCodePoint(0x4dff))!=BytesTrie.Result.NO_VALUE || result!=trie.current() ||
245 (result=trie.nextForCodePoint(0x10000))!=BytesTrie.Result.NO_VALUE || result!=trie.current() ||
246 (result=trie.nextForCodePoint(0x9999))!=BytesTrie.Result.NO_VALUE || result!=trie.current() ||
247 (result=trie.nextForCodePoint(0x20000))!=BytesTrie.Result.NO_VALUE || result!=trie.current() ||
248 (result=trie.nextForCodePoint(0xdfff))!=BytesTrie.Result.NO_VALUE || result!=trie.current() ||
249 (result=trie.nextForCodePoint(0x10ffff))!=BytesTrie.Result.FINAL_VALUE || result!=trie.current() ||
254 if( (result=trie.firstForCodePoint(0x4dff))!=BytesTrie.Result.NO_VALUE || result!=trie.current() ||
255 (result=trie.nextForCodePoint(0x10000))!=BytesTrie
[all...]
H A DTrieMap.java20 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 DBytesTrieTest.java21 import com.ibm.icu.util.BytesTrie;
220 public BytesTrie buildMonthsTrie(StringTrieBuilder.Option buildOption) {
262 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.FAST);
279 if(trie.next('n')!=BytesTrie.Result.INTERMEDIATE_VALUE || 6!=trie.getValue()) {
296 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.SMALL);
312 trie.getValue(); // next() had returned BytesTrie.Result.INTERMEDIATE_VALUE.
343 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.FAST);
348 BytesTrie.Iterator iter=trie.iterator();
386 BytesTrie trie=buildMonthsTrie(StringTrieBuilder.Option.SMALL);
393 BytesTrie
[all...]
H A DCharsTrieTest.java21 import com.ibm.icu.util.BytesTrie;
242 BytesTrie.Result result;
243 if( (result=trie.nextForCodePoint(0x4dff))!=BytesTrie.Result.NO_VALUE || result!=trie.current() ||
244 (result=trie.nextForCodePoint(0x10000))!=BytesTrie.Result.NO_VALUE || result!=trie.current() ||
245 (result=trie.nextForCodePoint(0x9999))!=BytesTrie.Result.NO_VALUE || result!=trie.current() ||
246 (result=trie.nextForCodePoint(0x20000))!=BytesTrie.Result.NO_VALUE || result!=trie.current() ||
247 (result=trie.nextForCodePoint(0xdfff))!=BytesTrie.Result.NO_VALUE || result!=trie.current() ||
248 (result=trie.nextForCodePoint(0x10ffff))!=BytesTrie.Result.FINAL_VALUE || result!=trie.current() ||
253 if( (result=trie.firstForCodePoint(0x4dff))!=BytesTrie.Result.NO_VALUE || result!=trie.current() ||
254 (result=trie.nextForCodePoint(0x10000))!=BytesTrie
[all...]
H A DTrieMap.java19 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 Dbytestrietest.cpp49 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 DUPropertyAliases.java23 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 DSimpleFilteredSentenceBreakIterator.java19 import android.icu.util.BytesTrie;
83 BytesTrie.Result r = BytesTrie.Result.INTERMEDIATE_VALUE;
107 BytesTrie.Result rfwd = BytesTrie.Result.INTERMEDIATE_VALUE;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
H A DUPropertyAliases.java22 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 DSimpleFilteredSentenceBreakIterator.java18 import com.ibm.icu.util.BytesTrie;
81 BytesTrie.Result r = BytesTrie.Result.INTERMEDIATE_VALUE;
105 BytesTrie.Result rfwd = BytesTrie.Result.INTERMEDIATE_VALUE;

Completed in 639 milliseconds

12