HomeManualTopicsTypesSymbols

std::trim_left

removes leading whitespace

Parameters

self
test (default: is_a_whitespace_character)

Results

None

Description

Returns a string which is the specified string without any leading whitespace.

Example

$str " text " $trimmed_str trim_left(str) println! '*' trimmed_str '*'

Output

*text *

Topic

Strings

See also

std_types::string/std::trim
std_types::string/std::trim_right