MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / find

Method find

common/SmallString.cpp:692–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690}
691
692s32 SmallStringBase::find(char c, u32 offset) const
693{
694 if (m_length == 0)
695 return -1;
696
697 pxAssert(offset <= m_length);
698 const char* at = std::strchr(m_buffer + offset, c);
699 return at ? static_cast<s32>(at - m_buffer) : -1;
700}
701
702s32 SmallStringBase::rfind(char c, u32 offset) const
703{

Callers 15

AddEntryMethod · 0.45
GetValueMethod · 0.45
GetAllValuesMethod · 0.45
GetSectionSizeMethod · 0.45
GetSectionMethod · 0.45
GetAllKeysMethod · 0.45
DeleteValueMethod · 0.45
freeMethod · 0.45
define_innerMethod · 0.45
getOffset_innerMethod · 0.45
decRefCountMethod · 0.45
defineSlabelMethod · 0.45

Calls

no outgoing calls

Tested by 15

OnThreadExitMethod · 0.36
InsertSyntheticTestCaseFunction · 0.36
RegisterInstantiationMethod · 0.36
MatchesNameMethod · 0.36
SplitStringFunction · 0.36
GetIdMethod · 0.36
IsSubstringPredFunction · 0.36
GetTestSuiteMethod · 0.36