HomeManualTopicsTypesSymbols

std::truncate_until

returns the substring behind the specified expression

Parameters

None

Results

None

Description

If the string specified as the first argument contains the expression specified as the second argument, the substring behind the first match of the expression is returned.

If the string does not contain the expression then the string is returned without alteration.

An optional third argument can be used to match the nth occurence of the specified expression. If this value is negative then -1 means the last occurrence, -2 means the next-to-last occurence and so on.

Topic

Strings

See also

std::behind returns the substring behind the specified expression
std::truncate_from returns the substring before the specified expression
std::truncate_before returns the substring starting with the specified expression
std::truncate_behind returns the substring ending with the specified expression

Implemented by

std_types::string returns the substring behind the specified expression