Lines Matching refs:id
107 TransliteratorIDParser::parseSingleID(const UnicodeString& id, int32_t& pos, in parseSingleID() argument
122 specsA = parseFilterID(id, pos, TRUE); in parseSingleID()
128 if (ICU_Utility::parseChar(id, pos, OPEN_REV)) { in parseSingleID()
130 if (!ICU_Utility::parseChar(id, pos, CLOSE_REV)) { in parseSingleID()
131 specsB = parseFilterID(id, pos, TRUE); in parseSingleID()
133 if (specsB == NULL || !ICU_Utility::parseChar(id, pos, CLOSE_REV)) { in parseSingleID()
213 TransliteratorIDParser::parseFilterID(const UnicodeString& id, int32_t& pos) { in parseFilterID() argument
217 Specs* specs = parseFilterID(id, pos, TRUE); in parseFilterID()
254 UnicodeSet* TransliteratorIDParser::parseGlobalFilter(const UnicodeString& id, int32_t& pos, in parseGlobalFilter() argument
262 withParens = ICU_Utility::parseChar(id, pos, OPEN_REV) ? 1 : 0; in parseGlobalFilter()
264 if (!ICU_Utility::parseChar(id, pos, OPEN_REV)) { in parseGlobalFilter()
270 ICU_Utility::skipWhitespace(id, pos, TRUE); in parseGlobalFilter()
272 if (UnicodeSet::resemblesPattern(id, pos)) { in parseGlobalFilter()
275 filter = new UnicodeSet(id, ppos, USET_IGNORE_SPACE, NULL, ec); in parseGlobalFilter()
288 id.extractBetween(pos, ppos.getIndex(), pattern); in parseGlobalFilter()
291 if (withParens == 1 && !ICU_Utility::parseChar(id, pos, CLOSE_REV)) { in parseGlobalFilter()
352 UBool TransliteratorIDParser::parseCompoundID(const UnicodeString& id, int32_t dir, in parseCompoundID() argument
367 filter = parseGlobalFilter(id, pos, dir, withParens, &canonID); in parseCompoundID()
369 if (!ICU_Utility::parseChar(id, pos, ID_DELIM)) { in parseCompoundID()
384 SingleID* single = parseSingleID(id, pos, dir, ec); in parseCompoundID()
396 if (!ICU_Utility::parseChar(id, pos, ID_DELIM)) { in parseCompoundID()
419 filter = parseGlobalFilter(id, pos, dir, withParens, &canonID); in parseCompoundID()
422 ICU_Utility::parseChar(id, pos, ID_DELIM); in parseCompoundID()
434 ICU_Utility::skipWhitespace(id, pos, TRUE); in parseCompoundID()
435 if (pos != id.length()) { in parseCompoundID()
545 void TransliteratorIDParser::IDtoSTV(const UnicodeString& id, in IDtoSTV() argument
554 int32_t sep = id.indexOf(TARGET_SEP); in IDtoSTV()
555 int32_t var = id.indexOf(VARIANT_SEP); in IDtoSTV()
557 var = id.length(); in IDtoSTV()
563 id.extractBetween(0, var, target); in IDtoSTV()
564 id.extractBetween(var, id.length(), variant); in IDtoSTV()
568 id.extractBetween(0, sep, source); in IDtoSTV()
571 id.extractBetween(++sep, var, target); in IDtoSTV()
572 id.extractBetween(var, id.length(), variant); in IDtoSTV()
576 id.extractBetween(0, var, source); in IDtoSTV()
579 id.extractBetween(var, sep++, variant); in IDtoSTV()
580 id.extractBetween(sep, id.length(), target); in IDtoSTV()
596 UnicodeString& id) { in STVtoID() argument
597 id = source; in STVtoID()
598 if (id.length() == 0) { in STVtoID()
599 id = ANY; in STVtoID()
601 id.append(TARGET_SEP).append(target); in STVtoID()
603 id.append(VARIANT_SEP).append(variant); in STVtoID()
607 id.append((UChar)0); in STVtoID()
608 id.truncate(id.length()-1); in STVtoID()
699 TransliteratorIDParser::parseFilterID(const UnicodeString& id, int32_t& pos, in parseFilterID() argument
714 ICU_Utility::skipWhitespace(id, pos, TRUE); in parseFilterID()
715 if (pos == id.length()) { in parseFilterID()
721 UnicodeSet::resemblesPattern(id, pos)) { in parseFilterID()
725 UnicodeSet set(id, ppos, USET_IGNORE_SPACE, NULL, ec); in parseFilterID()
730 id.extractBetween(pos, ppos.getIndex(), filter); in parseFilterID()
736 UChar c = id.charAt(pos); in parseFilterID()
752 UnicodeString spec = ICU_Utility::parseUnicodeIdentifier(id, pos); in parseFilterID()
892 Transliterator* TransliteratorIDParser::createBasicInstance(const UnicodeString& id, const UnicodeS… in createBasicInstance() argument
893 return Transliterator::createBasicInstance(id, canonID); in createBasicInstance()