scoop:scoop.std:0.1.0
scoop.text
API
-
class
NumberFormatException
Text could not be parsed as the requested numeric or strict Boolean value.
-
function
contains
Tests for an exact literal occurrence, without case folding.
-
function
endsWith
Tests for an exact literal suffix, without case folding.
-
function
hexToByteArray
Decodes an even-length hexadecimal string; malformed input throws IllegalArgumentException.
-
function
hexToByteArrayOrNone
Decodes an even-length hexadecimal string, returning None for invalid digits or odd length.
-
function
indexOf
Returns the first matching Unicode-scalar index at or after startIndex, or -1. The starting index must be in 0..charLength.
-
function
isBlank
Returns whether every scalar satisfies the predicate, or Unicode White_Space when no predicate is supplied. Empty text is blank.
-
function
isNotBlank
Returns whether at least one scalar fails the predicate, or is not Unicode White_Space when no predicate is supplied.
-
function
lastIndexOf
Returns the last matching Unicode-scalar start index no greater than startIndex, or -1. The starting index must be in 0..charLength.
-
function
lineSequence
Lazily splits on LF, CR, or CRLF, omitting line separators and retaining a final empty line after a trailing separator.
-
function
lines
Returns lines split on LF, CR, or CRLF, retaining a final empty line after a trailing separator.
-
function
lowercaseAscii
Maps ASCII A-Z to a-z, leaving all other Unicode scalars unchanged.
-
function
padEnd
Appends the padding scalar until the requested nonnegative character length is reached; longer input is preserved.
-
function
padStart
Prepends the padding scalar until the requested nonnegative character length is reached; longer input is preserved.
-
function
removePrefix
Removes a matching literal prefix; otherwise returns this string.
-
function
removeSuffix
Removes a matching literal suffix; otherwise returns this string.
-
function
repeat
Concatenates this string a nonnegative number of times; zero yields an empty string and size overflow throws.
-
function
replace
Replaces all nonoverlapping literal matches; this operation does not interpret a regular expression.
-
function
replaceFirst
Replaces the first literal match, leaving later matches unchanged.
-
function
split
Splits on a nonempty literal delimiter, retaining empty fields. Zero limit is unbounded; a positive limit leaves the unsplit remainder in the last field.
-
function
startsWith
Tests for an exact literal prefix, without case folding.
-
function
substring
Returns the half-open range of Unicode-scalar indices, rejecting invalid bounds.
-
function
substringAfter
Returns text after the first literal delimiter, or missingDelimiterValue when absent.
-
function
substringBefore
Returns text before the first literal delimiter, or missingDelimiterValue when absent.
-
function
toBooleanStrict
Accepts exactly lowercase true or false; other text throws NumberFormatException.
-
function
toBooleanStrictOrNone
Accepts exactly lowercase true or false; all other text returns None.
-
function
toByte
Parses a Byte in radix 2..36; invalid or out-of-range text throws NumberFormatException and an invalid radix throws IllegalArgumentException.
-
function
toByteOrNone
Parses a Byte in radix 2..36, returning None for invalid digits or out-of-range values. An invalid radix throws IllegalArgumentException.
-
function
toDouble
Parses a decimal Double or the exact NaN/Infinity spellings; invalid input throws NumberFormatException.
-
function
toDoubleOrNone
Parses a decimal Double or the exact NaN/Infinity spellings. Malformed input or finite overflow returns None.
-
function
toFloat
Parses a decimal Float or the exact NaN/Infinity spellings; invalid input throws NumberFormatException.
-
function
toFloatOrNone
Parses a decimal Float or the exact NaN/Infinity spellings. Malformed input or finite overflow returns None.
-
function
toHexString
Encodes each byte as two hexadecimal digits, using the selected letter case.
-
function
toInt
Parses a Int in radix 2..36; invalid or out-of-range text throws NumberFormatException and an invalid radix throws IllegalArgumentException.
-
function
toIntOrNone
Parses a Int in radix 2..36, returning None for invalid digits or out-of-range values. An invalid radix throws IllegalArgumentException.
-
function
toLong
Parses a Long in radix 2..36; invalid or out-of-range text throws NumberFormatException and an invalid radix throws IllegalArgumentException.
-
function
toLongOrNone
Parses a Long in radix 2..36, returning None for invalid digits or out-of-range values. An invalid radix throws IllegalArgumentException.
-
function
toShort
Parses a Short in radix 2..36; invalid or out-of-range text throws NumberFormatException and an invalid radix throws IllegalArgumentException.
-
function
toShortOrNone
Parses a Short in radix 2..36, returning None for invalid digits or out-of-range values. An invalid radix throws IllegalArgumentException.
-
function
toString
Formats this integer in radix 2..36 using lowercase digits and a leading minus for negative signed values.
-
function
toUByte
Parses a UByte in radix 2..36; invalid or out-of-range text throws NumberFormatException and an invalid radix throws IllegalArgumentException.
-
function
toUByteOrNone
Parses a UByte in radix 2..36, returning None for invalid digits or out-of-range values. An invalid radix throws IllegalArgumentException.
-
function
toUInt
Parses a UInt in radix 2..36; invalid or out-of-range text throws NumberFormatException and an invalid radix throws IllegalArgumentException.
-
function
toUIntOrNone
Parses a UInt in radix 2..36, returning None for invalid digits or out-of-range values. An invalid radix throws IllegalArgumentException.
-
function
toULong
Parses a ULong in radix 2..36; invalid or out-of-range text throws NumberFormatException and an invalid radix throws IllegalArgumentException.
-
function
toULongOrNone
Parses a ULong in radix 2..36, returning None for invalid digits or out-of-range values. An invalid radix throws IllegalArgumentException.
-
function
toUShort
Parses a UShort in radix 2..36; invalid or out-of-range text throws NumberFormatException and an invalid radix throws IllegalArgumentException.
-
function
toUShortOrNone
Parses a UShort in radix 2..36, returning None for invalid digits or out-of-range values. An invalid radix throws IllegalArgumentException.
-
function
trim
Removes a contiguous run of matching scalars from both ends. Without a predicate, matching uses Unicode White_Space.
-
function
trimEnd
Removes a contiguous run of matching scalars from the end. Without a predicate, matching uses Unicode White_Space.
-
function
trimStart
Removes a contiguous run of matching scalars from the beginning. Without a predicate, matching uses Unicode White_Space.
-
function
uppercaseAscii
Maps ASCII a-z to A-Z, leaving all other Unicode scalars unchanged.