MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / str

Method str

subprojects/llama.cpp/common/jinja/string.cpp:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45std::string string::str() const {
46 if (parts.size() == 1) {
47 return parts[0].val;
48 }
49 std::ostringstream oss;
50 for (const auto & part : parts) {
51 oss << part.val;
52 }
53 return oss.str();
54}
55
56size_t string::length() const {
57 size_t len = 0;

Callers 15

render_string_partsFunction · 0.45
tojsonFunction · 0.45
selectattrFunction · 0.45
value.cppFile · 0.45
value_compareFunction · 0.45
value_to_json_internalFunction · 0.45
value_to_jsonFunction · 0.45
value_to_string_reprFunction · 0.45
executeMethod · 0.45
execute_implMethod · 0.45
to_stringMethod · 0.45

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected