Skip to content

std::jule::constant::lit

Functions

jule
fn IsAscii(r: rune): bool

Reports whether rune is byte actually. In other words, whether rune is ASCII.


jule
fn ToRune(bytes: []byte): rune

Returns rune value string from bytes, not includes quotes.
Bytes are represents rune literal, allows escape sequences.
Returns empty string if len(bytes) == 0


jule
fn ToRawStr(bytes: []byte): str

Returns raw-string value string from bytes, not includes quotes.
Bytes are represents string characters.
Returns empty string if len(bytes) == 0


jule
fn ToStr(bytes: []byte): str

Returns string value string from bytes, not includes quotes.
Bytes are represents string characters, allows escape sequences.
Returns empty string if len(bytes) == 0