gtksourceviewmm
2.10.3
|
It is just a class holding markup string. More...
#include <gtksourceviewmm/sourcemarkup.h>
Public Member Functions | |
SourceMarkup () | |
Creates empty SourceMarkup. | |
SourceMarkup (const Glib::ustring& markup) | |
Creates SourceMarkup containing text from markup. | |
SourceMarkup (const char* markup) | |
Creates SourceMarkup containing text from markup. | |
SourceMarkup (const SourceMarkup& other) | |
Creates SourceMarkup containing text from other SourceMarkup. | |
SourceMarkup& | operator= (const SourceMarkup& other) |
Assigns contents of other SourceMarkup to this one. | |
operator bool () const | |
Checks if SourceMarkup is not empty. | |
bool | equal (const SourceMarkup& other) const |
Checks if other SourceMarkup is the same as this one. | |
Glib::ustring | get_string () const |
Get the string representation of the SourceMarkup. | |
const char* | get_c_str () const |
Get the C string representation of the SourceMarkup. | |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator== (const SourceMarkup& lhs, const SourceMarkup& rhs) |
See SourceMarkup::equal() | |
bool | operator!= (const SourceMarkup& lhs, const SourceMarkup& rhs) |
See SourceMarkup::equal() |
It is just a class holding markup string.
This class exists because now nice constructor overload could be used in some places.
gtksourceview::SourceMarkup::SourceMarkup | ( | ) |
gtksourceview::SourceMarkup::SourceMarkup | ( | const Glib::ustring & | markup | ) | [explicit] |
Creates SourceMarkup containing text from markup.
markup | A markup string. |
gtksourceview::SourceMarkup::SourceMarkup | ( | const char * | markup | ) | [explicit] |
Creates SourceMarkup containing text from markup.
markup | A markup C string. |
gtksourceview::SourceMarkup::SourceMarkup | ( | const SourceMarkup& | other | ) |
Creates SourceMarkup containing text from other SourceMarkup.
other | Other SourceMarkup. |
bool gtksourceview::SourceMarkup::equal | ( | const SourceMarkup& | other | ) | const |
Checks if other SourceMarkup is the same as this one.
other | Other SourceMarkup. |
true
if both this and other SourceMarkup are equal.const char* gtksourceview::SourceMarkup::get_c_str | ( | ) | const |
Get the C string representation of the SourceMarkup.
Glib::ustring gtksourceview::SourceMarkup::get_string | ( | ) | const |
Get the string representation of the SourceMarkup.
gtksourceview::SourceMarkup::operator bool | ( | ) | const |
Checks if SourceMarkup is not empty.
true
if SourceMarkup is not empty, otherwise false
.SourceMarkup& gtksourceview::SourceMarkup::operator= | ( | const SourceMarkup& | other | ) |
Assigns contents of other SourceMarkup to this one.
other | Other SourceMarkup. |
bool operator!= | ( | const SourceMarkup& | lhs, |
const SourceMarkup& | rhs | ||
) | [related] |
bool operator== | ( | const SourceMarkup& | lhs, |
const SourceMarkup& | rhs | ||
) | [related] |