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
297 * A function that creates and returns a Transliterator. When
303 * ID or the context parameter to parameterize the transliterator
305 * @param ID the string identifier for this transliterator
311 typedef Transliterator* (U_EXPORT2 *Factory)(const UnicodeString& ID, Token context);
317 * @param ID the string identifier for this transliterator
320 * altered by this transliterator. If <tt>filter</tt> is
324 Transliterator(const UnicodeString& ID, UnicodeFilter* adoptedFilter);
330 Transliterator(const Transliterator&);
336 Transliterator& operator=(const Transliterator&);
339 * Create a transliterator from a basic ID. This is an ID
345 * @return a newly created Transliterator or null if the ID is
349 static Transliterator* createBasicInstance(const UnicodeString& id,
362 virtual ~Transliterator();
378 virtual Transliterator* clone() const;
412 * Then the transliterator will try to transliterate characters of
569 * transliterator and characters [<code>pos.start</code>,
633 * another transliterator, such as CompoundTransliterator.
654 * <p>If this transliterator has a filter, break up the input text into runs
682 * Returns the length of the longest context required by this transliterator.
684 * by <code>Transliterator</code> returns zero; subclasses
686 * correct value. For example, if a transliterator translates "ddd" (where
691 * transliterator needs to examine
709 * Returns a programmatic identifier for this transliterator.
712 * @return a programmatic identifier for this transliterator.
721 * Returns a name for this transliterator that is appropriate for
724 * @param ID the string identifier for this transliterator
733 * Returns a name for this transliterator that is appropriate for
744 * transliterator at the first '-'. If there is no '-', then the
746 * @param ID the string identifier for this transliterator
758 * Returns the filter used by this transliterator, or <tt>NULL</tt>
759 * if this transliterator uses no filter.
760 * @return the filter used by this transliterator, or <tt>NULL</tt>
761 * if this transliterator uses no filter.
767 transliterator, or <tt>NULL</tt> if this
768 * transliterator uses no filter. The caller must eventually delete the
769 * result. After this call, this transliterator's filter is set to
771 * @return the filter used by this transliterator, or <tt>NULL</tt> if this
772 * transliterator uses no filter.
778 * Changes the filter used by this transliterator. If the filter
781 * <p>Callers must take care if a transliterator is in use by
790 * Returns this transliterator's inverse. See the class
793 * resulting transliterator. That is, if <code>getID()</code>
802 * @return a transliterator that is an inverse, not necessarily
803 * exact, of this transliterator, or <code>null</code> if no such
804 * transliterator is registered.
808 Transliterator* createInverse(UErrorCode& status) const;
811 * Returns a <code>Transliterator</code> object given its ID.
812 * The ID must be either a system transliterator ID or a ID registered
820 * @return A <code>Transliterator</code> object with the given ID
826 static Transliterator* U_EXPORT2 createInstance(const UnicodeString& ID,
832 * Returns a <code>Transliterator</code> object given its ID.
833 * The ID must be either a system transliterator ID or a ID registered
838 * @return A <code>Transliterator</code> object with the given ID
841 static Transliterator* U_EXPORT2 createInstance(const UnicodeString& ID,
846 * Returns a <code>Transliterator</code> object constructed from
852 * @param ID the id for the transliterator.
860 static Transliterator* U_EXPORT2 createFromRules(const UnicodeString& ID,
868 * to recreate this transliterator.
881 * Return the number of elements that make up this transliterator.
882 * For example, if the transliterator "NFD;Jamo-Latin;Latin-Greek"
885 * <p>If this transliterator is not composed of other
888 * transliterator, or 1 if this transliterator is not composed of
895 * Return an element that makes up this transliterator. For
896 * example, if the transliterator "NFD;Jamo-Latin;Latin-Greek"
898 * of the three transliterator objects that make up that
899 * transliterator: [NFD, Jamo-Latin, Latin-Greek].
901 * <p>If this transliterator is not composed of other
903 * this transliterator when given the index 0.
905 * transliterator to return
908 * transliterator, if this transliterator is made up of multiple
913 const Transliterator& getElement(int32_t index, UErrorCode& ec) const;
917 * input text by this Transliterator. This incorporates this
934 * may be modified in the input text by this Transliterator,
938 * @return the set of characters that this transliterator may
950 * replacement text by this transliterator. The default
982 * <code>Transliterator</code> with the system. When
987 * After this call the Transliterator class owns the adoptedObj
991 * <code>Transliterator</code> that defines <tt>clone()</tt>
997 static void U_EXPORT2 registerInstance(Transliterator* adoptedObj);
1035 static void _registerInstance(Transliterator* adoptedObj);
1045 * Transliterator to form the following inverse relationships:
1083 * Unregisters a transliterator or class. This may be either
1084 * a system transliterator or a user transliterator or class.
1085 * Any attempt to construct an unregistered transliterator based
1088 * @param ID the ID of the transliterator or class
1244 * Note that Transliterator is an abstract base class, and therefor
1247 * TRansliterator::getStaticClassID().
1248 * @return The class ID for class Transliterator.
1259 * <p>Concrete subclasses of Transliterator must use the
1300 inline int32_t Transliterator::getMaximumContextLength(void) const {
1304 inline void Transliterator::setID(const UnicodeString& id) {
1312 inline Transliterator::Token Transliterator::integerToken(int32_t i) {
1318 inline Transliterator::Token Transliterator::pointerToken(void* p) {