getch()
Instance Public methods
Scans one character and returns it. This method is multibyte character sensitive.
1 2 3 4 5 6 7 8 9 | s = StringScanner. new ( "ab" ) s.getch # => "a" s.getch # => "b" s.getch # => nil $KCODE = 'EUC' s = StringScanner. new ( "\244\242" ) s.getch # => "\244\242" # Japanese hira-kana "A" in EUC-JP s.getch # => nil |
Please login to continue.