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

Method starts_with

common/SmallString.cpp:597–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597bool SmallStringBase::starts_with(const char* str, bool case_sensitive) const
598{
599 const u32 other_length = static_cast<u32>(std::strlen(str));
600 if (other_length > m_length)
601 return false;
602
603 return (case_sensitive) ? (std::strncmp(str, m_buffer, other_length) == 0) :
604 (CASE_N_COMPARE(str, m_buffer, other_length) == 0);
605}
606
607bool SmallStringBase::starts_with(const SmallStringBase& str, bool case_sensitive) const
608{

Callers 15

compare_nodesFunction · 0.80
field_to_astFunction · 0.80
check_member_functionFunction · 0.80
normalize_msvc_abi_nameFunction · 0.80
addSymbolFileMethod · 0.80
host_pathFunction · 0.80
ParseDatabaseRegionMethod · 0.80
IsPathExcludedFunction · 0.80

Calls 2

lengthMethod · 0.45
dataMethod · 0.45

Tested by 1

TESTFunction · 0.64