Lines Matching defs:source
196 * A TransliteratorSpec is a string specifying either a source or a target. In more
685 UnicodeString source, target, variant;
687 TransliteratorIDParser::IDtoSTV(ID, source, target, variant, sawSource);
690 TransliteratorIDParser::STVtoID(source, target, variant, id);
692 removeSTV(source, target, variant);
749 int32_t TransliteratorRegistry::countAvailableTargets(const UnicodeString& source) const {
750 Hashtable *targets = (Hashtable*) specDAG.get(source);
755 const UnicodeString& source,
757 Hashtable *targets = (Hashtable*) specDAG.get(source);
759 result.truncate(0); // invalid source
778 int32_t TransliteratorRegistry::countAvailableVariants(const UnicodeString& source,
780 Hashtable *targets = (Hashtable*) specDAG.get(source);
785 // variants may be 0 if the source/target are invalid
790 const UnicodeString& source,
793 Hashtable *targets = (Hashtable*) specDAG.get(source);
795 result.truncate(0); // invalid source
867 void TransliteratorRegistry::registerEntry(const UnicodeString& source,
873 UnicodeString s(source);
877 TransliteratorIDParser::STVtoID(source, target, variant, ID);
887 UnicodeString source, target, variant;
889 TransliteratorIDParser::IDtoSTV(ID, source, target, variant, sawSource);
892 TransliteratorIDParser::STVtoID(source, target, variant, id);
893 registerEntry(id, source, target, variant, adopted, visible);
897 * Register an entry object (adopted) with the given ID, source,
901 const UnicodeString& source,
909 registerSTV(source, target, variant);
920 removeSTV(source, target, variant);
926 * Register a source-target/variant in the specDAG. Variant may be
927 * empty, but source and target must not be. If variant is empty then
931 void TransliteratorRegistry::registerSTV(const UnicodeString& source,
934 // assert(source.length() > 0);
937 Hashtable *targets = (Hashtable*) specDAG.get(source);
944 specDAG.put(source, targets, status);
975 * Remove a source-target/variant from the specDAG.
977 void TransliteratorRegistry::removeSTV(const UnicodeString& source,
980 // assert(source.length() > 0);
983 Hashtable *targets = (Hashtable*) specDAG.get(source);
995 specDAG.remove(source); // should delete targets
1001 * Attempt to find a source-target/variant in the dynamic registry
1017 * Attempt to find a source-target/variant in the static locale
1056 * lookups, one for the source, and one for the target.
1145 UnicodeString source, target, variant;
1147 TransliteratorIDParser::IDtoSTV(ID, source, target, variant, sawSource);
1148 return find(source, target, variant);
1152 * Top-level find method. Attempt to find a source-target/variant in
1172 TransliteratorEntry* TransliteratorRegistry::find(UnicodeString& source,
1176 TransliteratorSpec src(source);
1184 TransliteratorIDParser::STVtoID(source, target, variant, ID);