ruby--ruby/ext/stringio
nobu e223518948 * ext/stringio/stringio.c (check_modifiable): performance
improvement.  avoid calling rb_str_modify() twice.

* ext/stringio/stringio.c (strio_ungetc): ditto.

* ext/stringio/stringio.c (strio_putc): ditto.

* ext/stringio/stringio.c (strio_write): ditto, and use
  rb_str_cat() as possible.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-04-09 03:52:39 +00:00
..
MANIFEST
README
depend
stringio.c * ext/stringio/stringio.c (check_modifiable): performance 2002-04-09 03:52:39 +00:00

README

-*- 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