aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/str_util.h
diff options
context:
space:
mode:
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__ */