diff options
Diffstat (limited to 'epan/column.c')
-rw-r--r-- | epan/column.c | 52 |
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; -} |