1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/stringio
nobu 12eee69294 * ext/stringio/stringio.c (strio_read): behave as IO at empty string.
[ruby-dev:21939]

* ext/stringio/stringio.c (strio_getc, strio_getline): set EOF flag.

* ext/stringio/stringio.c (strio_rewind, strio_seek, strio_ungetc):
  clear EOF flag.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-18 09:09:41 +00:00
..
.cvsignore * configure.in: modify program_prefix only if specified 2002-09-08 09:08:15 +00:00
depend * ext/stringio/depend: added. 2002-03-17 11:07:53 +00:00
MANIFEST * ext/digest: add depend file. 2002-03-18 09:24:39 +00:00
README Initial revision 2002-02-19 13:16:23 +00:00
stringio.c * ext/stringio/stringio.c (strio_read): behave as IO at empty string. 2003-11-18 09:09:41 +00:00

-*- rd -*-
$Author$
$Date$

=begin

= StringIO
Pseudo (({IO})) class from/to (({String})).

This library is based on MoonWolf version written in Ruby.  Thanks a lot.

= Differences to (({IO}))

* not implemented: (({fcntl})), (({reopen})).
* (({fileno})) returns nil.
* (({pos=})) returns new position, not 0.
* (({ungetc})) does nothing at start of the string. 

=end