Base Framework
Public Member Functions | List of all members
WideLiteral Class Reference

A wide literal string. More...

#include <base/WideLiteral.h>

Public Member Functions

template<MemorySize SIZE>
 WideLiteral (const wchar(&value)[SIZE]) noexcept
 
const wchar * getValue () const noexcept
 
MemorySize getLength () const noexcept
 
 operator bool () const noexcept
 

Detailed Description

A wide literal string.

This class binds together a native string literal and its length.

Version
1.0

Constructor & Destructor Documentation

◆ WideLiteral()

template<MemorySize SIZE>
WideLiteral::WideLiteral ( const wchar(&)  value[SIZE])
inlinenoexcept

Initializes the literal.

Member Function Documentation

◆ getLength()

MemorySize WideLiteral::getLength ( ) const
inlinenoexcept

Returns the length of the literal.

◆ getValue()

const wchar* WideLiteral::getValue ( ) const
inlinenoexcept

Returns the literal.

◆ operator bool()

WideLiteral::operator bool ( ) const
inlinenoexcept

Returns true if not empty.