ballerina/lang.string : 0.0.0
Module overview
The lang.string
module corresponds to the string
basic type.
Functions
[25]
'join | Joins zero or more strings together with a separator. |
codePointCompare | Lexicographically compares strings using their Unicode code points. |
concat | Concatenates zero or more strings. |
endsWith | Tests whether a string ends with another string. |
equalsIgnoreCaseAscii | Tests whether two strings are the same, ignoring the case of ASCII characters. |
fromBytes | Constructs a string from its UTF-8 representation in bytes. |
fromCodePointInt | Constructs a single character string from a code point. |
fromCodePointInts | Constructs a string from an array of code points. |
getCodePoint | Returns the code point of a character in a string. |
includes | Tests whether a string includes another string. |
indexOf | Finds the first occurrence of one string in another string. |
iterator | Returns an iterator over the string. |
lastIndexOf | Finds the last occurrence of one string in another string. |
length | Returns the length of the string. |
padEnd | Adds padding to the end of a string. |
padStart | Adds padding to the start of a string. |
padZero | Pads a string with zeros. |
startsWith | Tests whether a string starts with another string. |
substring | Returns a substring of a string. |
toBytes | Represents a string as an array of bytes using UTF-8. |
toCodePointInt | Converts a single character string to a code point. |
toCodePointInts | Converts a string to an array of code points. |
toLowerAscii | Converts occurrences of A-Z to a-z. |
toUpperAscii | Converts occurrences of a-z to A-Z. |
trim | Removes ASCII white space characters from the start and end of a string. |
Types
[1]
Char | Built-in subtype of string containing strings of length 1. |