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

Method find

valdi_core/src/valdi_core/cpp/Utils/StringBox.cpp:105–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105std::optional<size_t> StringBox::find(const std::string_view& str) const noexcept {
106 auto index = toStringView().find(str);
107 if (index == std::string_view::npos) {
108 return std::nullopt;
109 }
110
111 return {index};
112}
113
114bool StringBox::contains(const std::string_view& str) const noexcept {
115 return toStringView().find(str) != std::string_view::npos;

Callers 15

doUnmarshallMethod · 0.45
fromEntriesMethod · 0.45
removeStringMethod · 0.45
findEntryMethod · 0.45
indexOfMethod · 0.45
containsMethod · 0.45
stringReplaceFunction · 0.45
getMapPropertyMethod · 0.45
URLMethod · 0.45
getMapValueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected