MCPcopy Create free account
hub / github.com/blender/cycles / string_startswith

Function string_startswith

src/util/string.cpp:104–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104bool string_startswith(const string_view s, const string_view start)
105{
106 const size_t len = start.size();
107 if (len > s.size()) {
108 return false;
109 }
110
111 for (size_t i = 0; i < len; i++) {
112 if (s[i] != start[i]) {
113 return false;
114 }
115 }
116
117 return true;
118}
119
120bool string_endswith(const string_view s, const string_view end)
121{

Callers 5

TESTFunction · 0.85
parse_channel_operationFunction · 0.85
parse_channelsFunction · 0.85
available_sycl_devicesFunction · 0.85
line_directiveFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68