]> git.sur5r.net Git - openldap/blob - contrib/tweb/strng_exp.h
Fix dynamic linking dependencies for NT and Unix
[openldap] / contrib / tweb / strng_exp.h
1 /*_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
2 *                                                                          *
3 * strng_exp.h                                                              *
4 *                                                                          *
5 * Function:..String Handling Functions                                     *
6 *                                                                          *
7 *                                                                          *
8 *                                                                          *
9 * Authors:...Dr. Kurt Spanier & Bernhard Winkler,                          *
10 *            Zentrum fuer Datenverarbeitung, Bereich Entwicklung           *
11 *            neuer Dienste, Universitaet Tuebingen, GERMANY                *
12 *                                                                          *
13 *                                       ZZZZZ  DDD    V   V                *
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                  *
18 *                                                                          *
19 _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_*/
20
21 /*
22  * $Id: strng_exp.h,v 1.6 1999/09/10 15:01:19 zrnsk01 Exp $
23  *
24  */
25
26 #ifndef  __STRNG_EXP__
27 #define  __STRNG_EXP__
28
29 #include <ctype.h> 
30 #include <stdio.h>
31 #include <string.h>
32 #include <time.h>
33  
34
35
36 /*
37  *  Structures for the offered Funktions
38  */
39
40 typedef struct _str2intDispatch {
41
42                 char    *stringVal;
43                 int      abbr,
44                          intVal;
45
46         } STRDISP, *STRDISP_P;
47
48
49 /*
50  *  The "offered" Funktions
51  */
52
53 /*  Conversion to upper/lower case in the whole string */
54 char  *str_tolower (/* char *string */);
55 char  *str_toupper (/* char *string */);
56
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 */);
60
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 */);
65
66 /*  A special WHAT: whitespaces  */
67 #define  WSPACE  "\n\r\t "
68
69 /*  Substitute a character in a string to another */
70 char  *tr1 (/* char *source, char from, char to */);
71
72 /*  Count the named characters of string2 in string1  */
73 int chrcnt (/*String1, String2*/);
74
75
76 /*  Compare by string values in qsort()  */
77 int qSortByString (/* char **StringP1, char **StringP2 */);
78
79 #endif
80