struct

Nucleoc::Utf32String

Inherits Struct < Value < Object

Owned UTF-32 string

Constructors

from(str : String) : Utf32String
Source
new(str : String, ascii : Bool)
Source

Instance methods

empty?
Source
slice(range : Range(Int32, Int32)) : Utf32Str
Source
slice
Source
slice_u32(range : Range(UInt32, UInt32)) : Utf32Str
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source

Nested types