diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/iconv/iconv.c | 9 |
2 files changed, 10 insertions, 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. diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 74d9a5d9f7..bf1528d21a 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -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 |