Method: ICU::CharDet::Detector#detectable_charsets
- Defined in:
- lib/ffi-icu/chardet.rb
#detectable_charsets ⇒ Object
51 52 53 54 55 56 57 58 59 60 |
# File 'lib/ffi-icu/chardet.rb', line 51 def detectable_charsets enum_ptr = Lib.check_error do |ptr| Lib.ucsdet_getAllDetectableCharsets(@detector, ptr) end result = Lib.enum_ptr_to_array(enum_ptr) Lib.uenum_close(enum_ptr) result end |