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

Method StartsWith

BeefySysLib/util/String.cpp:70–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70bool StringView::StartsWith(const StringView& b, StringView::CompareKind comparisonType) const
71{
72 if (this->mLength < b.mLength)
73 return false;
74 if (comparisonType == StringView::CompareKind_OrdinalIgnoreCase)
75 return String::EqualsIgnoreCaseHelper(mPtr, b.mPtr, b.mLength);
76 return String::EqualsHelper(mPtr, b.mPtr, b.mLength);
77}
78
79bool StringView::EndsWith(const StringView& b, StringView::CompareKind comparisonType) const
80{

Callers 12

FormatI32Function · 0.45
ParseHotKeyMethod · 0.45
ParseMemorySpanMethod · 0.45
ReadFileMethod · 0.45
LoadMaterialMethod · 0.45
LoadTextureMethod · 0.45
LoadTextureMethod · 0.45
ImageHelpWalkFunction · 0.45
HandleDirRemoveMethod · 0.45
mainFunction · 0.45
HandleCmdLineMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected