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

Function convertInline

valdi_core/src/valdi_core/cpp/Utils/StringCache.hpp:26–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace Valdi {
25
26static inline std::string_view convertInline(const char* str) {
27 return std::string_view(str, strlen(str));
28}
29
30static inline std::string_view convertInline(const std::string& str) {
31 return std::string_view(str.data(), str.length());

Callers

nothing calls this directly

Calls 3

dataMethod · 0.45
lengthMethod · 0.45
getCStrMethod · 0.45

Tested by

no test coverage detected