Home
last modified time | relevance | path

Searched refs:variantField (Results 1 – 2 of 2) sorted by relevance

/external/chromium_org/third_party/icu/source/common/
Dlocid.cpp475 int32_t variantField; in init() local
537 variantField = 1; /* Usually the 2nd one, except when a script or country is also used. */ in init()
549 variantField++; in init()
552 if (fieldLen[variantField] == 2 || fieldLen[variantField] == 3) { in init()
554 uprv_memcpy(country, field[variantField], fieldLen[variantField]); in init()
555 country[fieldLen[variantField]] = 0; in init()
556 variantField++; in init()
557 } else if (fieldLen[variantField] == 0) { in init()
558 variantField++; /* script or country empty but variant in next field (i.e. en__POSIX) */ in init()
561 if (fieldLen[variantField] > 0) { in init()
[all …]
/external/icu/icu4c/source/common/
Dlocid.cpp475 int32_t variantField; in init() local
537 variantField = 1; /* Usually the 2nd one, except when a script or country is also used. */ in init()
549 variantField++; in init()
552 if (fieldLen[variantField] == 2 || fieldLen[variantField] == 3) { in init()
554 uprv_memcpy(country, field[variantField], fieldLen[variantField]); in init()
555 country[fieldLen[variantField]] = 0; in init()
556 variantField++; in init()
557 } else if (fieldLen[variantField] == 0) { in init()
558 variantField++; /* script or country empty but variant in next field (i.e. en__POSIX) */ in init()
561 if (fieldLen[variantField] > 0) { in init()
[all …]