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

Method rpartition

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

@brief Split the string into three parts, before the @b last match, the last match itself, and after it. */

Source from the content-addressed store, hash-verified

2219
2220 /** @brief Split the string into three parts, before the @b last match, the last match itself, and after it. */
2221 partition_type rpartition(string_view pattern) const noexcept { return rpartition_(pattern, pattern.length()); }
2222
2223 /** @brief Split the string into three parts, before the @b last match, the last match itself, and after it. */
2224 partition_type rpartition(value_type pattern) const noexcept { return rpartition_(string_view(&pattern, 1), 1); }

Callers 1

test_unit_globalsFunction · 0.80

Calls 1

lengthMethod · 0.45

Tested by 1

test_unit_globalsFunction · 0.64