Mercurial > projects > dwt2
view base/src/java/io/StringReader.d @ 104:88652073d1c2
More work on icu
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 02 May 2009 11:27:24 +0200 |
parents | 1bf55a6eb092 |
children |
line wrap: on
line source
module java.io.StringReader; import java.lang.all; import java.io.Reader; class StringReader : Reader { String str; this( String str ){ implMissing(__FILE__,__LINE__); this.str = str; } public override int read(char[] cbuf, int off, int len){ cbuf[ off .. off+len ] = str[ 0 .. len ]; str = str[ len .. $ ]; return len; } public override void close(){ } }