gtksourceviewmm: Gsv::Markup Class Reference
It is just a class holding markup string. More...
#include <gtksourceviewmm/markup.h>
Public Types | |
typedef const void* | BoolExpr |
This typedef is just to make it more obvious that our operator const void*() should be used like operator bool(). More... | |
Public Member Functions | |
Markup () | |
Creates empty Markup. More... | |
Markup (const Glib::ustring& markup) | |
Creates Markup containing text from markup. More... | |
Markup (const char* markup) | |
Creates Markup containing text from markup. More... | |
~Markup () | |
Markup (const Markup& other) | |
Creates Markup containing text from other Markup. More... | |
Markup& | operator= (const Markup& other) |
Assigns contents of other Markup to this one. More... | |
operator BoolExpr () const | |
Checks if Markup is not empty. More... | |
bool | equal (const Markup& other) const |
Checks if other Markup is the same as this one. More... | |
Glib::ustring | get_string () const |
Get the string representation of the Markup. More... | |
const char* | get_c_str () const |
Get the C string representation of the Markup. More... | |
Protected Attributes | |
Glib::ustring | markup_ |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator== (const Markup& lhs, const Markup& rhs) |
See Markup::equal() More... | |
bool | operator!= (const Markup& lhs, const Markup& rhs) |
See Markup::equal() More... | |
Detailed Description
It is just a class holding markup string.
This class exists because now nice constructor overload could be used in some places.
Member Typedef Documentation
typedef const void* Gsv::Markup::BoolExpr |
This typedef is just to make it more obvious that our operator const void*() should be used like operator bool().
Constructor & Destructor Documentation
Gsv::Markup::Markup | ( | ) |
|
explicit |
|
explicit |
Gsv::Markup::~Markup | ( | ) |
Gsv::Markup::Markup | ( | const Markup& | other | ) |
Member Function Documentation
bool Gsv::Markup::equal | ( | const Markup& | other | ) | const |
const char* Gsv::Markup::get_c_str | ( | ) | const |
Get the C string representation of the Markup.
- Returns
- A C string holding markup.
Glib::ustring Gsv::Markup::get_string | ( | ) | const |
Get the string representation of the Markup.
- Returns
- A string holding markup.
Gsv::Markup::operator BoolExpr | ( | ) | const |
Friends And Related Function Documentation
See Markup::equal()
- Returns
- Whether lhs is different from rhs.
See Markup::equal()
- Returns
- Whether lhs is different from rhs.
Member Data Documentation
|
protected |