summaryrefslogtreecommitdiff
path: root/epan/column.c
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/column.c
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/column.c')
-rw-r--r--epan/column.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/epan/column.c b/epan/column.c
index c0f5a9a9ca..17dbcb461e 100644
--- a/epan/column.c
+++ b/epan/column.c
@@ -728,55 +728,3 @@ build_column_format_array(column_info *cinfo, gint num_cols, gboolean reset_fenc
}
}
-/*
- * This function takes a string and copies it, inserting an underscore before
- * every underscore in it.
- */
-gchar*
-ws_strdup_escape_underscore (const gchar *str)
-{
- gchar *p, *q, *new_str;
-
- if(!str)
- return NULL;
-
- p = (gchar *)str;
- /* Worst case: A string that is full of underscores */
- q = new_str = g_malloc (strlen(str) * 2 + 1);
-
- while(*p != 0)
- {
- if(*p == '_')
- *q++ = '_';
-
- *q++ = *p++;
- }
- *q++ = '\0';
-
- return new_str;
-}
-
-gchar*
-ws_strdup_unescape_underscore (const gchar *str)
-{
- gchar *p, *q, *new_str;
-
- if(!str)
- return NULL;
-
- p = (gchar *)str;
- /* Worst case: A string that contains no underscores */
- q = new_str = g_malloc (strlen(str) + 1);
-
- while(*p != 0)
- {
- *q++ = *p;
- if ((*p == '_') && (*(p+1) == '_'))
- p += 2;
- else
- p++;
- }
- *q++ = '\0';
-
- return new_str;
-}