initial commit
[profile/ivi/xterm.git] / xstrings.h
1 /* $XTermId: xstrings.h,v 1.19 2009/12/06 15:50:18 tom Exp $ */
2
3 /************************************************************
4
5 Copyright 2000-2008,2009 by Thomas E. Dickey
6
7                         All Rights Reserved
8
9 Permission is hereby granted, free of charge, to any person obtaining a
10 copy of this software and associated documentation files (the
11 "Software"), to deal in the Software without restriction, including
12 without limitation the rights to use, copy, modify, merge, publish,
13 distribute, sublicense, and/or sell copies of the Software, and to
14 permit persons to whom the Software is furnished to do so, subject to
15 the following conditions:
16
17 The above copyright notice and this permission notice shall be included
18 in all copies or substantial portions of the Software.
19
20 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
24 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27
28 Except as contained in this notice, the name(s) of the above copyright
29 holders shall not be used in advertising or otherwise to promote the
30 sale, use or other dealings in this Software without prior written
31 authorization.
32
33 ********************************************************/
34
35 #ifndef included_xstrings_h
36 #define included_xstrings_h 1
37
38 #include <X11/Intrinsic.h>
39
40 extern String x_nonempty(String /* s */);
41 extern String x_skip_blanks(String /* s */);
42 extern String x_skip_nonblanks(String /* s */);
43 extern char *x_basename(char * /* name */);
44 extern char *x_decode_hex(const char * /* source */, const char ** /* next */);
45 extern char *x_encode_hex(const char * /* source */);
46 extern char *x_getenv(const char * /* name */);
47 extern char *x_strdup(const char * /* s */);
48 extern char *x_strindex(char * /* s1 */, const char * /* s2 */);
49 extern char *x_strtrim(const char * /* s */);
50 extern char x_toupper(int /* ch */);
51 extern int x_hex2int(int /* ch */);
52 extern int x_strcasecmp(const char * /* s1 */, const char * /* s2 */);
53 extern int x_strncasecmp(const char * /* s1 */, const char * /* s2 */, unsigned  /* n */);
54
55 #endif /* included_xstrings_h */