~ubuntu-branches/ubuntu/quantal/xarchiver/quantal

« back to all changes in this revision

Viewing changes to src/string_utils.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-11-07 14:54:00 UTC
  • mfrom: (1.1.7 upstream) (2.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20081107145400-z0j3jmgads8coae2
Tags: 0.5.1-1
MergingĀ upstreamĀ versionĀ 0.5.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  Copyright (C) 2006 Giuseppe Torelli - <colossus73@gmail.com>
 
2
 *  Copyright (C) 2008 Giuseppe Torelli - <colossus73@gmail.com>
3
3
 *
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
21
21
 
 
22
#ifdef HAVE_CONFIG_H
 
23
#include "config.h"
 
24
#endif
 
25
 
 
26
#include <gtk/gtk.h>
 
27
#include <glib.h>
 
28
#include <string.h>
 
29
#include <dirent.h>
 
30
#include "string_utils.h"
 
31
#include "utf8-fnmatch.h"
 
32
#include "errno.h"
 
33
#include "archive.h"
 
34
#include "tar.h"
 
35
 
22
36
#ifndef HAVE_STRCASESTR
23
37
const char *strcasestr(const char *haystack, const char *needle);
24
38
#endif
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);
 
39
#ifndef HAVE_MKDTEMP
 
40
char *mkdtemp (gchar *tmpl);
 
41
#endif
 
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 *);
37
54
#endif
38
55