Fuzion Logo
flang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

string

🌌string

string -- immutable sequences of utf8 encoded unicode characters

convert this string into a List of codepoint and errors for encoding problems
found in the underlying utf8 bytes

converting a string to a string is just returning string.this

length of this string in bytes

length of this string in codepoints

convert this string into a stream of codepoint and errors for encoding problems
found in the underlying utf8 bytes

convert this string into an array of codepoints.

the stream instance returned by asCodepoints

does this string contain the given 'substring'

§count(substring string)
 => 
i32
:
Object

count number of occurances of given 'substring' in this string

check if this string ends with given suffix

find (utf8-byte-) index of 'substring' witin this string.

create hash code from a string

repeat string given number of times

concatenate string with string representation of another object

does this come before other?

This defines a total order over strings that is unrelated to alphabetic order.

compare string byte-by-byte with other string

is c an ASCII white-space character? Used by split.

is this string empty?

internal helper to create error for failed parsing

parse this string as a signed 32-bit integer value

parse this string as a signed 64-bit integer value

parse this string as an int value of arbitrary size

parse this string as a integer value given as type parameter

parse this string as an unsigned 32-bit integer value

parse this string as an unsigned 64-bit integer value

replace all occurances of f within l by r

Split string separated by (ASCII) white space

Leading and trailing white space is ignored, repeated white space is treated
like a single white space

The result is a, possibly empty, list of separate non-empty strings.

check if this string starts with given prefix

create substring of this string consisting of codepoints from (inclusive) .. codepontLength (exclusive).

remove leading and traling white space from this string

any concrete string must implement utf8