lib-ruby-parser (C++ bindings)  4.0.1+ruby-3.1.1
C++ bindings for lib-ruby-parser library
lib_ruby_parser::String Class Reference

#include <string.hpp>

Public Member Functions

 String ()=delete
 
 String (char *ptr, size_t len, size_t capacity)
 
 String (const String &)=delete
 
Stringoperator= (String const &)=delete
 
 String (String &&)
 
Stringoperator= (String &&)
 
 ~String ()
 

Static Public Member Functions

static String Owned (char *s, size_t len)
 
static String Copied (const char *s)
 

Public Attributes

char * ptr
 
size_t capacity
 
size_t len
 

Detailed Description

Representation of a String. ptr is NOT NULL-terminated. capacity doesn't matter.

Constructor & Destructor Documentation

◆ String() [1/4]

lib_ruby_parser::String::String ( )
delete

◆ String() [2/4]

lib_ruby_parser::String::String ( char *  ptr,
size_t  len,
size_t  capacity 
)

◆ String() [3/4]

lib_ruby_parser::String::String ( const String )
delete

◆ String() [4/4]

lib_ruby_parser::String::String ( String &&  )

◆ ~String()

lib_ruby_parser::String::~String ( )

Member Function Documentation

◆ Copied()

static String lib_ruby_parser::String::Copied ( const char *  s)
static

◆ operator=() [1/2]

String& lib_ruby_parser::String::operator= ( String &&  )

◆ operator=() [2/2]

String& lib_ruby_parser::String::operator= ( String const &  )
delete

◆ Owned()

static String lib_ruby_parser::String::Owned ( char *  s,
size_t  len 
)
static

Member Data Documentation

◆ capacity

size_t lib_ruby_parser::String::capacity

◆ len

size_t lib_ruby_parser::String::len

◆ ptr

char* lib_ruby_parser::String::ptr

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