diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-02-26 22:50:39 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-02-26 22:50:39 +0100 |
| commit | 89c58dc04c264c5778ae34d1428e12483f3ac5ac (patch) | |
| tree | d5aef506841b3b0e2e91016d0c0bbb608535873c /gallery-utils.h | |
| parent | 10a77c7a1c4648693ded958d6ac8641afcdf1d34 (diff) | |
| download | cataract-89c58dc04c264c5778ae34d1428e12483f3ac5ac.tar.xz | |
Autotoolize
Diffstat (limited to 'gallery-utils.h')
| -rw-r--r-- | gallery-utils.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/gallery-utils.h b/gallery-utils.h deleted file mode 100644 index 53c82c0..0000000 --- a/gallery-utils.h +++ /dev/null @@ -1,53 +0,0 @@ -/* Cataract - Static web photo gallery generator - * Copyright (C) 2008 Tomas Bzatek <tbzatek@users.sourceforge.net> - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -#include <glib.h> - -#define IS_DIR_SEP(ch) ((ch) == '/' || (ch) == '~') -#define IS_EQUAL_SIGN(ch) ((ch) == '=') - - -/* - * str_replace: replace substring 'search' with a 'replace' string - * - multiple occurences of the string are replaced - * - reallocates the original string - */ -void str_replace (char **dst, const char *search, const char *replace); - -/* - * copy_file: copy file from src to dst - */ -gboolean copy_file (const char *src, const char *dst); - -/* - * make_string: make string of 'substr' substrings - * - returns newly allocated string - */ -char *make_string (const char* substr, const int count); - -/* - * fix_entities: replace all invalid & entities with & - * - returns newly allocated string - */ -void fix_entities (char **str); - -/* - * remove_tags: remove all occurences of tags beginning with tag_begin and ending with tag_end - * - e.g. remove_tags (&x, "<!--", "-->") will remove all comments - * - returns newly allocated string - */ -void remove_tags (char **str, const char *tag_begin, const char *tag_end); |
