Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
83
bool StringBox::contains(char character) const noexcept {
84
return indexOf(character).has_value();
85
}
86
87
std::optional<size_t> StringBox::indexOf(char character) const noexcept {
88
auto index = toStringView().find(character);
Callers
nothing calls this directly
Calls
2
has_value
Method · 0.45
find
Method · 0.45
Tested by
no test coverage detected