class ICU::Transliterator
- ICU::Transliterator
- Reference
- Object
Overview
Text Transformation Transliteration
Usage
trans = ICU::Transliterator.new({from: "Greek", to: "Latin"})
trans.transliterate("Αλφαβητικός Κατάλογος") # => "Alphabētikós Katálogos"
trans = ICU::Transliterator.new("Katakana-Hiragana")
trans.transliterate("ミヤモト ムサシ") # => "みやもと むさし"
See also
Defined in:
icu/transliterator.crConstant Summary
-
IDS =
begin ids = (0...LibICU.utrans_count_available_i_ds).map do |i| buf = Bytes.new(50) size = LibICU.utrans_get_available_id(i, buf, buf.size) str2id(String.new(buf[0, size])) end Set(ID).new(ids) end
-
The list of available transliterators
Constructors
Class Method Summary
Instance Method Summary
- #finalize
- #reverse!
- #to_unsafe : Pointer(Pointer(Void))
-
#transliterate(text : String) : String
Transliterates text
Constructor Detail
Class Method Detail
Instance Method Detail
Transliterates text
trans = ICU::Transliterator.new({from: "Greek", to: "Latin})
trans.transliterate("Αλφαβητικός Κατάλογος") # => "Alphabētikós Katálogos"