MCPcopy Create free account
hub / github.com/dobin/RedEdr / wstring_starts_with

Function wstring_starts_with

RedEdrShared/utils.cpp:483–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481
482
483bool wstring_starts_with(const std::wstring& str, const std::wstring& prefix) {
484 if (str.size() < prefix.size()) {
485 return false;
486 }
487 return str.compare(0, prefix.size(), prefix) == 0;
488}

Callers 1

KrabsEtwEventToJsonStrFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected