glibmm  2.41.0
New API in glibmm 2.14
Member Glib::get_user_cache_dir ()
Member Glib::get_user_config_dir ()
Member Glib::get_user_data_dir ()
Member Glib::get_user_special_dir (GUserDirectory directory)
Class Glib::KeyFile
Member Glib::KeyFile::get_double (const Glib::ustring& group_name, const Glib::ustring& key) const
Member Glib::KeyFile::get_double (const Glib::ustring& key) const
Member Glib::KeyFile::load_from_dirs (const std::string& file, const Glib::ArrayHandle< std::string >& search_dirs, Glib::ArrayHandle< std::string >& full_path, KeyFileFlags flags=Glib::KEY_FILE_NONE)
Parameters
fileA relative path to a filename to open and parse.
search_dirs0-terminated array of directories to search.
full_pathReturn location for a string containing the full path of the file, or 0.
flagsFlags from KeyFileFlags.
Returns
true if a key file could be loaded, false otherwise.
Member Glib::KeyFile::load_from_dirs (const std::string& file, const Glib::ArrayHandle< std::string >& search_dirs, std::string& full_path, KeyFileFlags flags=Glib::KEY_FILE_NONE)
Parameters
fileA relative path to a filename to open and parse.
search_dirs0-terminated array of directories to search.
full_pathReturn location for a string containing the full path of the file, or 0.
flagsFlags from KeyFileFlags.
Returns
true if a key file could be loaded, false otherwise.
Member Glib::KeyFile::set_double_list (const Glib::ustring& group_name, const Glib::ustring& key, const Glib::ArrayHandle< double >& list)
Member Glib::MatchInfo::expand_references (const Glib::ustring& string_to_expand)
Parameters
string_to_expandThe string to expand.
Returns
The expanded string, or 0 if an error occurred.
Member Glib::MatchInfo::fetch (int match_num)
Parameters
match_numNumber of the sub expression.
Returns
The matched substring, or 0 if an error occurred. You have to free the string yourself.
Member Glib::MatchInfo::fetch_all ()
Returns
A 0-terminated array of gchar * pointers. It must be freed using g_strfreev(). If the previous match failed 0 is returned.
Member Glib::MatchInfo::fetch_named (const Glib::ustring& name)
Parameters
nameName of the subexpression.
Returns
The matched substring, or 0 if an error occurred. You have to free the string yourself.
Member Glib::MatchInfo::fetch_named_pos (const Glib::ustring& name, int& start_pos, int& end_pos)
Parameters
nameName of the subexpression.
start_posPointer to location where to store the start position, or 0.
end_posPointer to location where to store the end position, or 0.
Returns
true if the position was fetched, false otherwise. If the position cannot be fetched, start_pos and end_pos are left unchanged.
Member Glib::MatchInfo::fetch_pos (int match_num, int& start_pos, int& end_pos)
Parameters
match_numNumber of the sub expression.
start_posPointer to location where to store the start position, or 0.
end_posPointer to location where to store the end position, or 0.
Returns
true if the position was fetched, false otherwise. If the position cannot be fetched, start_pos and end_pos are left unchanged.
Member Glib::MatchInfo::get_match_count () const
Returns
Number of matched substrings, or -1 if an error occurred.
Member Glib::MatchInfo::get_regex () const
Returns
Regex object used in match_info.
Member Glib::MatchInfo::get_regex ()
Returns
Regex object used in match_info.
Member Glib::MatchInfo::get_string () const
Returns
The string searched with match_info.
Member Glib::MatchInfo::is_partial_match () const
Returns
true if the match was partial, false otherwise.
Member Glib::MatchInfo::matches () const
Returns
true if the previous match operation succeeded, false otherwise.
Member Glib::MatchInfo::next ()
Returns
true is the string matched, false otherwise.
Member Glib::OptionContext::get_help (bool main_help, const OptionGroup& group) const
Parameters
main_helpIf true, only include the main group.
groupThe OptionGroup to create help for, or 0.
Returns
A newly allocated string containing the help text.
Member Glib::OptionContext::set_translate_func (const SlotTranslate& slot)
Class Glib::Regex
Member Glib::Regex::check_replacement (const Glib::ustring& replacement, gboolean* has_references)
Parameters
replacementThe replacement string.
has_referencesLocation to store information about references in replacement or 0.
Returns
Whether replacement is a valid replacement string.
Member Glib::Regex::get_capture_count () const
Returns
The number of capturing subpatterns.
Member Glib::Regex::get_max_backref () const
Returns
The number of the highest back reference.
Member Glib::Regex::get_pattern () const
Returns
The pattern of regex.
Member Glib::Regex::get_string_number (const Glib::ustring& name) const
Parameters
nameName of the subexpression.
Returns
The number of the subexpression or -1 if name does not exists.
Member Glib::Regex::match (const Glib::ustring& string, gssize string_len, int start_position, Glib::MatchInfo& match_info, RegexMatchFlags match_options=static_cast< RegexMatchFlags >(0))
Parameters
stringThe string to scan for matches.
string_lenThe length of string, or -1 if string is nul-terminated.
start_positionStarting index of the string to match.
match_optionsMatch options.
match_infoPointer to location where to store the MatchInfo, or 0 if you do not need it.
Returns
true is the string matched, false otherwise.
Member Glib::Regex::match (const Glib::ustring& string, Glib::MatchInfo& match_info, RegexMatchFlags match_options=static_cast< RegexMatchFlags >(0))
Parameters
stringThe string to scan for matches.
match_optionsMatch options.
match_infoPointer to location where to store the MatchInfo, or 0 if you do not need it.
Returns
true is the string matched, false otherwise.
Member Glib::Regex::match_all (const Glib::ustring& string, Glib::MatchInfo& match_info, RegexMatchFlags match_options=static_cast< RegexMatchFlags >(0))
Parameters
stringThe string to scan for matches.
match_optionsMatch options.
match_infoPointer to location where to store the MatchInfo, or 0 if you do not need it.
Returns
true is the string matched, false otherwise.
Member Glib::Regex::match_all (const Glib::ustring& string, gssize string_len, int start_position, Glib::MatchInfo& match_info, RegexMatchFlags match_options=static_cast< RegexMatchFlags >(0))
Parameters
stringThe string to scan for matches.
string_lenThe length of string, or -1 if string is nul-terminated.
start_positionStarting index of the string to match.
match_optionsMatch options.
match_infoPointer to location where to store the MatchInfo, or 0 if you do not need it.
Returns
true is the string matched, false otherwise.
Member Glib::Regex::match_simple (const Glib::ustring& pattern, const Glib::ustring& string, RegexCompileFlags compile_options=static_cast< RegexCompileFlags >(0), RegexMatchFlags match_options=static_cast< RegexMatchFlags >(0))
Parameters
patternThe regular expression.
stringThe string to scan for matches.
compile_optionsCompile options for the regular expression, or 0.
match_optionsMatch options, or 0.
Returns
true if the string matched, false otherwise.
Member Glib::Regex::replace (const gchar* string, gssize string_len, int start_position, const Glib::ustring& replacement, RegexMatchFlags match_options=static_cast< RegexMatchFlags >(0))
Parameters
stringThe string to perform matches against.
string_lenThe length of string, or -1 if string is nul-terminated.
start_positionStarting index of the string to match.
replacementText to replace each match with.
match_optionsOptions for the match.
Returns
A newly allocated string containing the replacements.
Member Glib::Regex::replace_eval (const Glib::ustring& string, gssize string_len, int start_position, RegexMatchFlags match_options, GRegexEvalCallback eval, gpointer user_data)
Parameters
stringString to perform matches against.
string_lenThe length of string, or -1 if string is nul-terminated.
start_positionStarting index of the string to match.
match_optionsOptions for the match.
evalA function to call for each match.
user_dataUser data to pass to the function.
Returns
A newly allocated string containing the replacements.
Member Glib::Regex::replace_literal (const gchar* string, gssize string_len, int start_position, const Glib::ustring& replacement, RegexMatchFlags match_options=static_cast< RegexMatchFlags >(0))
Parameters
stringThe string to perform matches against.
string_lenThe length of string, or -1 if string is nul-terminated.
start_positionStarting index of the string to match.
replacementText to replace each match with.
match_optionsOptions for the match.
Returns
A newly allocated string containing the replacements.
Member Glib::Regex::split (const gchar* string, gssize string_len, int start_position, RegexMatchFlags match_options=static_cast< RegexMatchFlags >(0), int max_tokens=0) const
Parameters
stringThe string to split with the pattern.
string_lenThe length of string, or -1 if string is nul-terminated.
start_positionStarting index of the string to match.
match_optionsMatch time option flags.
max_tokensThe maximum number of tokens to split string into. If this is less than 1, the string is split completely.
Returns
A 0-terminated gchar ** array. Free it using g_strfreev().
Member Glib::Regex::split (const Glib::ustring& string, RegexMatchFlags match_options=static_cast< RegexMatchFlags >(0))
Parameters
stringThe string to split with the pattern.
match_optionsMatch time option flags.
Returns
A 0-terminated gchar ** array. Free it using g_strfreev().
Member Glib::Regex::split_simple (const Glib::ustring& pattern, const Glib::ustring& string, RegexCompileFlags compile_options=static_cast< RegexCompileFlags >(0), RegexMatchFlags match_options=static_cast< RegexMatchFlags >(0))
Parameters
patternThe regular expression.
stringThe string to scan for matches.
compile_optionsCompile options for the regular expression, or 0.
match_optionsMatch options, or 0.
Returns
A 0-terminated array of strings. Free it using g_strfreev().
Member Glib::SignalTimeout::connect_seconds (const sigc::slot< bool >& slot, unsigned int interval, int priority=PRIORITY_DEFAULT)