MCPcopy Create free account
hub / github.com/Snapchat/Valdi / contains

Method contains

valdi_core/src/valdi_core/cpp/Utils/StringBox.cpp:83–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83bool StringBox::contains(char character) const noexcept {
84 return indexOf(character).has_value();
85}
86
87std::optional<size_t> StringBox::indexOf(char character) const noexcept {
88 auto index = toStringView().find(character);

Callers

nothing calls this directly

Calls 2

has_valueMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected