aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/str_util.h
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2012-02-17 17:22:12 +0000
committerStephen Fisher <steve@stephen-fisher.com>2012-02-17 17:22:12 +0000
commit7a5294707533166dc657a6e3373e2b30adcefefb (patch)
tree9f9cb2c3f20f77cd2cc2d854cb30cdc41102fb9b /wsutil/str_util.h
parentd205085350663e7cb6b086226620151d8a3d868d (diff)
Move exec_isdigit_string() and exec_isprint_string() functions out of
the exec dissector and into wsutil/str_util.c. Rename them to isdigit_string() and isprint_string(). Also rename the variables they use for consistency: string -> str and position -> pos. svn path=/trunk/; revision=41053
Diffstat (limited to 'wsutil/str_util.h')
-rw-r--r--wsutil/str_util.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/wsutil/str_util.h b/wsutil/str_util.h
index cbc6f2bad5..63537183fd 100644
--- a/wsutil/str_util.h
+++ b/wsutil/str_util.h
@@ -59,4 +59,18 @@ gchar *ascii_strdown_inplace(gchar *str);
*/
gchar *ascii_strup_inplace(gchar *str);
+/** Check if an entire string consists of printable characters
+ *
+ * @param str The string to be checked
+ * @return TRUE if the entire string is printable, otherwise FALSE
+ */
+gboolean isprint_string(guchar *string);
+
+/** Check if an entire string consists of digits
+ *
+ * @param str The string to be checked
+ * @return TRUE if the entire string is digits, otherwise FALSE
+ */
+gboolean isdigit_string(guchar *string);
+
#endif /* __STR_UTIL_H__ */