MCPcopy Create free account
hub / github.com/beefytech/Beef / IndexOf

Method IndexOf

BeefySysLib/util/String.cpp:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88intptr StringView::IndexOf(const StringView& subStr, bool ignoreCase) const
89{
90 for (intptr ofs = 0; ofs <= mLength - subStr.mLength; ofs++)
91 {
92 if (String::Compare(*this, ofs, subStr, 0, subStr.mLength, ignoreCase) == 0)
93 return ofs;
94 }
95
96 return -1;
97}
98
99intptr StringView::IndexOf(const StringView& subStr, int startIdx) const
100{

Callers 15

Gfx_ApplyEffectFunction · 0.45
ParseHotKeyMethod · 0.45
GetRelativePathMethod · 0.45
ParseMemorySpanMethod · 0.45
ReadFileMethod · 0.45
GetStringViewMethod · 0.45
GetNextStringViewMethod · 0.45
ParseMaterialDefMethod · 0.45
LoadMethod · 0.45
LoadMethod · 0.45
LoadTextureMethod · 0.45
StartWithShellExecuteMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestReadCmdFunction · 0.36
Test_QueryMethod · 0.36