Remove UXPDS support
[oweals/cde.git] / cde / lib / DtHelp / CvStringI.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: CvStringI.h /main/3 1996/08/30 13:37:59 cde-hp $ */
24 /************************************<+>*************************************
25  ****************************************************************************
26  **
27  **   File:        CvStringI.h
28  **
29  **   Project:     Cde DtHelp
30  **
31  **   Description: Header file for CvString.c
32  **
33  **
34  **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
35  **
36  **  (c) Copyright 1993, 1994 Hewlett-Packard Company
37  **  (c) Copyright 1993, 1994 International Business Machines Corp.
38  **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
39  **  (c) Copyright 1993, 1994 Novell, Inc.
40  **
41  **
42  **
43  ****************************************************************************
44  ************************************<+>*************************************/
45 #ifndef _DtCvStringI_h
46 #define _DtCvStringI_h
47
48 /*****************************************************************************
49  *           Macro defines
50  *****************************************************************************/
51 #define _DtCvToLower(c) (('A' <= (c) && (c) <= 'Z') ? (c) + 'a' - 'A' : (c))
52
53 /*****************************************************************************
54  *           Extern defines
55  *****************************************************************************/
56 #if !defined(_AIX) && !defined(USL)
57 #define _DtCvStrCaseCmp(s1,s2)      strcasecmp(s1,s2)
58 #endif /* _AIX  or USL */
59
60 extern  void     **_DtCvAddPtrToArray (
61                         void            **array,
62                         void             *ptr);
63 extern  wchar_t    _DtCvChar (
64                         const void      *p1,
65                         int              type,
66                         int              count);
67 extern  int        _DtCvFreeArray (void **array);
68 extern  int        _DtCvStrcspn(
69                         const void      *s1,
70                         const char      *s2,
71                         int              type,
72                         int             *ret_len);
73 extern  int       _DtCvStrLen (
74                         const void      *p1,
75                         int              type);
76 extern  void     *_DtCvStrPtr (
77                         const void      *p1,
78                         int              type,
79                         int              count);
80
81 #if     defined(_AIX) || defined(USL)
82 extern  int     _DtCvStrCaseCmp(
83                         const char      *s1,
84                         const char      *s2);
85 #endif /* _AIX or USL */
86 extern  int     _DtCvStrCaseCmpLatin1(
87                         const char      *s1,
88                         const char      *s2);
89 extern  int     _DtCvStrNCaseCmpLatin1(
90                         const char      *s1,
91                         const char      *s2,
92                         size_t           n);
93
94 #endif /* _DtCvStringI_h */