summaryrefslogtreecommitdiff
path: root/epan/strutil.h
diff options
context:
space:
mode:
authorGerasimos Dimitriadis <dimeg@intracom.gr>2010-01-26 18:21:17 +0000
committerGerasimos Dimitriadis <dimeg@intracom.gr>2010-01-26 18:21:17 +0000
commitc08fa6f3cf2ded7ff34393739c7b26c953f74ddb (patch)
tree8e6dfadc33670265be83256ef3eb7139de8e3b02 /epan/strutil.h
parent293ea61af2e8ff0fb166f1450df610ce8e483b21 (diff)
downloadwireshark-c08fa6f3cf2ded7ff34393739c7b26c953f74ddb.tar.gz
Move underscore escaping/unscaping function to strutil.c;
Update decoding of IS-801 Request GPS Acquisition Assistance svn path=/trunk/; revision=31685
Diffstat (limited to 'epan/strutil.h')
-rw-r--r--epan/strutil.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/epan/strutil.h b/epan/strutil.h
index b48f29863b..4303bf0c43 100644
--- a/epan/strutil.h
+++ b/epan/strutil.h
@@ -228,4 +228,20 @@ char * escape_string(char *dst, const char *string);
void IA5_7BIT_decode(unsigned char * dest, const unsigned char* src, int len);
+/** Copy a string, escaping the underscores in it
+ *
+ * @param str The string to be copied
+ * @return A copy of the string with every original underscore being
+ * transformed into double underscores.
+ */
+gchar* ws_strdup_escape_underscore (const gchar *str);
+
+/** Copy a string, unescaping the underscores in it
+ *
+ * @param str The string to be copied
+ * @return A copy of the string with every occurence of double underscores in
+ * the original string being copied as a single underscore.
+ */
+gchar* ws_strdup_unescape_underscore (const gchar *str);
+
#endif /* __STRUTIL_H__ */