Lines Matching defs:ID
190 * <em>ID</em>. IDs follow the format <em>source-destination</em>,
211 * transliterator given its ID. Valid IDs may be enumerated using
213 * multiple calls to {@link #createInstance } with the same ID will
219 * acts a template; future calls to {@link #createInstance } with the ID
248 UnicodeString ID;
296 * invoked, it will be passed the ID string that is being
300 * functions that are registered to more than one ID may use the
301 * ID or the context parameter to parameterize the transliterator
303 * @param ID the string identifier for this transliterator
305 * later passed to the factory function when an ID matching
306 * the registration ID is being instantiated with this factory.
309 typedef Transliterator* (U_EXPORT2 *Factory)(const UnicodeString& ID, Token context);
315 * @param ID the string identifier for this transliterator
322 Transliterator(const UnicodeString& ID, UnicodeFilter* adoptedFilter);
337 * Create a transliterator from a basic ID. This is an ID
340 * @param id a basic ID of the form S-T or S-T/V.
341 * @param canon canonical ID to assign to the object, or
342 * NULL to leave the ID unchanged
343 * @return a newly created Transliterator or null if the ID is
347 static Transliterator* createBasicInstance(const UnicodeString& id,
723 * @param ID the string identifier for this transliterator
728 static UnicodeString& U_EXPORT2 getDisplayName(const UnicodeString& ID,
742 * The strings are formed by splitting the ID for this
744 * entire ID forms the only string.
745 * @param ID the string identifier for this transliterator
752 static UnicodeString& U_EXPORT2 getDisplayName(const UnicodeString& ID,
791 * the two entities in the ID and attempts to retrieve the
810 * Returns a <code>Transliterator</code> object given its ID.
811 * The ID must be either a system transliterator ID or a ID registered
814 * @param ID a valid ID, as enumerated by <code>getAvailableIDs()</code>
819 * @return A <code>Transliterator</code> object with the given ID
825 static Transliterator* U_EXPORT2 createInstance(const UnicodeString& ID,
831 * Returns a <code>Transliterator</code> object given its ID.
832 * The ID must be either a system transliterator ID or a ID registered
834 * @param ID a valid ID, as enumerated by <code>getAvailableIDs()</code>
837 * @return A <code>Transliterator</code> object with the given ID
840 static Transliterator* U_EXPORT2 createInstance(const UnicodeString& ID,
848 * CompoundTransliterator, if it contains ID blocks, or a
849 * NullTransliterator, if it contains ID blocks which parse as
851 * @param ID the id for the transliterator.
859 static Transliterator* U_EXPORT2 createFromRules(const UnicodeString& ID,
966 * a given ID.
967 * @param id the ID being registered
969 * called later when the given ID is passed to createInstance()
971 * later passed to the factory function when an ID matching
972 * the registration ID is being instantiated with this factory.
975 static void U_EXPORT2 registerFactory(const UnicodeString& id,
982 * <tt>createInstance()</tt> is called with an ID string that is
999 * Registers an ID string as an alias of another ID string.
1005 * @param aliasID The new ID being registered.
1006 * @param realID The ID that the new ID is to be an alias for.
1007 * This can be a compound ID and can include filters and should
1019 * @param id the ID being registered
1021 * called later when the given ID is passed to createInstance()
1023 * later passed to the factory function when an ID matching
1024 * the registration ID is being instantiated with this factory.
1026 static void _registerFactory(const UnicodeString& id,
1083 * on its ID will fail.
1085 * @param ID the ID of the transliterator or class
1087 * <code>ID</code>, or <code>null</code> if none was
1092 static void U_EXPORT2 unregister(const UnicodeString& ID);
1227 * Set the ID of this transliterators. Subclasses shouldn't do
1229 * @param id the new id t to be set.
1232 void setID(const UnicodeString& id);
1237 * Return the class ID for this class. This is useful only for
1243 * @return The class ID for class Transliterator.
1249 * Returns a unique class ID <b>polymorphically</b>. This method
1258 * @return The class ID for this object. All objects of a given
1259 * class have the same class ID. Objects of other classes have
1279 * Return the index-th available ID. index must be between 0
1282 * @param index the given ID index.
1283 * @return the index-th available ID. index must be between 0
1297 inline void Transliterator::setID(const UnicodeString& id) {
1298 ID = id;
1299 // NUL-terminate the ID string, which is a non-aliased copy.
1300 ID.append((UChar)0);
1301 ID.truncate(ID.length()-1);