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

Method get_env

subprojects/llama.cpp/common/arg.cpp:224–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224std::vector<std::string> common_arg::get_env() const {
225 std::vector<std::string> result;
226 if (env) {
227 result.push_back(std::string(env));
228 }
229 if (!args_neg.empty() && env) {
230 // for compatibility, we need to add LLAMA_ARG_NO_ variant
231 std::string neg_env = env;
232 string_replace_all(neg_env, "LLAMA_ARG_", "LLAMA_ARG_NO_");
233 result.push_back(neg_env);
234 }
235 return result;
236}
237
238//
239// utils

Callers 3

mainFunction · 0.80
get_map_key_optFunction · 0.80

Calls 4

stringClass · 0.85
string_replace_allFunction · 0.70
emptyMethod · 0.65
push_backMethod · 0.45

Tested by 1

mainFunction · 0.64