Home | History | Annotate | Download | only in i18n

Lines Matching refs:source

192  * A TransliteratorSpec is a string specifying either a source or a target.  In more
681 UnicodeString source, target, variant;
683 TransliteratorIDParser::IDtoSTV(ID, source, target, variant, sawSource);
686 TransliteratorIDParser::STVtoID(source, target, variant, id);
688 removeSTV(source, target, variant);
745 int32_t TransliteratorRegistry::countAvailableTargets(const UnicodeString& source) const {
746 Hashtable *targets = (Hashtable*) specDAG.get(source);
751 const UnicodeString& source,
753 Hashtable *targets = (Hashtable*) specDAG.get(source);
755 result.truncate(0); // invalid source
774 int32_t TransliteratorRegistry::countAvailableVariants(const UnicodeString& source,
776 Hashtable *targets = (Hashtable*) specDAG.get(source);
781 // variants may be 0 if the source/target are invalid
786 const UnicodeString& source,
789 Hashtable *targets = (Hashtable*) specDAG.get(source);
791 result.truncate(0); // invalid source
863 void TransliteratorRegistry::registerEntry(const UnicodeString& source,
869 UnicodeString s(source);
873 TransliteratorIDParser::STVtoID(source, target, variant, ID);
883 UnicodeString source, target, variant;
885 TransliteratorIDParser::IDtoSTV(ID, source, target, variant, sawSource);
888 TransliteratorIDParser::STVtoID(source, target, variant, id);
889 registerEntry(id, source, target, variant, adopted, visible);
893 * Register an entry object (adopted) with the given ID, source,
897 const UnicodeString& source,
905 registerSTV(source, target, variant);
916 removeSTV(source, target, variant);
922 * Register a source-target/variant in the specDAG. Variant may be
923 * empty, but source and target must not be. If variant is empty then
927 void TransliteratorRegistry::registerSTV(const UnicodeString& source,
930 // assert(source.length() > 0);
933 Hashtable *targets = (Hashtable*) specDAG.get(source);
940 specDAG.put(source, targets, status);
971 * Remove a source-target/variant from the specDAG.
973 void TransliteratorRegistry::removeSTV(const UnicodeString& source,
976 // assert(source.length() > 0);
979 Hashtable *targets = (Hashtable*) specDAG.get(source);
991 specDAG.remove(source); // should delete targets
997 * Attempt to find a source-target/variant in the dynamic registry
1013 * Attempt to find a source-target/variant in the static locale
1052 * lookups, one for the source, and one for the target.
1144 UnicodeString source, target, variant;
1146 TransliteratorIDParser::IDtoSTV(ID, source, target, variant, sawSource);
1147 return find(source, target, variant);
1151 * Top-level find method. Attempt to find a source-target/variant in
1171 TransliteratorEntry* TransliteratorRegistry::find(UnicodeString& source,
1175 TransliteratorSpec src(source);