MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / rsplit

Method rsplit

include/stringzilla/stringzilla.hpp:2575–2575  ·  view source on GitHub ↗

@brief Split around occurrences of a given string in @b reverse order. */

Source from the content-addressed store, hash-verified

2573
2574 /** @brief Split around occurrences of a given string in @b reverse order. */
2575 rsplit_type rsplit(string_view delimiter) const noexcept { return {*this, delimiter}; }
2576
2577 /** @brief Split around occurrences of given characters. */
2578 split_chars_type split(byteset set = whitespaces_set()) const noexcept { return {*this, {set}}; }

Callers 4

test_unit_splitFunction · 0.80
test_unit_globalsFunction · 0.80
test_searchFunction · 0.80

Calls 1

whitespaces_setFunction · 0.85

Tested by 4

test_unit_splitFunction · 0.64
test_unit_globalsFunction · 0.64
test_searchFunction · 0.64