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

Method LastIndexOf

BeefySysLib/util/String.cpp:135–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135intptr StringView::LastIndexOf(char c) const
136{
137 auto ptr = mPtr;
138 for (intptr i = mLength - 1; i >= 0; i--)
139 if (ptr[i] == c)
140 return i;
141 return -1;
142}
143
144intptr StringView::LastIndexOf(char c, int startCheck) const
145{

Callers 15

GetFileDirMethod · 0.45
GetFileNameMethod · 0.45
GetFileExtensionMethod · 0.45
LoadMaterialMethod · 0.45
ReadFileMethod · 0.45
LoadTextureMethod · 0.45
WinBFAppMethod · 0.45
LoadTextureMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected