Home | History | Annotate | Download | only in common

Lines Matching refs:strings

38     void setTo(const StringPiece &s, int32_t val, CharString &strings, UErrorCode &errorCode);
40 StringPiece getString(const CharString &strings) const {
44 length=(uint8_t)strings[offset++];
47 length=((int32_t)(uint8_t)strings[offset]<<8)|(uint8_t)strings[offset+1];
50 return StringPiece(strings.data()+offset, length);
52 int32_t getStringLength(const CharString &strings) const {
55 return (uint8_t)strings[offset];
58 return ((int32_t)(uint8_t)strings[offset]<<8)|(uint8_t)strings[offset+1];
62 char charAt(int32_t index, const CharString &strings) const { return data(strings)[index]; }
66 int32_t compareStringTo(const BytesTrieElement &o, const CharString &strings) const;
69 const char *data(const CharString &strings) const {
76 return strings.data()+offset;
79 // If the stringOffset is non-negative, then the first strings byte contains
81 // If the stringOffset is negative, then the first two strings bytes contain
83 // (Compared with a stringLength field here, this saves 3 bytes per string for most strings.)
90 CharString &strings, UErrorCode &errorCode) {
100 int32_t offset=strings.length();
103 strings.append((char)(length>>8), errorCode);
105 strings.append((char)length, errorCode);
108 strings.append(s, errorCode);
112 BytesTrieElement::compareStringTo(const BytesTrieElement &other, const CharString &strings) const {
114 StringPiece thisString=getString(strings);
115 StringPiece otherString=other.getString(strings);
128 : strings(NULL), elements(NULL), elementsCapacity(0), elementsLength(0),
133 strings=new CharString();
134 if(strings==NULL) {
140 delete strings;
174 elements[elementsLength++].setTo(s, value, *strings, errorCode);
182 const CharString *strings=static_cast<const CharString *>(context);
185 return leftElement->compareStringTo(*rightElement, *strings);
231 compareElementStrings, strings,
237 // Duplicate strings are not allowed.
238 StringPiece prev=elements[0].getString(*strings);
240 StringPiece current=elements[i].getString(*strings);
250 int32_t capacity=strings->length();
272 strings->clear();
280 return elements[i].getStringLength(*strings);
285 return (uint8_t)elements[i].charAt(byteIndex, *strings);
297 int32_t minStringLength=firstElement.getStringLength(*strings);
299 firstElement.charAt(byteIndex, *strings)==
300 lastElement.charAt(byteIndex, *strings)) {}
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);