Dillo v3.1.1-14-g8f67d6e0
Loading...
Searching...
No Matches
lout::object::String Class Reference

An object::Object wrapper for strings (char*). More...

#include <object.hh>

Public Member Functions

 String (const char *str)
 
 ~String ()
 
- Public Member Functions inherited from lout::object::ConstString
 ConstString (const char *str)
 
bool equals (Object *other)
 Returns, whether two objects are equal.
 
int hashValue ()
 Return a hash value for the object.
 
int compareTo (Comparable *other)
 Compare two objects, this and other.
 
void intoStringBuffer (misc::StringBuffer *sb)
 Store a textual representation of the object in a misc::StringBuffer.
 
const char * chars ()
 
- Public Member Functions inherited from lout::object::Object
virtual ~Object ()
 The destructor is defined as virtual (but not abstract), so that destruction of Object's works properly.
 
virtual Objectclone ()
 Return an exact copy of the object.
 
const char * toString ()
 Use object::Object::intoStringBuffer to return a textual representation of the object.
 
virtual size_t sizeOf ()
 Return the number of bytes, this object totally uses.
 

Additional Inherited Members

- Static Public Member Functions inherited from lout::object::ConstString
static int hashValue (const char *str)
 
- Protected Attributes inherited from lout::object::ConstString
const char * str
 

Detailed Description

An object::Object wrapper for strings (char*).

As opposed to object::ConstantString, the char array is copied.

Definition at line 185 of file object.hh.

Constructor & Destructor Documentation

◆ String()

lout::object::String::String ( const char *  str)

Definition at line 294 of file object.cc.

◆ ~String()

lout::object::String::~String ( )

Definition at line 298 of file object.cc.

References lout::object::ConstString::str.


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