diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-28 09:26:39 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-29 09:18:03 +0200 |
commit | bf4208246609a6b2a71d9c51696fbb9283871d55 (patch) | |
tree | 880175e3f9b60dbf96f9fd693ddded3f9d901ac6 /libmm-common/mm-common-helpers.h | |
parent | ee8afd8034f47f2f17ae042a2efe16034556dcf4 (diff) |
libmm-common: new helpers to parse doubles from strings or match infos
Diffstat (limited to 'libmm-common/mm-common-helpers.h')
-rw-r--r-- | libmm-common/mm-common-helpers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libmm-common/mm-common-helpers.h b/libmm-common/mm-common-helpers.h index cec65f34..98d97f41 100644 --- a/libmm-common/mm-common-helpers.h +++ b/libmm-common/mm-common-helpers.h @@ -68,6 +68,11 @@ gboolean mm_get_uint_from_str (const gchar *str, gboolean mm_get_uint_from_match_info (GMatchInfo *match_info, guint32 match_index, guint *out); +gboolean mm_get_double_from_str (const gchar *str, + gdouble *out); +gboolean mm_get_double_from_match_info (GMatchInfo *match_info, + guint32 match_index, + gdouble *out); gchar *mm_get_string_unquoted_from_match_info (GMatchInfo *match_info, guint32 match_index); |