MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / stref_indexof

Function stref_indexof

StereoKitC/libraries/stref.cpp:188–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186///////////////////////////////////////////
187
188int32_t stref_indexof(const stref_t &aRef, char aChar) {
189 for (uint32_t i = 0; i < aRef.length; i++) {
190 if (aRef.start[i] == aChar)
191 return i;
192 }
193 return -1;
194}
195
196///////////////////////////////////////////
197

Callers 1

stref_file_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected