![]() |
Public Member Functions | |
| void | reference () const |
| void | unreference () const |
| GRegex* | gobj () |
| Provides access to the underlying C instance. | |
| const GRegex* | gobj () const |
| Provides access to the underlying C instance. | |
| GRegex* | gobj_copy () const |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
| Glib::ustring | get_pattern () const |
| int | get_max_backref () const |
| int | get_capture_count () const |
| int | get_string_number (const Glib::ustring& name) const |
| bool | match (const Glib::ustring& string, RegexMatchFlags match_options=(RegexMatchFlags) 0) |
| bool | match_full (const Glib::ustring& string, int start_position, RegexMatchFlags match_options) |
| bool | match_full (const Glib::ustring& string, gssize string_len, int start_position, RegexMatchFlags match_options) |
| bool | match_all (const Glib::ustring& string, RegexMatchFlags match_options=(RegexMatchFlags) 0) |
| bool | match_all_full (const Glib::ustring& string, int start_position, RegexMatchFlags match_options) |
| bool | match_all_full (const Glib::ustring& string, gssize string_len, int start_position, RegexMatchFlags match_options) |
| Glib::StringArrayHandle | split (const Glib::ustring& string, RegexMatchFlags match_options=(RegexMatchFlags) 0) |
| Glib::StringArrayHandle | split_full (const gchar* string, gssize string_len, int start_position, RegexMatchFlags match_options=(RegexMatchFlags) 0, int max_tokens=0) const |
| Glib::StringArrayHandle | split_full (const Glib::ustring& string, int start_position, RegexMatchFlags match_options, int max_tokens) const |
| Glib::ustring | replace (const gchar* string, gssize string_len, int start_position, const Glib::ustring& replacement, RegexMatchFlags match_options=(RegexMatchFlags) 0) |
| Glib::ustring | replace (const Glib::ustring& string, int start_position, const Glib::ustring& replacement, RegexMatchFlags match_options) |
| Glib::ustring | replace_literal (const gchar* string, gssize string_len, int start_position, const Glib::ustring& replacement, RegexMatchFlags match_options=(RegexMatchFlags) 0) |
| Glib::ustring | replace_literal (const Glib::ustring& string, int start_position, const Glib::ustring& replacement, RegexMatchFlags match_options) |
| Glib::ustring | replace_eval (const Glib::ustring& string, gssize string_len, int start_position, RegexMatchFlags match_options, GRegexEvalCallback eval, gpointer user_data) |
Static Public Member Functions | |
| static bool | match_simple (const Glib::ustring& pattern, const Glib::ustring& string, RegexCompileFlags compile_options, RegexMatchFlags match_options=(RegexMatchFlags) 0) |
| static Glib::StringArrayHandle | split_simple (const Glib::ustring& pattern, const Glib::ustring& string, RegexCompileFlags compile_options, RegexMatchFlags match_options=(RegexMatchFlags) 0) |
| static bool | check_replacement (const Glib::ustring& replacement, gboolean* has_references) |
Protected Member Functions | |
| Regex () | |
| void | operator delete (void*, size_t) |
Related Functions | |
| (Note that these are not member functions.) | |
| Glib::RefPtr<Glib::Regex> | wrap (GRegex* object, bool take_copy=false) |
| A Glib::wrap() method for this object. | |
| Glib::Regex::Regex | ( | ) | [protected] |
| void Glib::Regex::reference | ( | ) | const |
| void Glib::Regex::unreference | ( | ) | const |
| GRegex* Glib::Regex::gobj | ( | ) |
Provides access to the underlying C instance.
| const GRegex* Glib::Regex::gobj | ( | ) | const |
Provides access to the underlying C instance.
| GRegex* Glib::Regex::gobj_copy | ( | ) | const |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
| void Glib::Regex::operator delete | ( | void * | , | |
| size_t | ||||
| ) | [protected] |
| Glib::ustring Glib::Regex::get_pattern | ( | ) | const |
| int Glib::Regex::get_max_backref | ( | ) | const |
| int Glib::Regex::get_capture_count | ( | ) | const |
| int Glib::Regex::get_string_number | ( | const Glib::ustring& | name | ) | const |
| static bool Glib::Regex::match_simple | ( | const Glib::ustring& | pattern, | |
| const Glib::ustring& | string, | |||
| RegexCompileFlags | compile_options, | |||
| RegexMatchFlags | match_options = (RegexMatchFlags) 0 | |||
| ) | [static] |
| bool Glib::Regex::match | ( | const Glib::ustring& | string, | |
| RegexMatchFlags | match_options = (RegexMatchFlags) 0 | |||
| ) |
| bool Glib::Regex::match_full | ( | const Glib::ustring& | string, | |
| int | start_position, | |||
| RegexMatchFlags | match_options | |||
| ) |
| bool Glib::Regex::match_full | ( | const Glib::ustring& | string, | |
| gssize | string_len, | |||
| int | start_position, | |||
| RegexMatchFlags | match_options | |||
| ) |
| bool Glib::Regex::match_all | ( | const Glib::ustring& | string, | |
| RegexMatchFlags | match_options = (RegexMatchFlags) 0 | |||
| ) |
| bool Glib::Regex::match_all_full | ( | const Glib::ustring& | string, | |
| int | start_position, | |||
| RegexMatchFlags | match_options | |||
| ) |
| bool Glib::Regex::match_all_full | ( | const Glib::ustring& | string, | |
| gssize | string_len, | |||
| int | start_position, | |||
| RegexMatchFlags | match_options | |||
| ) |
| static Glib::StringArrayHandle Glib::Regex::split_simple | ( | const Glib::ustring& | pattern, | |
| const Glib::ustring& | string, | |||
| RegexCompileFlags | compile_options, | |||
| RegexMatchFlags | match_options = (RegexMatchFlags) 0 | |||
| ) | [static] |
| Glib::StringArrayHandle Glib::Regex::split | ( | const Glib::ustring& | string, | |
| RegexMatchFlags | match_options = (RegexMatchFlags) 0 | |||
| ) |
| Glib::StringArrayHandle Glib::Regex::split_full | ( | const gchar * | string, | |
| gssize | string_len, | |||
| int | start_position, | |||
| RegexMatchFlags | match_options = (RegexMatchFlags) 0, |
|||
| int | max_tokens = 0 | |||
| ) | const |
| Glib::StringArrayHandle Glib::Regex::split_full | ( | const Glib::ustring& | string, | |
| int | start_position, | |||
| RegexMatchFlags | match_options, | |||
| int | max_tokens | |||
| ) | const |
| Glib::ustring Glib::Regex::replace | ( | const gchar * | string, | |
| gssize | string_len, | |||
| int | start_position, | |||
| const Glib::ustring& | replacement, | |||
| RegexMatchFlags | match_options = (RegexMatchFlags) 0 | |||
| ) |
| Glib::ustring Glib::Regex::replace | ( | const Glib::ustring& | string, | |
| int | start_position, | |||
| const Glib::ustring& | replacement, | |||
| RegexMatchFlags | match_options | |||
| ) |
| Glib::ustring Glib::Regex::replace_literal | ( | const gchar * | string, | |
| gssize | string_len, | |||
| int | start_position, | |||
| const Glib::ustring& | replacement, | |||
| RegexMatchFlags | match_options = (RegexMatchFlags) 0 | |||
| ) |
| Glib::ustring Glib::Regex::replace_literal | ( | const Glib::ustring& | string, | |
| int | start_position, | |||
| const Glib::ustring& | replacement, | |||
| RegexMatchFlags | match_options | |||
| ) |
| Glib::ustring Glib::Regex::replace_eval | ( | const Glib::ustring& | string, | |
| gssize | string_len, | |||
| int | start_position, | |||
| RegexMatchFlags | match_options, | |||
| GRegexEvalCallback | eval, | |||
| gpointer | user_data | |||
| ) |
| static bool Glib::Regex::check_replacement | ( | const Glib::ustring& | replacement, | |
| gboolean * | has_references | |||
| ) | [static] |
| Glib::RefPtr<Glib::Regex> wrap | ( | GRegex * | object, | |
| bool | take_copy = false | |||
| ) | [related] |
A Glib::wrap() method for this object.
| object | The C instance. | |
| take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |