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

Function rm_leading_dashes

subprojects/llama.cpp/common/preset.cpp:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include <filesystem>
10
11static std::string rm_leading_dashes(const std::string & str) {
12 size_t pos = 0;
13 while (pos < str.size() && str[pos] == '-') {
14 ++pos;
15 }
16 return str.substr(pos);
17}
18
19// only allow a subset of args for remote presets for security reasons
20// do not add more args unless absolutely necessary

Callers 4

to_iniMethod · 0.85
get_map_key_optFunction · 0.85
parse_bool_argFunction · 0.85

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected