summaryrefslogtreecommitdiff
path: root/string_utils.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-14 10:32:21 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-14 10:32:21 -0400
commitcc81ed5ed18464d6e632c79a1ccc9a2a8eea45b4 (patch)
treef6c1168e533fe28859269c111864ce82f88a8300 /string_utils.c
parent1d122d034def5e9f7e0a76159866de0f36ab56f7 (diff)
astyle formatting run
Diffstat (limited to 'string_utils.c')
-rw-r--r--string_utils.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/string_utils.c b/string_utils.c
index a406663..e28ccfc 100644
--- a/string_utils.c
+++ b/string_utils.c
@@ -34,12 +34,13 @@ void Float_To_Text(int decimal_digits,float number_in, gchar ** text_out)
/*----------------------------------------------------------------------------------------------------------*/
-gboolean String_is_it_numeric(char *parameter) {
+gboolean String_is_it_numeric(char *parameter)
+{
- GRegex *numeric_regex = g_regex_new ( "\\s*[+-]?(\\d*\\.\\d+|\\d+(\\.\\d*)?)\\s*(e\\s*[+-]?\\d+)?\\s*",
- G_REGEX_CASELESS,
- 0,
- NULL);
+ GRegex *numeric_regex = g_regex_new ( "\\s*[+-]?(\\d*\\.\\d+|\\d+(\\.\\d*)?)\\s*(e\\s*[+-]?\\d+)?\\s*",
+ G_REGEX_CASELESS,
+ 0,
+ NULL);
gboolean match = g_regex_match (numeric_regex, parameter, 0, NULL);
g_regex_unref (numeric_regex);