nlib
StringView.h File Reference

Defines a class for implementing some of the features of std::string without duplicating data. More...

#include <algorithm>
#include <iterator>
#include "nn/nlib/Config.h"
#include "nn/nlib/UniquePtr.h"
#include "nn/nlib/Cstring.h"

Go to the source code of this file.

Classes

class  nn::nlib::StringView
 The class for using the member functions of std::string without constructing std::string. More...
 

Namespaces

 nn::nlib
 Implements common features and features that are highly platform-dependent. Also refer to nlib Platform APIs. nlib_ns is an alias.
 

Functions

bool nn::nlib::operator== (const StringView &lhs, const StringView &rhs) noexcept
 Compares strings to check whether they are the same.
 
bool nn::nlib::operator!= (const StringView &lhs, const StringView &rhs) noexcept
 Compares strings to check whether they are the same.
 
bool nn::nlib::operator< (const StringView &lhs, const StringView &rhs) noexcept
 Compares strings in dictionary order.
 
bool nn::nlib::operator> (const StringView &lhs, const StringView &rhs) noexcept
 Compares strings in dictionary order.
 
bool nn::nlib::operator<= (const StringView &lhs, const StringView &rhs) noexcept
 Compares strings in dictionary order.
 
bool nn::nlib::operator>= (const StringView &lhs, const StringView &rhs) noexcept
 Compares strings in dictionary order.
 

Detailed Description

Defines a class for implementing some of the features of std::string without duplicating data.

Definition in file StringView.h.