NSVD Reader  0.0.1
const_string.hpp File Reference

constexpr small library More...

#include <cstdint>
#include <string>
#include <ostream>
#include "nodamushi/string_type.hpp"

Go to the source code of this file.

Classes

struct  nodamushi::details::template_char_length< chars >
 
struct  nodamushi::details::template_text< chars >
 
struct  nodamushi::details::template_char_length< chars >
 
struct  nodamushi::details::template_text< chars >
 

Namespaces

 nodamushi
 
 nodamushi::details
 

Macros

#define NODAMUSHI_LOCAL_CONST_STRING(CHARS, varname)   constexpr char varname[] = {CHARS...,'\0'}
 

Functions

constexpr bool nodamushi::is_empty (const char *v)
 
bool nodamushi::is_empty (const std::string &v)
 
template<char... chars>
constexpr size_t nodamushi::get_const_string_length ()
 
template<char... chars>
constexpr char nodamushi::at_const_string (size_t index)
 
template<size_t N>
constexpr char nodamushi::at (const char(&array)[N], size_t index)
 
template<size_t MAX_SIZE, size_t N>
constexpr char nodamushi::at0 (const char(&array)[N])
 
template<char... chars>
constexpr const_string nodamushi::get_const_string ()
 
template<char... chars>
std::ostream & nodamushi::print_const_string (std::ostream &o)
 

Detailed Description

constexpr small library

Definition in file const_string.hpp.

Macro Definition Documentation

◆ NODAMUSHI_LOCAL_CONST_STRING

#define NODAMUSHI_LOCAL_CONST_STRING (   CHARS,
  varname 
)    constexpr char varname[] = {CHARS...,'\0'}

Definition at line 84 of file const_string.hpp.