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

Function equalsAscii

Examples/AwaitLineProtocol/AwaitLineProtocol.cpp:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace SC
16{
17static bool equalsAscii(Span<char> data, Span<const char> expected)
18{
19 return StringView({data.data(), data.sizeInBytes()}, false, StringEncoding::Ascii) ==
20 StringView({expected.data(), expected.sizeInBytes()}, false, StringEncoding::Ascii);
21}
22
23static Result createLineProtocolServer(AsyncEventLoop& eventLoop, SocketDescriptor& serverSocket,
24 SocketIPAddress& address)

Callers 2

lineServerFunction · 0.85
lineClientFunction · 0.85

Calls 2

dataMethod · 0.45
sizeInBytesMethod · 0.45

Tested by

no test coverage detected