Lines Matching defs:source
194 * A TransliteratorSpec is a string specifying either a source or a target. In more
683 UnicodeString source, target, variant;
685 TransliteratorIDParser::IDtoSTV(ID, source, target, variant, sawSource);
688 TransliteratorIDParser::STVtoID(source, target, variant, id);
690 removeSTV(source, target, variant);
747 int32_t TransliteratorRegistry::countAvailableTargets(const UnicodeString& source) const {
748 Hashtable *targets = (Hashtable*) specDAG.get(source);
753 const UnicodeString& source,
755 Hashtable *targets = (Hashtable*) specDAG.get(source);
757 result.truncate(0); // invalid source
776 int32_t TransliteratorRegistry::countAvailableVariants(const UnicodeString& source,
778 Hashtable *targets = (Hashtable*) specDAG.get(source);
783 // variants may be 0 if the source/target are invalid
788 const UnicodeString& source,
791 Hashtable *targets = (Hashtable*) specDAG.get(source);
793 result.truncate(0); // invalid source
865 void TransliteratorRegistry::registerEntry(const UnicodeString& source,
871 UnicodeString s(source);
875 TransliteratorIDParser::STVtoID(source, target, variant, ID);
885 UnicodeString source, target, variant;
887 TransliteratorIDParser::IDtoSTV(ID, source, target, variant, sawSource);
890 TransliteratorIDParser::STVtoID(source, target, variant, id);
891 registerEntry(id, source, target, variant, adopted, visible);
895 * Register an entry object (adopted) with the given ID, source,
899 const UnicodeString& source,
907 registerSTV(source, target, variant);
918 removeSTV(source, target, variant);
924 * Register a source-target/variant in the specDAG. Variant may be
925 * empty, but source and target must not be. If variant is empty then
929 void TransliteratorRegistry::registerSTV(const UnicodeString& source,
932 // assert(source.length() > 0);
935 Hashtable *targets = (Hashtable*) specDAG.get(source);
942 specDAG.put(source, targets, status);
973 * Remove a source-target/variant from the specDAG.
975 void TransliteratorRegistry::removeSTV(const UnicodeString& source,
978 // assert(source.length() > 0);
981 Hashtable *targets = (Hashtable*) specDAG.get(source);
993 specDAG.remove(source); // should delete targets
999 * Attempt to find a source-target/variant in the dynamic registry
1015 * Attempt to find a source-target/variant in the static locale
1054 * lookups, one for the source, and one for the target.
1143 UnicodeString source, target, variant;
1145 TransliteratorIDParser::IDtoSTV(ID, source, target, variant, sawSource);
1146 return find(source, target, variant);
1150 * Top-level find method. Attempt to find a source-target/variant in
1170 TransliteratorEntry* TransliteratorRegistry::find(UnicodeString& source,
1174 TransliteratorSpec src(source);
1182 TransliteratorIDParser::STVtoID(source, target, variant, ID);