Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions
String Class Reference

#include <string.hpp>

Public Member Functions

 String ()
 String (const void *ptr, UInt32 length)
template<UInt32 T>
 String (const char(&str)[T])
 String (const String &rhs)
Stringoperator= (const String &rhs)
const UInt8operator[] (UInt32 i) const
const void * ptr () const
UInt32 length () const
void set_ptr (const void *x)
void set_length (UInt32 x)
void assign (const void *ptr, UInt32 length)
String substr (UInt32 offset=0) const
String substr (UInt32 offset, UInt32 length) const
int compare (const String &rhs, UInt32 offset=0) const
bool starts_with (const String &str) const
bool ends_with (const String &str) const
void swap (String *rhs)

Detailed Description

Definition at line 26 of file string.hpp.

Constructor & Destructor Documentation

String ( )
inline

Definition at line 28 of file string.hpp.

String ( const void *  ptr,
UInt32  length 
)
inline

Definition at line 31 of file string.hpp.

String ( const char(&)  str[T])
inlineexplicit

Definition at line 35 of file string.hpp.

String ( const String rhs)
inline

Definition at line 38 of file string.hpp.

Member Function Documentation

void assign ( const void *  ptr,
UInt32  length 
)
inline

Definition at line 67 of file string.hpp.

Here is the caller graph for this function:

int compare ( const String rhs,
UInt32  offset = 0 
) const
inline

Definition at line 84 of file string.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ends_with ( const String str) const
inline

Definition at line 110 of file string.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

UInt32 length ( ) const
inline

Definition at line 56 of file string.hpp.

Here is the caller graph for this function:

String& operator= ( const String rhs)
inline

Definition at line 42 of file string.hpp.

Here is the call graph for this function:

const UInt8& operator[] ( UInt32  i) const
inline

Definition at line 48 of file string.hpp.

const void* ptr ( ) const
inline

Definition at line 53 of file string.hpp.

Here is the caller graph for this function:

void set_length ( UInt32  x)
inline

Definition at line 63 of file string.hpp.

void set_ptr ( const void *  x)
inline

Definition at line 60 of file string.hpp.

bool starts_with ( const String str) const
inline

Definition at line 98 of file string.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

String substr ( UInt32  offset = 0) const
inline

Definition at line 72 of file string.hpp.

Here is the caller graph for this function:

String substr ( UInt32  offset,
UInt32  length 
) const
inline

Definition at line 75 of file string.hpp.

void swap ( String rhs)
inline

Definition at line 123 of file string.hpp.


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