This library is free software; you can redistribute it and/or modify
it under the terms of Ruby's Lisence. See COPYING and/or COPYING.ja
file in ruby distribtion.
Equivalents to Iconv.new except with in the case of called
with a block, yields with the new instance and closes it, and
returns the result which returned from the block.
In the case of str is String, converts str[start, length].
Returns converted string.
In the case of str is nil, places converter
itself into initial shift state and just returns a string contains
the byte sequence to change the output buffer to its initial shift
state.
Returns string(s) translated successfully until the exception occurred.
In the case of failure occurred within Iconv.iconv, returned
value is an array of strings translated successfully preceding
failure and the last element is string on the way.