/* Chrysalide - Outil d'analyse de fichiers binaires * extstr.h - prototypes pour une extension des fonctions relatives aux chaînes * * Copyright (C) 2009-2013 Cyrille Bagard * * This file is part of Chrysalide. * * OpenIDA 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 3 of the License, or * (at your option) any later version. * * OpenIDA 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 Foobar. If not, see . */ #ifndef _COMMON_EXTSTR_H #define _COMMON_EXTSTR_H #include /* Complète une chaîne de caractères avec une autre. */ char *stradd(char *str1, const char *str2); /* Complète une chaîne de caractères avec une autre. */ char *strnadd(char *, const char *, size_t); /* Fait précéder une chaîne de caractères par une autre. */ char *strprep(char *, const char *); /* Compare deux chaînes de caractères en partant de la fin. */ int strrcmp(const char *, const char *); /* Remplace des éléments d'une chaîne par d'autres. */ char *strrpl(char *, const char *, const char *); /* Extrait une liste de mots d'une chaîne. */ char **strtoka(const char *, const char *, size_t *); /* S'assure qu'une chaîne de caractères tient sur une ligne. */ char *escape_crlf(char *); /* Borne la taille d'une chaîne à une valeur donnée. */ char *ellipsis(char *, size_t); #endif /* _COMMON_EXTSTR_H */