rds2cpp
Read and write RDS/RDA files in C++
Loading...
Searching...
No Matches
rds2cpp::String Struct Reference

Single string in a StringVector. More...

#include <RObject.hpp>

Public Member Functions

 String ()=default
 
 String (std::string value, StringEncoding encoding)
 

Public Attributes

std::optional< std::string > value
 
StringEncoding encoding = StringEncoding::UTF8
 

Detailed Description

Single string in a StringVector.

Constructor & Destructor Documentation

◆ String() [1/2]

rds2cpp::String::String ( )
default

Default constructor.

◆ String() [2/2]

rds2cpp::String::String ( std::string value,
StringEncoding encoding )
inline
Parameters
valueValue of the string.
encodingCharacter encoding of the string.

Member Data Documentation

◆ encoding

StringEncoding rds2cpp::String::encoding = StringEncoding::UTF8

Character encoding of the string. This is respected even if value is unset.

◆ value

std::optional<std::string> rds2cpp::String::value

Value of the string. If unset, the string is considered to be missing.


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