MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / isSurroundedBy

Function isSurroundedBy

src/Core/Utils/StringUtils.cpp:110–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 }
109
110 bool isSurroundedBy(const std::string& string, const std::string& bet)
111 {
112 return (string.substr(0, bet.size()) == bet
113 && string.substr(string.size() - bet.size(), bet.size()) == bet);
114 }
115
116 std::string getRandomKey(const std::string& set, const int len)
117 {

Callers

nothing calls this directly

Calls 2

substrMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected