* ext/iconv/iconv.c: fixed document, Iconv#new is no longer an
iterator. thanks to Tanaka Akira <akr@m17n.org>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
390ae31a6f
commit
23beb1a9dd
@ -1,3 +1,8 @@
|
|||||||
|
Fri Mar 15 14:02:43 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||||
|
|
||||||
|
* ext/iconv/iconv.c: fixed document, Iconv#new is no longer an
|
||||||
|
iterator. thanks to Tanaka Akira <akr@m17n.org>.
|
||||||
|
|
||||||
Thu Mar 14 22:17:45 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
Thu Mar 14 22:17:45 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||||
|
|
||||||
* ext/iconv: imported.
|
* ext/iconv: imported.
|
||||||
|
@ -418,14 +418,15 @@ iconv_s_open
|
|||||||
=begin
|
=begin
|
||||||
--- Iconv.iconv(to, from, *strs)
|
--- Iconv.iconv(to, from, *strs)
|
||||||
Shorthand for
|
Shorthand for
|
||||||
Iconv.new(to, from) {|cd| (strs + nil).collect {|s| cd.iconv(s)}}
|
Iconv.open(to, from) {|cd| (strs + nil).collect {|s| cd.iconv(s)}}
|
||||||
:Parameters
|
:Parameters
|
||||||
:((|to|)), ((|from|))
|
:((|to|)), ((|from|))
|
||||||
see ((<Iconv.new>)).
|
see ((<Iconv.new>)).
|
||||||
:((|strs|))
|
:((|strs|))
|
||||||
strings to be converted.
|
strings to be converted.
|
||||||
:Exceptions
|
:Exceptions
|
||||||
exceptions thrown by ((<Iconv.new>)) and ((<Iconv#iconv>)).
|
exceptions thrown by ((<Iconv.new>)), ((<Iconv.open>)) and
|
||||||
|
((<Iconv#iconv>)).
|
||||||
=end
|
=end
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -723,8 +724,8 @@ Init_iconv _((void))
|
|||||||
ensure
|
ensure
|
||||||
cd.close
|
cd.close
|
||||||
end
|
end
|
||||||
(2) Invoke ((<Iconv.new>)) with a block.
|
(2) Invoke ((<Iconv.open>)) with a block.
|
||||||
Iconv.new(to, from) do |cd|
|
Iconv.open(to, from) do |cd|
|
||||||
input.each {|s| output << cd.iconv(s)}
|
input.each {|s| output << cd.iconv(s)}
|
||||||
output << cd.iconv(nil)
|
output << cd.iconv(nil)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user