class Chem::IO::TextIO

Defined in:

chem/io/text_io.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(io : ::IO, buffer_size = 8192) #

[View source]

Instance Method Detail

def check(& : Char -> Bool) : Bool #

[View source]
def check(byte : Int) : Bool #

[View source]
def check(byte : Char) : Bool #

[View source]
def check(strings : Enumerable(String)) : Bool #

[View source]
def check(charsets : Enumerable) : Bool #

[View source]
def check(str : String) : Bool #

[View source]
def check(*charsets : Char | Enumerable(Char)) : Bool #

[View source]
def check(*strings : String) : Bool #

[View source]
def close(*args, **options) #

[View source]
def close(*args, **options, &) #

[View source]
def count_bytes_while(offset : Int = 0, & : UInt8 -> Bool) : Int32 #

[View source]
def each_byte(& : UInt8 -> ) : Nil #

[View source]
def eof? : Bool #

[View source]
def eol?(ignore_spaces : Bool = true) : Bool #

[View source]
def peek(count : Int) : String #

[View source]
def peek : Char | Nil #

[View source]
def peek_byte : UInt8 | Nil #

[View source]
def peek_bytes(count : Int) : Bytes #

[View source]
def peek_line : String #

[View source]
def read(count : Int) : String #

[View source]
def read : Char #

[View source]
def read? : Char | Nil #

[View source]
def read_byte : UInt8 #

[View source]
def read_byte? : UInt8 | Nil #

[View source]
def read_bytes(count : Int) : Bytes #

[View source]
def read_bytes_to_end : Bytes #

[View source]
def read_bytes_until(delim : Char) : Bytes #

[View source]
def read_bytes_until(byte : UInt8) : Bytes #

[View source]
def read_float(strict : Bool = true) : Float64 #

[View source]
def read_float?(strict : Bool = true) : Float64 | Nil #

[View source]
def read_int(strict : Bool = true) : Int32 #

[View source]
def read_int?(strict : Bool = true) : Int32 | Nil #

[View source]
def read_line : String #

[View source]
def read_to_end : String #

[View source]
def read_until(delim : Char) : String #

[View source]
def read_vector : Chem::Spatial::Vector #

[View source]
def read_vector? : Chem::Spatial::Vector | Nil #

[View source]
def read_word : String #

[View source]
def read_word? : String | Nil #

[View source]
def scan(& : Char -> Bool) : String #

[View source]
def scan(sets : Enumerable) : String #

[View source]
def scan(*sets : Char | Enumerable(Char)) : String #

[View source]
def scan_bytes(& : UInt8 -> Bool) : Bytes #

[View source]
def skip(sets : Enumerable) : self #

[View source]
def skip(*sets : Char | Enumerable(Char)) : self #

[View source]
def skip_bytes(count : Int) : self #

[View source]
def skip_line : self #

[View source]
def skip_spaces : self #

[View source]
def skip_to_end : self #

[View source]
def skip_until(& : UInt8 -> Bool) : self #

[View source]
def skip_until(*delim : Char) : self #

[View source]
def skip_until(*bytes : Int) : self #

[View source]
def skip_while(& : UInt8 -> Bool) : self #

[View source]
def skip_whitespace : self #

[View source]
def skip_word : self #

[View source]