Home | History | Annotate | Download | only in unicode

Lines Matching defs:Transliterator

39  * <code>Transliterator</code> is an abstract class that
41 * kind of transliterator is a script, or alphabet, transliterator.
42 * For example, a Russian to Latin transliterator changes Russian text
49 * transliterator can actually perform a more general class of tasks.
50 * In fact, <code>Transliterator</code> defines a very general API
53 * entirely by subclasses of <code>Transliterator</code>.
57 * <p><code>Transliterator</code> objects are <em>stateless</em>; they
67 * <code>Transliterator</code> objects are stateless, the source text
76 * and a transliterator <code>t</code>, the call
107 * transliterator is waiting to see if the next character is 'h'. To
129 * marks the beginning of the substring that the transliterator will
133 * which the transliterator last stopped, either because it reached
141 * the transliterator looks at.
155 * example, if transliterator <b>A</b> transliterates characters by
157 * transliterator <b>B</b> decrements character values, then <b>A</b>
159 * with <b>B</b> in a compound transliterator, the result is the
160 * indentity transliterator, that is, a transliterator that does not
163 * The <code>Transliterator</code> method <code>getInverse()</code>
164 * returns a transliterator's inverse, if one exists, or
189 * <p>A transliterator is designated by a short identifier string or
195 * transliterator converts to or from. For example, a transliterator
197 * transliterator from keyboard escape sequences to Latin-1 characters
203 * <p>In addition to programmatic IDs, transliterator objects have
211 * transliterator given its ID. Valid IDs may be enumerated using
222 * <tt>clone()</tt> propertly. To register a transliterator subclass
241 class U_I18N_API Transliterator : public UObject {
251 * This transliterator's filter. Any character for which
253 * altered by this transliterator. If <tt>filter</tt> is
295 * A function that creates and returns a Transliterator. When
301 * ID or the context parameter to parameterize the transliterator
303 * @param ID the string identifier for this transliterator
309 typedef Transliterator* (U_EXPORT2 *Factory)(const UnicodeString& ID, Token context);
315 * @param ID the string identifier for this transliterator
318 * altered by this transliterator. If <tt>filter</tt> is
322 Transliterator(const UnicodeString& ID, UnicodeFilter* adoptedFilter);
328 Transliterator(const Transliterator&);
334 Transliterator& operator=(const Transliterator&);
337 * Create a transliterator from a basic ID. This is an ID
343 * @return a newly created Transliterator or null if the ID is
347 static Transliterator* createBasicInstance(const UnicodeString& id,
360 virtual ~Transliterator();
376 virtual Transliterator* clone() const;
410 * Then the transliterator will try to transliterate characters of
568 * transliterator and characters [<code>pos.start</code>,
632 * another transliterator, such as CompoundTransliterator.
653 * <p>If this transliterator has a filter, break up the input text into runs
681 * Returns the length of the longest context required by this transliterator.
683 * by <code>Transliterator</code> returns zero; subclasses
685 * correct value. For example, if a transliterator translates "ddd" (where
690 * transliterator needs to examine
708 * Returns a programmatic identifier for this transliterator.
711 * @return a programmatic identifier for this transliterator.
720 * Returns a name for this transliterator that is appropriate for
723 * @param ID the string identifier for this transliterator
732 * Returns a name for this transliterator that is appropriate for
743 * transliterator at the first '-'. If there is no '-', then the
745 * @param ID the string identifier for this transliterator
757 * Returns the filter used by this transliterator, or <tt>NULL</tt>
758 * if this transliterator uses no filter.
759 * @return the filter used by this transliterator, or <tt>NULL</tt>
760 * if this transliterator uses no filter.
766 * Returns the filter used by this transliterator
767 * transliterator uses no filter. The caller must eventually delete the
768 * result. After this call, this transliterator's filter is set to
770 * @return the filter used by this transliterator, or <tt>NULL</tt> if this
771 * transliterator uses no filter.
777 * Changes the filter used by this transliterator. If the filter
780 * <p>Callers must take care if a transliterator is in use by
789 * Returns this transliterator's inverse. See the class
792 * resulting transliterator. That is, if <code>getID()</code>
801 * @return a transliterator that is an inverse, not necessarily
802 * exact, of this transliterator, or <code>null</code> if no such
803 * transliterator is registered.
807 Transliterator* createInverse(UErrorCode& status) const;
810 * Returns a <code>Transliterator</code> object given its ID.
811 * The ID must be either a system transliterator ID or a ID registered
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
837 * @return A <code>Transliterator</code> object with the given ID
840 static Transliterator* U_EXPORT2 createInstance(const UnicodeString& ID,
845 * Returns a <code>Transliterator</code> object constructed from
851 * @param ID the id for the transliterator.
859 static Transliterator* U_EXPORT2 createFromRules(const UnicodeString& ID,
867 * to recreate this transliterator.
880 * Return the number of elements that make up this transliterator.
881 * For example, if the transliterator "NFD;Jamo-Latin;Latin-Greek"
884 * <p>If this transliterator is not composed of other
887 * transliterator, or 1 if this transliterator is not composed of
894 * Return an element that makes up this transliterator. For
895 * example, if the transliterator "NFD;Jamo-Latin;Latin-Greek"
897 * of the three transliterator objects that make up that
898 * transliterator: [NFD, Jamo-Latin, Latin-Greek].
900 * <p>If this transliterator is not composed of other
902 * this transliterator when given the index 0.
904 * transliterator to return
907 * transliterator, if this transliterator is made up of multiple
912 const Transliterator& getElement(int32_t index, UErrorCode& ec) const;
916 * input text by this Transliterator. This incorporates this
933 * may be modified in the input text by this Transliterator,
937 * @return the set of characters that this transliterator may
949 * replacement text by this transliterator. The default
981 * <code>Transliterator</code> with the system. When
986 * After this call the Transliterator class owns the adoptedObj
990 * <code>Transliterator</code> that defines <tt>clone()</tt>
996 static void U_EXPORT2 registerInstance(Transliterator* adoptedObj);
1033 static void _registerInstance(Transliterator* adoptedObj);
1043 * Transliterator to form the following inverse relationships:
1080 * Unregisters a transliterator or class. This may be either
1081 * a system transliterator or a user transliterator or class.
1082 * Any attempt to construct an unregistered transliterator based
1085 * @param ID the ID of the transliterator or class
1239 * Note that Transliterator is an abstract base class, and therefor
1242 * TRansliterator::getStaticClassID().
1243 * @return The class ID for class Transliterator.
1254 * <p>Concrete subclasses of Transliterator must use the
1293 inline int32_t Transliterator::getMaximumContextLength(void) const {
1297 inline void Transliterator::setID(const UnicodeString& id) {
1304 inline Transliterator::Token Transliterator::integerToken(int32_t i) {
1310 inline Transliterator::Token Transliterator::pointerToken(void* p) {