CvStringI.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. * Macro defines
  49. *****************************************************************************/
  50. #define _DtCvToLower(c) (('A' <= (c) && (c) <= 'Z') ? (c) + 'a' - 'A' : (c))
  51. /*****************************************************************************
  52. * Extern defines
  53. *****************************************************************************/
  54. #if !defined(_AIX)
  55. #define _DtCvStrCaseCmp(s1,s2) strcasecmp(s1,s2)
  56. #endif /* _AIX */
  57. extern void **_DtCvAddPtrToArray (
  58. void **array,
  59. void *ptr);
  60. extern wchar_t _DtCvChar (
  61. const void *p1,
  62. int type,
  63. int count);
  64. extern int _DtCvFreeArray (void **array);
  65. extern int _DtCvStrcspn(
  66. const void *s1,
  67. const char *s2,
  68. int type,
  69. int *ret_len);
  70. extern int _DtCvStrLen (
  71. const void *p1,
  72. int type);
  73. extern void *_DtCvStrPtr (
  74. const void *p1,
  75. int type,
  76. int count);
  77. #if defined(_AIX)
  78. extern int _DtCvStrCaseCmp(
  79. const char *s1,
  80. const char *s2);
  81. #endif /* _AIX */
  82. extern int _DtCvStrCaseCmpLatin1(
  83. const char *s1,
  84. const char *s2);
  85. extern int _DtCvStrNCaseCmpLatin1(
  86. const char *s1,
  87. const char *s2,
  88. size_t n);
  89. #endif /* _DtCvStringI_h */