CARLA
Loading...
Searching...
No Matches
xpath_string Class Reference

Public Member Functions

void append (const xpath_string &o, xpath_allocator *alloc)
const char_t * c_str () const
char_t * data (xpath_allocator *alloc)
bool empty () const
size_t length () const
bool operator!= (const xpath_string &o) const
bool operator== (const xpath_string &o) const
bool uses_heap () const
 xpath_string ()

Static Public Member Functions

static xpath_string from_const (const char_t *str)
static xpath_string from_heap (const char_t *begin, const char_t *end, xpath_allocator *alloc)
static xpath_string from_heap_preallocated (const char_t *begin, const char_t *end)

Private Member Functions

 xpath_string (const char_t *buffer, bool uses_heap_, size_t length_heap)

Static Private Member Functions

static char_t * duplicate_string (const char_t *string, size_t length, xpath_allocator *alloc)

Private Attributes

const char_t * _buffer
size_t _length_heap
bool _uses_heap

Detailed Description

Definition at line 7676 of file pugixml.cpp.

Constructor & Destructor Documentation

◆ xpath_string() [1/2]

xpath_string::xpath_string ( const char_t * buffer,
bool uses_heap_,
size_t length_heap )
inlineprivate

Definition at line 7693 of file pugixml.cpp.

References _buffer, _length_heap, and _uses_heap.

Referenced by append(), from_const(), from_heap(), from_heap_preallocated(), operator!=(), and operator==().

◆ xpath_string() [2/2]

Member Function Documentation

◆ append()

void xpath_string::append ( const xpath_string & o,
xpath_allocator * alloc )
inline

Definition at line 7727 of file pugixml.cpp.

References _buffer, _length_heap, _uses_heap, length(), xpath_allocator::reallocate(), and xpath_string().

Referenced by string_value().

◆ c_str()

const char_t * xpath_string::c_str ( ) const
inline

◆ data()

char_t * xpath_string::data ( xpath_allocator * alloc)
inline

Definition at line 7772 of file pugixml.cpp.

References _buffer, _length_heap, _uses_heap, duplicate_string(), and strlength().

Referenced by xpath_ast_node::eval_string(), and from_heap().

◆ duplicate_string()

char_t * xpath_string::duplicate_string ( const char_t * string,
size_t length,
xpath_allocator * alloc )
inlinestaticprivate

Definition at line 7682 of file pugixml.cpp.

References xpath_allocator::allocate(), and length().

Referenced by data(), and from_heap().

◆ empty()

bool xpath_string::empty ( ) const
inline

Definition at line 7790 of file pugixml.cpp.

References _buffer.

Referenced by xpath_ast_node::eval_boolean().

◆ from_const()

xpath_string xpath_string::from_const ( const char_t * str)
inlinestatic

◆ from_heap()

xpath_string xpath_string::from_heap ( const char_t * begin,
const char_t * end,
xpath_allocator * alloc )
inlinestatic

Definition at line 7710 of file pugixml.cpp.

References data(), duplicate_string(), length(), xpath_string(), and xpath_string().

Referenced by xpath_ast_node::eval_string().

◆ from_heap_preallocated()

xpath_string xpath_string::from_heap_preallocated ( const char_t * begin,
const char_t * end )
inlinestatic

◆ length()

size_t xpath_string::length ( ) const
inline

◆ operator!=()

bool xpath_string::operator!= ( const xpath_string & o) const
inline

Definition at line 7800 of file pugixml.cpp.

References _buffer, strequal(), and xpath_string().

◆ operator==()

bool xpath_string::operator== ( const xpath_string & o) const
inline

Definition at line 7795 of file pugixml.cpp.

References _buffer, strequal(), and xpath_string().

◆ uses_heap()

bool xpath_string::uses_heap ( ) const
inline

Definition at line 7805 of file pugixml.cpp.

References _uses_heap.

Referenced by xpath_ast_node::eval_string().

Member Data Documentation

◆ _buffer

const char_t* xpath_string::_buffer
private

◆ _length_heap

size_t xpath_string::_length_heap
private

Definition at line 7680 of file pugixml.cpp.

Referenced by append(), data(), length(), xpath_string(), and xpath_string().

◆ _uses_heap

bool xpath_string::_uses_heap
private

Definition at line 7679 of file pugixml.cpp.

Referenced by append(), data(), length(), uses_heap(), xpath_string(), and xpath_string().


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