Public Member Functions | Private Member Functions | Private Attributes | List of all members
sajson::string Class Reference

#include <sajson.h>

Inheritance diagram for sajson::string:
Inheritance graph
[legend]

Public Member Functions

std::string as_string () const
 
const char * data () const
 
size_t length () const
 
 string (const char *text_, size_t length)
 

Private Member Functions

 string ()
 

Private Attributes

const size_t _length
 
const char *const text
 

Detailed Description

A simple type encoding a pointer to some memory and a length (in bytes). Does not maintain any memory.

Definition at line 218 of file sajson.h.

Constructor & Destructor Documentation

◆ string() [1/2]

sajson::string::string ( const char *  text_,
size_t  length 
)
inline

Definition at line 220 of file sajson.h.

◆ string() [2/2]

sajson::string::string ( )
private

Member Function Documentation

◆ as_string()

std::string sajson::string::as_string ( ) const
inline

Definition at line 234 of file sajson.h.

◆ data()

const char* sajson::string::data ( ) const
inline

Definition at line 225 of file sajson.h.

◆ length()

size_t sajson::string::length ( ) const
inline

Definition at line 229 of file sajson.h.

Member Data Documentation

◆ _length

const size_t sajson::string::_length
private

Definition at line 241 of file sajson.h.

◆ text

const char* const sajson::string::text
private

Definition at line 240 of file sajson.h.


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


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:23