Struct rust_icu_utrans::UTransliterator [−][src]
pub struct UTransliterator { /* fields omitted */ }
Expand description
Rust wrapper for the ICU UTransliterator
type.
Implementations
Returns an enumeration containing the identifiers of all available transliterators.
Implements utrans_openIDs
.
Consumes trans
and registers it with the underlying ICU system.
A transliterator that has been registered with the system can be
retrieved by calling new
with its identifier.
Implements utrans_register
.
If rules are given, creates a new transliterator with rules and identifier. Otherwise, returns the ICU system transliterator with the given identifier.
Implements utrans_openU
.
pub fn new_ustring(
id: &UChar,
rules: Option<&UChar>,
dir: UTransDirection
) -> Result<Self, Error>
pub fn new_ustring(
id: &UChar,
rules: Option<&UChar>,
dir: UTransDirection
) -> Result<Self, Error>
Implements utrans_openU
.
Returns the identifier for this transliterator.
Implements utrans_getUnicodeID
.
Returns the inverse of this transliterator, provided that the inverse
has been registered with the underlying ICU system, i.e., a built-in
ICU transliterator or one registered with register
.
Implements utrans_openInverse
.
Returns a rules string for this transliterator in the same format
expected by new
.
Implements utrans_toRules
.
Apply a filter to this transliterator, causing certain characters to
pass through untouched. The filter is formatted as a
UnicodeSet
string. If the filter is None
, then any previously-applied filter
is cleared.
Implements utrans_setFilter
.
Implements utrans_setFilter
.
Returns a string containing the transliterated text.
Implements utrans_transUChars
.
Implements utrans_transUChars
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UTransliterator
impl !Send for UTransliterator
impl !Sync for UTransliterator
impl Unpin for UTransliterator
impl UnwindSafe for UTransliterator
Blanket Implementations
Mutably borrows from an owned value. Read more