Lines Matching defs:len

683     size_t len = **str;
684 if ((len & 0x8000) != 0) {
686 len = ((len & 0x7FFF) << 16) | **str;
689 return len;
705 size_t len = **str;
706 if ((len & 0x80) != 0) {
708 len = ((len & 0x7F) << 8) | **str;
711 return len;
887 size_t len;
888 const char *str = string8At(idx, &len);
890 return String8(str, len);
893 const char16_t *str16 = stringAt(idx, &len);
895 return String8(str16, len);
926 size_t len;
949 const uint8_t* s = (const uint8_t*)string8At(mid, &len);
952 char16_t* end = utf8_to_utf16(s, len, convBuffer, convBufferLen);
982 const char* s = string8At(i, &len);
986 if (s && str8Len == len && memcmp(s, str8.string(), str8Len) == 0) {
1008 const char16_t* s = stringAt(mid, &len);
1009 int c = s ? strzcmp16(s, len, str, strLen) : -1;
1031 const char16_t* s = stringAt(i, &len);
1035 if (s && strLen == len && strzcmp16(s, len, str, strLen) == 0) {
2863 size_t len = unpackLanguage(buf);
2864 out.append(buf, len);
2868 len = unpackRegion(buf);
2869 out.append(buf, len);
2883 size_t len = unpackLanguage(buf);
2884 out.append(buf, len);
2893 len = unpackRegion(buf);
2894 out.append(buf, len);
3579 ssize_t findType16(const char16_t* type, size_t len) const {
3582 ssize_t index = packages[i]->typeStrings.indexOfString(type, len);
4387 size_t len;
4392 String8(entry.package->header->values.stringAt(outValue->data, &len)).string() :
4818 size_t len;
4849 size_t len;
4852 len = m->len;
4853 if (len != nameLen) {
4856 for (size_t j=1; j<len; j++) {
5125 size_t len;
5151 const size_t len = end-str;
5163 if (len == cur->len && strncmp(cur->name, str, len) == 0) {
5177 bool U16StringToInt(const char16_t* s, size_t len, Res_value* outValue)
5179 while (len > 0 && isspace16(*s)) {
5181 len--;
5184 if (len <= 0) {
5207 if (len > 1 && s[i] == '0' && s[i+1] == 'x') {
5215 if (i == len) {
5221 while (i < len && !error) {
5234 while (i < len) {
5250 while (i < len && isspace16(s[i])) {
5254 if (i != len) {
5266 bool ResTable::stringToInt(const char16_t* s, size_t len, Res_value* outValue)
5268 return U16StringToInt(s, len, outValue);
5271 bool ResTable::stringToFloat(const char16_t* s, size_t len, Res_value* outValue)
5273 while (len > 0 && isspace16(*s)) {
5275 len--;
5278 if (len <= 0) {
5284 while (len > 0 && *s != 0 && i < 126) {
5289 len--;
5292 if (len > 0) {
5367 const char16_t* s, size_t len,
5386 while (len > 0 && isspace16(*s)) {
5388 len--;
5390 while (len > 0 && isspace16(s[len-1])) {
5391 len--;
5394 if (len > 0 && s[len-1] == '\\' && s[len] != 0) {
5395 len++;
5399 //printf("Value for: %s\n", String8(s, len).string());
5454 //printf("Looking up ref: %s\n", String8(s, len).string());
5457 if (len == 5 && s[1]=='n' && s[2]=='u' && s[3]=='l' && s[4]=='l') {
5462 } else if (len == 6 && s[1]=='e' && s[2]=='m' && s[3]=='p' && s[4]=='t' && s[5]=='y') {
5471 if (len > 2 && s[1] == '+') {
5474 resourceNameLen = len - 2;
5475 } else if (len > 2 && s[1] == '*') {
5478 resourceNameLen = len - 2;
5482 resourceNameLen = len - 1;
5571 if (len == 4) {
5580 } else if (len == 5) {
5590 } else if (len == 7) {
5599 } else if (len == 9) {
5623 //printf("Color input=%s, output=0x%x\n", String8(s, len).string(), color);
5636 String8(s, len).string());
5650 //printf("Looking up attr: %s\n", String8(s, len).string());
5654 if (!expandResourceRef(s+1, len-1, &package, &type, &name,
5717 if (stringToInt(s, len, outValue)) {
5740 if (stringToFloat(s, len, outValue)) {
5773 if (len == 4) {
5793 if (len == 5) {
5827 String8(s, len).string(),
5831 if (strzcmp16(s, len, rname.name, rname.nameLen) == 0) {
5847 if (accessor->getAttributeEnum(attrID, s, len, outValue)) {
5863 const char16_t* end = s + len;
5908 if (accessor->getAttributeFlags(attrID, s, len, outValue)) {
5925 bool failed = collectString(outString, s, len, preserveSpaces, &errorMsg);
5936 const char16_t* s, size_t len,
5945 while (p < (s+len)) {
5946 while (p < (s+len)) {
5974 if (p < (s+len)) {
5990 while (p < (s+len) && isspace16(*p)) {
5995 if (p < (s+len)) {
6052 len -= (p-s);
6058 if (len > 0) {
6059 tmp.append(String16(s, len));
6068 outString->append(String16(s, len));
6070 outString->setTo(s, len);
7230 #define CHAR16_TO_CSTR(c16, len) (String8(String16(c16,len)).string())
7232 #define CHAR16_ARRAY_EQ(constant, var, len) \
7233 (((len) == (sizeof(constant)/sizeof((constant)[0]))) && (0 == memcmp((var), (constant), (len))))
7321 size_t len;
7323 value.data, &len);
7328 value.data, &len);
7331 normalizeForOutput(String8(str16, len).string()).string());