Constructs from start and end pointers.
Constructs from a start pointer and a length value. NB: use 'u' suffix on int literals, e.g.: this(str.ptr, 13u)
Constructs from a character array.
Constructs from a character-terminated string.
Constructs from Strings by joining them with joinStr.
Constructs from a single character.
Explicit constness for construction.
Explicit constness for construction.
Searches for character c.
Searches for s.
Searches for character c.
Searches for s.
Searches for character c starting from the end.
Searches for s starting from the end, returning the index.
Searches for character c, returning a pointer.
Searches for s starting from the end, returning a pointer.
Divides the String into num parts. The remainder is appended to the last piece.
Returns a copy.
Returns true if this String ends with suffix.
Returns true if this String ends with one of the specified suffixes.
Searches for character c.
Searches for s.
Searches for character c starting from the end.
Searches for s starting from the end.
Calculates a hash value. Note: The value will differ between 32bit and 64bit systems, and also between little and big endian systems.
Compares two Strings ignoring case (only ASCII.)
Compares two Strings ignoring case for equality (only ASCII.)
Returns a pointer from an index number. When x is negative it is subtracted from the end pointer.
Returns true if the string is empty.
Returns true if pointers are null.
Concatenates strs using this String as a separator.
Returns the byte length.
Like join, but also prepends the separator.
Like join, but also prepends the separator.
Concatenates x copies of this string.
Divides the String into num parts. The remainder is appended to the last piece.
Appends another string or character. Returns a new object.
Returns a pointer to the first character, if this String is in rhs.
Concatenates x copies of this string.
Returns a pointer to the first character, if lhs is in this String.
Converts to bool.
Converts to an array string.
Compares the chars of two Strings.
Compares the bytes of two Strings for exact equality.
Compares to a boolean value.
Returns the character at position x.
Assigns c at position x.
Appends another string or character. Returns itself.
Returns a character array.
Returns a slice.
Searches for sep and returns the part before and after that.
Returns a list of Strings where each piece is of length n. The last piece may be shorter.
Returns itself reversed.
Returns a reversed String.
Like join, but also appends the separator.
Searches for sep and returns the part before and after that.
Returns true if this string is a slice of s.
Splits by String s and returns a list of slices.
Returns true if this String starts with prefix.
Returns true if this String starts with one of the specified prefixes.
Substitutes a with b.
Substitutes a with b.
Concatenates x copies of this string.
Encodes the byte characters with hexadecimal digits.
Returns true if the string is empty.
Converts to lower-case (only ASCII.)
Converts to upper-case (only ASCII.)
Returns 'a' if RT is of type size_t, otherwise 'b'.
Return true if lower-case.
Return true if upper-case.
Constructs from an unsigned long. NB: Not a regular constructor because "char" converts implicitly to ulong.
Converts t to S in case it's a different type than S.
Returns the lower-case version of c.
Returns the upper-case version of c.
A dummy struct to simulate "tail const".
A string implementation that uses two pointers, as opposed to one pointer and a size variable.