We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cef1e0 commit e3d16d3Copy full SHA for e3d16d3
doc/stringio/getc.rdoc
@@ -12,9 +12,9 @@ Returns +nil+ if at end-of-stream:
12
13
Returns characters, not bytes:
14
15
- strio = StringIO.new('тест')
16
- strio.getc # => "т"
17
- strio.getc # => "е"
+ strio = StringIO.new('Привет')
+ strio.getc # => "П"
+ strio.getc # => "р"
18
19
strio = StringIO.new('こんにちは')
20
strio.getc # => "こ"
@@ -31,4 +31,4 @@ in other cases that need not be true:
31
strio.pos = 5 # => 5 # At third byte of second character; returns byte.
32
strio.getc # => "\x93"
33
34
-Related: StringIO.getbyte.
+Related: #getbyte, #putc, #ungetc.
0 commit comments