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

Function assignNativeSlice

Libraries/Testing/Testing.cpp:115–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113static bool isAbsoluteNative(StringSpan path) { return findRootLength(path) > 0; }
114
115static Result assignNativeSlice(StringPath& output, const native_char_t* text, size_t length)
116{
117 SC_TRY(output.assign(nativeSpan(text, length)));
118 return Result(true);
119}
120
121static void trimTrailingSeparators(StringPath& path)
122{

Callers 1

getDirectoryNameFunction · 0.85

Calls 3

nativeSpanFunction · 0.85
ResultClass · 0.50
assignMethod · 0.45

Tested by

no test coverage detected