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

Method view

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

Source from the content-addressed store, hash-verified

22 native_char_t buffer[N] = {};
23
24 [[nodiscard]] auto view() const { return StringSpan({buffer, length}, true, StringEncoding::Native); }
25 [[nodiscard]] bool isEmpty() const { return length == 0; }
26 [[nodiscard]] auto writableSpan() { return Span<native_char_t>{buffer, N}; }
27 [[nodiscard]] bool operator==(StringSpan other) const { return view() == other; }

Callers 2

viewFunction · 0.45
isEmptyFunction · 0.45

Calls 1

StringSpanFunction · 0.85

Tested by

no test coverage detected