Skip to content

Commit

Permalink
* ext/iconv/iconv.c: fixed document, Iconv#new is no longer an
Browse files Browse the repository at this point in the history
  iterator. thanks to Tanaka Akira <[email protected]>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Mar 15, 2002
1 parent 390ae31 commit 23beb1a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Fri Mar 15 14:02:43 2002 Nobuyoshi Nakada <[email protected]>

* ext/iconv/iconv.c: fixed document, Iconv#new is no longer an
iterator. thanks to Tanaka Akira <[email protected]>.

Thu Mar 14 22:17:45 2002 Nobuyoshi Nakada <[email protected]>

* ext/iconv: imported.
Expand Down
9 changes: 5 additions & 4 deletions ext/iconv/iconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 23beb1a

Please sign in to comment.