Lines Matching defs:id
67 LocaleUtility::canonicalLocaleString(const UnicodeString* id, UnicodeString& result)
69 if (id == NULL) {
79 result = *id;
111 // This code does a proper full level 2 canonicalization of id.
123 if (id != 0) {
124 int32_t buflen = id->length() + 8; // space for NUL
128 U_ASSERT(id->extract(0, INT32_MAX, buf, buflen) < buflen);
143 LocaleUtility::initLocaleFromName(const UnicodeString& id, Locale& result)
147 if (id.isBogus() || id.length() >= BUFLEN) {
154 * Problem: Locale ID strings may contain '@' which is a variant
166 * There should be only at most one '@' in a locale ID.
172 i = id.indexOf((UChar)0x40, prev);
175 id.extract(prev, INT32_MAX, buffer + prev, BUFLEN - prev, US_INV);
179 id.extract(prev, i - prev, buffer + prev, BUFLEN - prev, US_INV);
180 // manually "convert" U+0040 at id[i] into '@' at buffer[i]
232 const UChar* id = uenum_unext(uenum, NULL, &status);
233 if (id == NULL) {
236 htp->put(UnicodeString(id), (void*)htp, status);