api
string.ch
Declarations in string.ch
1 declarationsstd
Declarations
Public only
std#
Publicnamespace
namespace std
u64_double_union#
union
union u64_double_union
dbl_bits#
function
func dbl_bits(x : double) : u64
dbl_from_bits#
function
func dbl_from_bits(b : u64) : double
dbl_is_nan#
function
func dbl_is_nan(x : double) : bool
dbl_is_inf#
function
func dbl_is_inf(x : double) : bool
dbl_is_neg#
function
func dbl_is_neg(x : double) : bool
string#
Publicstruct
struct string {
var storage :
var state : char
}
TODO: remove retained, once we have runtime magic val support
view_make#
PublicfunctionConstructor
view_make2#
PublicfunctionConstructor
constructor2#
PublicfunctionConstructor
func constructor2(value : *char, length : size_t, ensure : bool) : string
the ensure parameter is added just to differentiate signature from constructor above it
equals_view#
Publicfunction
move_data_to_heap#
Publicfunction
func move_data_to_heap(self : &string, from_data : *char, length : size_t, capacity : size_t) : void
resize_heap#
Publicfunction
func resize_heap(self : &string, new_capacity : size_t) : bool
this is a private function
ensure_mut#
Publicfunction
func ensure_mut(self : &string, length : size_t) : void
ensures that capacity is larger than length given and memory is mutable
append_with_len#
Publicfunction
func append_with_len(self : &string, value : *char, len : size_t) : void
append_view#
Publicfunction
append_uinteger#
Publicfunction
func append_uinteger(self : &string, value : u64) : void
Append an *unsigned* 64-bit integer quickly.
append_integer#
Publicfunction
func append_integer(self : &string, value : i64) : void
Append a *signed* 64-bit integer quickly. Handles INT64_MIN safely.
append_double#
Publicfunction
func append_double(self : &string, value : double, precision : int) : void
Simple, fast (but not fully IEEE-perfect) conversion that supports a
find#
Publicfunction
find_last#
Publicfunction
contains#
Publicfunction
starts_with#
Publicfunction
trim#
Publicfunction
split#
Publicfunction
ends_with#
Publicfunction
to_view#
Publicfunction
to_i8#
Publicfunction
to_i16#
Publicfunction
to_i32#
Publicfunction
to_i64#
Publicfunction
to_u8#
Publicfunction
to_u16#
Publicfunction
to_u32#
Publicfunction
to_u64#
Publicfunction
to_int#
Publicfunction
to_uint#
Publicfunction
to_float#
Publicfunction
to_double#
Publicfunction
stream#
Publicfunction
TODO: unstable, no interface involved, signature not stable