MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / clear

Method clear

Libraries/Common/StringPath.h:29–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 [[nodiscard]] bool operator==(StringSpan other) const { return view() == other; }
28
29 void clear()
30 {
31 length = 0;
32 buffer[0] = 0;
33 }
34 [[nodiscard]] bool assign(StringSpan str)
35 {
36 clear();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected