head 1.5; access; symbols PETIDOMO_4_0b6:1.5 PETIDOMO_4_0b5:1.5 PETIDOMO_4_0b4:1.5 PETIDOMO_4_0b3:1.5 BEFORETHL:1.5 petidomo-2-2:1.1.1.1 petidomo:1.1.1; locks; strict; comment @ * @; 1.5 date 2001.01.19.08.23.11; author rse; state Exp; branches; next 1.4; 1.4 date 2000.12.15.17.27.27; author simons; state Exp; branches; next 1.3; 1.3 date 2000.12.13.17.37.56; author simons; state Exp; branches; next 1.2; 1.2 date 2000.12.13.15.45.25; author simons; state Exp; branches; next 1.1; 1.1 date 2000.12.13.13.19.07; author simons; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.12.13.13.19.07; author simons; state Exp; branches; next ; desc @@ 1.5 log @Do not use C++ comments in ANSI C @ text @/* $Source: /e/ossp/cvs/ossp-pkg/petidomo/libtext/text.h,v $ $Revision: 1.4 $ Copyright (C) 2000 by CyberSolutions GmbH, Germany. This file is part of OpenPetidomo. OpenPetidomo 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, or (at your option) any later version. OpenPetidomo 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 OpenPetidomo; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __LIB_TEXT_H__ #define __LIB_TEXT_H__ 1 #ifdef __cplusplus extern "C" { #endif #include #include #include #ifdef DEBUG_DMALLOC # include #endif /********** Useful defines and declarations **********/ #ifndef __cplusplus #ifndef __HAVE_DEFINED_BOOL__ # define __HAVE_DEFINED_BOOL__ 1 typedef int bool; #endif #ifndef FALSE # define FALSE (0==1) #endif #ifndef TRUE # define TRUE (1==1) #endif #endif enum { TEXT_REGEX_OK = 0, TEXT_REGEX_ERROR, TEXT_REGEX_TRANSFORM_DIDNT_MATCH }; /********** Structures **********/ /********** Prototypes **********/ int text_transform_text(char *, const char *, const char *, const char *); bool text_easy_pattern_match(const char * buffer, const char * pattern); void text_wordwrap(char * buffer, unsigned int line_len); char * text_easy_sprintf(const char * fmt, ...); char * text_find_next_line(char *); char * text_find_string(char * buffer, char * string); #ifdef __cplusplus } /* end extern "C" */ #endif #endif /* !__LIB_TEXT_H__ */ @ 1.4 log @Wrapped the header's contents in "extern C" linkage when compiling in a C++ module. @ text @d2 2 a3 2 $Source: /d1/e/petidomo/cvs/petidomo/source/libtext/text.h,v $ $Revision: 1.3 $ d73 1 a73 1 } // end extern "C" @ 1.3 log @Added correct GPL copyright headers. @ text @d2 2 a3 2 $Source$ $Revision$ d28 4 d71 4 @ 1.2 log @Imported latest version. @ text @d2 22 a23 36 * $Source: /home/cvs/lib/libtext/text.h,v $ * $Revision: 1.1.1.1 $ * $Date: 1999/08/23 07:40:17 $ * * Copyright (c) 1996-99 by Peter Simons * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by Peter Simons. * * 4. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ @ 1.1 log @Initial revision @ text @d2 3 a4 3 * $Source: /usr/local/libdata/cvs/c-lib/libtext/text.h,v $ * $Revision: 1.8 $ * $Date: 1997/12/13 12:16:39 $ d6 31 a36 2 * Copyright (C) 1996,97 by CyberSolutions GmbH. * All rights reserved. d51 1 d56 1 d63 1 a63 1 @ 1.1.1.1 log @Imported Petidomo 2.2 as found on www.petidomo.com. @ text @@