MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / starts_with

Function starts_with

src/include/migraphx/stringutils.hpp:122–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120inline std::string to_lower(std::string s) { return transform_string(std::move(s), ::tolower); }
121
122inline bool starts_with(const std::string& value, const std::string& prefix)
123{
124 if(prefix.size() > value.size())
125 return false;
126 else
127 return std::equal(prefix.begin(), prefix.end(), value.begin());
128}
129
130inline std::string remove_prefix(std::string s, const std::string& prefix)
131{

Callers 15

TEST_CASEFunction · 0.85
is_compiled_gpu_moduleFunction · 0.85
is_compiled_fpga_moduleFunction · 0.85
is_compiled_cpu_moduleFunction · 0.85
is_compiled_ref_moduleFunction · 0.85
get_graph_colorFunction · 0.85
insert_instructionMethod · 0.85
replace_instructionMethod · 0.85
quantize_fp8Function · 0.85
generate_point_opMethod · 0.85
is_reduceMethod · 0.85
convert_to_jsonFunction · 0.85

Calls 4

equalFunction · 0.70
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 4

is_compiled_gpu_moduleFunction · 0.68
is_compiled_fpga_moduleFunction · 0.68
is_compiled_cpu_moduleFunction · 0.68
is_compiled_ref_moduleFunction · 0.68