Lines Matching refs:elements
128 : strings(NULL), elements(NULL), elementsCapacity(0), elementsLength(0),
141 delete[] elements;
151 // Cannot add elements after building.
168 uprv_memcpy(newElements, elements, elementsLength*sizeof(BytesTrieElement));
170 delete[] elements;
171 elements=newElements;
174 elements[elementsLength++].setTo(s, value, *strings, errorCode);
230 uprv_sortArray(elements, elementsLength, (int32_t)sizeof(BytesTrieElement),
238 StringPiece prev=elements[0].getString(*strings);
240 StringPiece current=elements[i].getString(*strings);
248 // Create and byte-serialize the trie for the elements.
280 return elements[i].getStringLength(*strings);
285 return (uint8_t)elements[i].charAt(byteIndex, *strings);
290 return elements[i].getValue();
295 const BytesTrieElement &firstElement=elements[first];
296 const BytesTrieElement &lastElement=elements[last];
309 char byte=elements[i++].charAt(byteIndex, *strings);
310 while(i<limit && byte==elements[i].charAt(byteIndex, *strings)) {
321 char byte=elements[i++].charAt(byteIndex, *strings);
322 while(byte==elements[i].charAt(byteIndex, *strings)) {
332 while(b==elements[i].charAt(byteIndex, *strings)) {
367 elements[i].getString(*strings).data()+byteIndex,
421 return write(elements[i].getString(*strings).data()+byteIndex, length);