1 /*_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
5 * Function:..String Handling Functions *
9 * Authors:...Dr. Kurt Spanier & Bernhard Winkler, *
10 * Zentrum fuer Datenverarbeitung, Bereich Entwicklung *
11 * neuer Dienste, Universitaet Tuebingen, GERMANY *
14 * Creation date: Z D D V V *
15 * February 13 1996 Z D D V V *
16 * Last modification: Z D D V V *
17 * November 3 1998 ZZZZ DDD V *
19 _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_*/
22 * $Id: strng_exp.h,v 1.6 1999/09/10 15:01:19 zrnsk01 Exp $
37 * Structures for the offered Funktions
40 typedef struct _str2intDispatch {
46 } STRDISP, *STRDISP_P;
50 * The "offered" Funktions
53 /* Conversion to upper/lower case in the whole string */
54 char *str_tolower (/* char *string */);
55 char *str_toupper (/* char *string */);
57 /* Convert string to integer by means of a dispatcherlist */
58 /* if string is not in the dispatcher -> return default */
59 int cnvt_str2int (/* string, dispatcher, default */);
61 /* Truncate characters at the beginning and end of a string */
62 char *trimleft (/* char *s, char *what */);
63 char *trimright (/* char *s, char *what */);
64 char *trim (/* char *s, char *what */);
66 /* A special WHAT: whitespaces */
67 #define WSPACE "\n\r\t "
69 /* Substitute a character in a string to another */
70 char *tr1 (/* char *source, char from, char to */);
72 /* Count the named characters of string2 in string1 */
73 int chrcnt (/*String1, String2*/);
76 /* Compare by string values in qsort() */
77 int qSortByString (/* char **StringP1, char **StringP2 */);