Searched refs:fieldLen (Results 1 – 4 of 4) sorted by relevance
/external/icu/icu4c/source/common/ |
D | locid.cpp | 497 int32_t fieldLen[5] = {0}; in init() local 541 fieldLen[fieldIdx-1] = (int32_t)(separator - field[fieldIdx-1]); in init() 551 fieldLen[fieldIdx-1] = (int32_t)(separator - field[fieldIdx-1]); in init() 553 fieldLen[fieldIdx-1] = length - (int32_t)(field[fieldIdx-1] - fullName); in init() 556 if (fieldLen[0] >= (int32_t)(sizeof(language))) in init() 562 if (fieldLen[0] > 0) { in init() 564 uprv_memcpy(language, fullName, fieldLen[0]); in init() 565 language[fieldLen[0]] = 0; in init() 567 if (fieldLen[1] == 4 && ISASCIIALPHA(field[1][0]) && in init() 571 uprv_memcpy(script, field[1], fieldLen[1]); in init() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | TimeZoneFormat.java | 2910 int[] fieldLen = {0, -1, -1}; 2915 if (fieldLen[0] == 0) { 2922 if (fieldLen[fieldIdx] != -1) { 2926 fieldLen[fieldIdx] = 0; 2929 } else if (fieldLen[fieldIdx] == -1) { 2939 fieldLen[fieldIdx]++; 2940 if (fieldLen[fieldIdx] >= 2) { 2951 if (fieldLen[0] == 0) { 2961 parsedLen = fieldLen[0]; 2965 if (fieldLen[1] != 2 || fieldVal[1] > MAX_OFFSET_MINUTE) { [all …]
|
/external/icu/icu4c/source/i18n/ |
D | tzfmt.cpp | 2261 int32_t fieldLen[] = {0, -1, -1}; in parseAsciiOffsetFields() local 2266 if (fieldLen[0] == 0) { in parseAsciiOffsetFields() 2272 if (fieldLen[fieldIdx] != -1) { in parseAsciiOffsetFields() 2276 fieldLen[fieldIdx] = 0; in parseAsciiOffsetFields() 2279 } else if (fieldLen[fieldIdx] == -1) { in parseAsciiOffsetFields() 2289 fieldLen[fieldIdx]++; in parseAsciiOffsetFields() 2290 if (fieldLen[fieldIdx] >= 2) { in parseAsciiOffsetFields() 2301 if (fieldLen[0] == 0) { in parseAsciiOffsetFields() 2311 parsedLen = fieldLen[0]; in parseAsciiOffsetFields() 2315 if (fieldLen[1] != 2 || fieldVal[1] > MAX_OFFSET_MINUTE) { in parseAsciiOffsetFields() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/ |
D | RBBITestMonkey.java | 1610 private static void appendToBuf(StringBuffer dest, String src, int fieldLen) { in appendToBuf() argument 1612 if (appendLen >= fieldLen) { in appendToBuf() 1613 dest.append(src.substring(0, fieldLen)); in appendToBuf() 1616 while (appendLen < fieldLen) { in appendToBuf() 1625 private static void appendCharToBuf(StringBuffer dest, int c, int fieldLen) { in appendCharToBuf() argument 1632 appendToBuf(dest, " ", fieldLen-6); in appendCharToBuf() 1638 appendToBuf(dest, " ", fieldLen-10); in appendCharToBuf()
|