2
* Copyright (C) 2006 Giuseppe Torelli - <colossus73@gmail.com>
2
* Copyright (C) 2008 Giuseppe Torelli - <colossus73@gmail.com>
4
4
* This program is free software; you can redistribute it and/or modify
5
5
* it under the terms of the GNU General Public License as published by
19
19
#ifndef STRING_UTILS_H
20
20
#define STRING_UTILS_H
30
#include "string_utils.h"
31
#include "utf8-fnmatch.h"
22
36
#ifndef HAVE_STRCASESTR
23
37
const char *strcasestr(const char *haystack, const char *needle);
25
gchar *EscapeBadChars ( gchar *string , gchar *pattern);
26
gchar *JoinPathArchiveName ( const gchar *extract_path , gchar *path );
27
int CountCharacter ( gchar *string , int chr );
28
gchar *RemoveBackSlashes ( gchar *name);
29
char *get_last_field (char *line,int last_field);
30
char **split_line (char *line,int n_fields);
31
char *escape_str_common (const char *str, const char *meta_chars, const char prefix, const char postfix);
32
char *eat_spaces (char *line);
33
gchar *remove_level_from_path (const gchar *path);
40
char *mkdtemp (gchar *tmpl);
42
gchar *xa_escape_bad_chars ( gchar *string , gchar *pattern);
43
char *xa_escape_common_chars (const char *str, const char *meta_chars, const char prefix, const char postfix);
44
gchar *xa_remove_level_from_path (const gchar *path);
34
45
gboolean file_extension_is (const char *filename, const char *ext);
35
gchar *extract_local_path (gchar *path);
36
46
void xa_set_window_title ( GtkWidget *window , gchar *title);
47
gboolean match_patterns (char **patterns,const char *string,int flags);
48
gchar *xa_remove_path_from_archive_name(gchar *name);
49
void xa_cat_filenames (XArchive *,GSList *,GString *);
50
gchar *xa_escape_filename (gchar *filename,gchar *meta_chars);
51
GSList *xa_slist_copy(GSList *);
52
void xa_recurse_local_directory(gchar *,GSList **,gboolean,gint);
53
gchar *xa_strip_current_working_dir_from_path(gchar *,gchar *);