Lines Matching defs:id
47 LocaleUtility::canonicalLocaleString(const UnicodeString* id, UnicodeString& result)
49 if (id == NULL) {
59 result = *id;
91 // This code does a proper full level 2 canonicalization of id.
103 if (id != 0) {
104 int32_t buflen = id->length() + 8; // space for NUL
108 U_ASSERT(id->extract(0, INT32_MAX, buf, buflen) < buflen);
123 LocaleUtility::initLocaleFromName(const UnicodeString& id, Locale& result)
127 if (id.isBogus() || id.length() >= BUFLEN) {
134 * Problem: Locale ID strings may contain '@' which is a variant
146 * There should be only at most one '@' in a locale ID.
152 i = id.indexOf((UChar)0x40, prev);
155 id.extract(prev, INT32_MAX, buffer + prev, BUFLEN - prev, US_INV);
159 id.extract(prev, i - prev, buffer + prev, BUFLEN - prev, US_INV);
160 // manually "convert" U+0040 at id[i] into '@' at buffer[i]
233 const UChar* id = uenum_unext(uenum, NULL, &status);
234 if (id == NULL) {
237 htp->put(UnicodeString(id), (void*)htp, status);