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

Method makeString

valdi_core/src/valdi_core/cpp/Utils/StringCache.cpp:44–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44StringBox StringCache::makeString(const char* str, size_t len) noexcept {
45 std::string_view key(str, len);
46
47 return makeString(key);
48}
49
50StringBox StringCache::makeString(const std::string& str) noexcept {
51 return makeString(std::string_view(str));

Callers 15

ErrorMethod · 0.80
toStringBoxMethod · 0.80
rethrowMethod · 0.80
flattenMethod · 0.80
onErrorMethod · 0.80
prependErrorMethod · 0.80
replacingMethod · 0.80
prependMethod · 0.80
appendMethod · 0.80
substringMethod · 0.80
fromStringMethod · 0.80

Calls 5

StringBoxClass · 0.70
endMethod · 0.65
emptyMethod · 0.45
lockMethod · 0.45
eraseMethod · 0.45

Tested by 15

getJsModuleWithSchemaFunction · 0.64
registerAssetFunction · 0.64
onUncaughtJsErrorMethod · 0.64
onJsCrashMethod · 0.64
runTypeScriptTestsFunction · 0.64
internStringsFunction · 0.64
newPropertyNameMethod · 0.64
TESTFunction · 0.64