mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 10 additions and 4 deletions
|
@ -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>
|
||||
|
||||
* ext/iconv: imported.
|
||||
|
|
|
@ -418,14 +418,15 @@ iconv_s_open
|
|||
=begin
|
||||
--- Iconv.iconv(to, from, *strs)
|
||||
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
|
||||
:((|to|)), ((|from|))
|
||||
see ((<Iconv.new>)).
|
||||
:((|strs|))
|
||||
strings to be converted.
|
||||
:Exceptions
|
||||
exceptions thrown by ((<Iconv.new>)) and ((<Iconv#iconv>)).
|
||||
exceptions thrown by ((<Iconv.new>)), ((<Iconv.open>)) and
|
||||
((<Iconv#iconv>)).
|
||||
=end
|
||||
*/
|
||||
|
||||
|
@ -723,8 +724,8 @@ Init_iconv _((void))
|
|||
ensure
|
||||
cd.close
|
||||
end
|
||||
(2) Invoke ((<Iconv.new>)) with a block.
|
||||
Iconv.new(to, from) do |cd|
|
||||
(2) Invoke ((<Iconv.open>)) with a block.
|
||||
Iconv.open(to, from) do |cd|
|
||||
input.each {|s| output << cd.iconv(s)}
|
||||
output << cd.iconv(nil)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue