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

Method as_set

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

@brief Populate a character set with characters present in this string. */

Source from the content-addressed store, hash-verified

2595
2596 /** @brief Populate a character set with characters present in this string. */
2597 byteset as_set() const noexcept {
2598 byteset set;
2599 for (auto c : *this) set.add(c);
2600 return set;
2601 }
2602
2603 private:
2604 sz_constexpr_if_cpp14 string_slice &assign(string_view const &other) noexcept {

Callers 4

find_first_ofMethod · 0.80
find_first_not_ofMethod · 0.80
find_last_ofMethod · 0.80
find_last_not_ofMethod · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected