Sane C++ Libraries
C++ Platform Abstraction Libraries
SC::SpanStringView Struct Reference

An read-only view over an ASCII string (to avoid including Strings library) More...

#include <Span.h>

Public Member Functions

constexpr SpanStringView (const char *string, size_t stringLength)
 
template<size_t N>
constexpr SpanStringView (const char(&charLiteral)[N])
 
template<int N>
bool writeNullTerminated (char(&buffer)[N]) const
 Writes current string view over a sized char array buffer, adding a null terminator. More...
 

Public Attributes

Span< const char > text
 

Detailed Description

An read-only view over an ASCII string (to avoid including Strings library)

Member Function Documentation

◆ writeNullTerminated()

template<int N>
bool SC::SpanStringView::writeNullTerminated ( char(&)  buffer[N]) const
inline

Writes current string view over a sized char array buffer, adding a null terminator.


The documentation for this struct was generated from the following file: