class Lexbor::EncodingConverter
- Lexbor::EncodingConverter
- Reference
- Object
Defined in:
lexbor/utils/encoding_converter.crConstant Summary
-
REPLACEMENT_BYTES =
"�"
Constructors
- .new(from : LibEncoding::EncodingT | String, to : LibEncoding::EncodingT | String, replace_str : String | Nil = nil, buffer_size = 4 * 1024)
- .new(from : LibEncoding::DataT, to : LibEncoding::DataT, replace_str : String | Nil = nil, buffer_size : Int32 = 4 * 1024)
Instance Method Summary
- #convert(io : IO, &)
- #convert(io : IO) : String
- #convert(s : String, &)
- #convert(s : String) : String
- #convert(s : Slice, &)
- #convert(s : Slice) : String
Constructor Detail
def self.new(from : LibEncoding::EncodingT | String, to : LibEncoding::EncodingT | String, replace_str : String | Nil = nil, buffer_size = 4 * 1024)
#
def self.new(from : LibEncoding::DataT, to : LibEncoding::DataT, replace_str : String | Nil = nil, buffer_size : Int32 = 4 * 1024)
#