enum

Ansi::Method

Inherits Enum < Comparable < Value < Object

Constants

WcWidth = 0_u8
GraphemeWidth = 1_u8

Instance methods

cut(s : String, left : Int32, right : Int32) : String
Source
decode_sequence(data : Bytes, state : UInt8, p : Parser | Nil = nil) : Tuple(Bytes, Int32, Int32, UInt8)
Source
decode_sequence_in_string(data : String, state : UInt8, p : Parser | Nil = nil) : Tuple(String, Int32, Int32, UInt8)
Source
grapheme_width?

Returns true if this enum value equals GraphemeWidth

Source
hardwrap(s : String, length : Int32, preserve_space : Bool) : String
Source
string_width(s : String) : Int32
Source
truncate(s : String, length : Int32, tail : String) : String
Source
truncate_left(s : String, length : Int32, prefix : String) : String
Source
wc_width?

Returns true if this enum value equals WcWidth

Source
wordwrap(s : String, length : Int32, breakpoints : String) : String
Source
wrap(s : String, length : Int32, breakpoints : String) : String
Source