Lines Matching defs:Transliterator
61 * transliterator. The ID is appended to this to form the key.
68 * transliterator SCRIPT. The ID is appended to this to form the key.
77 * "{0,choice,0#|1#{1} Transliterator|2#{1} to {2} Transliterator}".
95 * System transliterator registry; non-null when initialized.
105 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(Transliterator)
121 * @param theID the string identifier for this transliterator
124 * altered by this transliterator. If <tt>filter</tt> is
127 Transliterator::Transliterator(const UnicodeString& theID,
140 Transliterator::~Transliterator() {
149 Transliterator::Transliterator(const Transliterator& other) :
163 Transliterator* Transliterator::clone() const {
170 Transliterator& Transliterator::operator=(const Transliterator& other) {
181 * Transliterates a segment of a string. <code>Transliterator</code> API.
189 int32_t Transliterator::transliterate(Replaceable& text,
210 void Transliterator::transliterate(Replaceable& text) const {
221 * Then the transliterator will try to transliterate characters of
278 void Transliterator::transliterate(Replaceable& text,
300 void Transliterator::transliterate(Replaceable& text,
319 void Transliterator::transliterate(Replaceable& text,
335 void Transliterator::finishTransliteration(Replaceable& text,
351 void Transliterator::_transliterate(Replaceable& text,
425 void Transliterator::filteredTransliterate(Replaceable& text,
440 // in the filter for this transliterator (filter.contains(ch) == TRUE).
511 // consider the following transliterator:
525 // transliterator containing NFD and a specific filter, it can
526 // actually happen with any transliterator which may do a partial
648 // In a properly written transliterator, start == limit after
679 void Transliterator::filteredTransliterate(Replaceable& text,
689 void Transliterator::setMaximumContextLength(int32_t maxContextLength) {
694 * Returns a programmatic identifier for this transliterator.
700 const UnicodeString& Transliterator::getID(void) const {
705 * Returns a name for this transliterator that is appropriate for
709 UnicodeString& U_EXPORT2 Transliterator::getDisplayName(const UnicodeString& ID,
715 * Returns a name for this transliterator that is appropriate for
726 * transliterator at the first TARGET_SEP. If there is no TARGET_SEP, then the
732 UnicodeString& U_EXPORT2 Transliterator::getDisplayName(const UnicodeString& id,
830 * Returns the filter used by this transliterator, or <tt>null</tt>
831 * if this transliterator uses no filter. Caller musn't delete
834 const UnicodeFilter* Transliterator::getFilter(void) const {
839 * Returns the filter used by this transliterator, or
840 * <tt>NULL</tt> if this transliterator uses no filter. The
842 * this transliterator's filter is set to <tt>NULL</tt>.
844 UnicodeFilter* Transliterator::orphanFilter(void) {
851 * Changes the filter used by this transliterator. If the filter
854 * <p>Callers must take care if a transliterator is in use by
858 void Transliterator
864 * Returns this transliterator's inverse. See the class
867 * resulting transliterator. That is, if <code>getID()</code>
873 * returned transliterator will have no filter.
878 * @return a transliterator that is an inverse, not necessarily
879 * exact, of this transliterator, or <code>null</code> if no such
880 * transliterator is registered.
883 Transliterator* Transliterator::createInverse(UErrorCode& status) const {
885 return Transliterator::createInstance(ID, UTRANS_REVERSE,parseError,status);
888 Transliterator* U_EXPORT2
889 Transliterator::createInstance(const UnicodeString& ID,
898 * Returns a <code>Transliterator</code> object given its ID.
899 * The ID must be either a system transliterator ID or a ID registered
903 * @return A <code>Transliterator</code> object with the given ID
908 Transliterator* U_EXPORT2
909 Transliterator::createInstance(const UnicodeString& ID,
938 Transliterator* t = NULL;
942 // has one child transliterator. This is so that toRules() will return the right thing
949 t = (Transliterator*)list.elementAt(0);
965 * Create a transliterator from a basic ID. This is an ID
969 * @return a newly created Transliterator or null if the ID is
972 Transliterator* Transliterator::createBasicInstance(const UnicodeString& id,
977 Transliterator* t = 0;
991 // We may have not gotten a transliterator: Because we can't
992 // instantiate a transliterator from inside TransliteratorRegistry::
1040 * Returns a <code>Transliterator</code> object constructed from
1047 Transliterator* U_EXPORT2
1048 Transliterator::createFromRules(const UnicodeString& ID,
1054 Transliterator* t = NULL;
1101 Transliterator* temp = createInstance(*idBlock, UTRANS_FORWARD, parseError, status);
1135 UnicodeString& Transliterator::toRules(UnicodeString& rulesSource,
1158 int32_t Transliterator::countElements() const {
1163 const Transliterator& Transliterator::getElement(int32_t index, UErrorCode& ec) const {
1177 UnicodeSet& Transliterator::getSourceSet(UnicodeSet& result) const {
1201 void Transliterator::handleGetSourceSet(UnicodeSet& result) const {
1205 UnicodeSet& Transliterator::getTargetSet(UnicodeSet& result) const {
1210 void U_EXPORT2 Transliterator::registerFactory(const UnicodeString& id,
1211 Transliterator::Factory factory,
1212 Transliterator::Token context) {
1220 // To be called only by Transliterator subclasses that are called
1222 void Transliterator::_registerFactory(const UnicodeString& id,
1223 Transliterator::Factory factory,
1224 Transliterator::Token context) {
1229 // To be called only by Transliterator subclasses that are called
1231 void Transliterator::_registerSpecialInverse(const UnicodeString& target,
1240 * <code>Transliterator</code> with the system. This object must
1247 * <code>Transliterator</code> that defines <tt>clone()</tt>
1251 void U_EXPORT2 Transliterator::registerInstance(Transliterator* adoptedPrototype) {
1259 void Transliterator::_registerInstance(Transliterator* adoptedPrototype) {
1264 void U_EXPORT2 Transliterator::registerAlias(const UnicodeString& aliasID,
1273 void Transliterator::_registerAlias(const UnicodeString& aliasID,
1280 * Unregisters a transliterator or class. This may be either
1281 * a system transliterator or a user transliterator or class.
1283 * @param ID the ID of the transliterator or class
1287 void U_EXPORT2 Transliterator::unregister(const UnicodeString& ID) {
1301 int32_t U_EXPORT2 Transliterator::countAvailableIDs(void) {
1317 const UnicodeString& U_EXPORT2 Transliterator::getAvailableID(int32_t index) {
1329 StringEnumeration* U_EXPORT2 Transliterator::getAvailableIDs(UErrorCode& ec) {
1343 int32_t U_EXPORT2 Transliterator::countAvailableSources(void) {
1349 UnicodeString& U_EXPORT2 Transliterator::getAvailableSource(int32_t index,
1359 int32_t U_EXPORT2 Transliterator::countAvailableTargets(const UnicodeString& source) {
1365 UnicodeString& U_EXPORT2 Transliterator::getAvailableTarget(int32_t index,
1376 int32_t U_EXPORT2 Transliterator::countAvailableVariants(const UnicodeString& source,
1383 UnicodeString& U_EXPORT2 Transliterator::getAvailableVariant(int32_t index,
1395 int32_t Transliterator::_countAvailableSources(void) {
1399 UnicodeString& Transliterator::_getAvailableSource(int32_t index,
1404 int32_t Transliterator::_countAvailableTargets(const UnicodeString& source) {
1408 UnicodeString& Transliterator::_getAvailableTarget(int32_t index,
1414 int32_t Transliterator::_countAvailableVariants(const UnicodeString& source,
1419 UnicodeString& Transliterator::_getAvailableVariant(int32_t index,
1434 UChar Transliterator::filteredCharAt(const Replaceable& text, int32_t i) const {
1453 UBool Transliterator::initializeRegistry(UErrorCode &status) {
1483 * <id> is the ID of the system transliterator being defined. These
1484 * are public IDs enumerated by Transliterator.getAvailableIDs(),
1494 * Transliterator.getInstance(). The returned Transliterator object
1625 * Release all static memory held by transliterator. This will