aiken/string

Functions

concat(left: String, right: String) -> String

Combine two String together.

string.concat(left: @"Hello", right: @", World!") == @"Hello, World!"

from_bytearray(bytes: ByteArray) -> String

Convert a ByteArray into a String

string.from_bytearray("foo") == @"foo"
string.from_bytearray(#"666f6f") == @"foo"

from_int(n: Int) -> String

Convert an Int to its String representation.

string.from_int(42) == @"42"

join(list: List<String>, delimiter: String) -> String

Join a list of strings, separated by a given delimiter.

string.join([], @"+") == @""
string.join([@"a", @"b", @"c"], @",") == @"a,b,c"

to_bytearray(self: String) -> ByteArray

Convert a String into a ByteArray

string.to_bytearray(@"foo") == "foo"
Search Document