home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / xml / glue / utils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.6 KB  |  50 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef    _XML_UTILS_H_
  20. #define    _XML_UTILS_H_
  21. #include "xp.h"
  22. #include <stdarg.h>
  23. #include <ctype.h>
  24.  
  25.  
  26.  
  27.  
  28. /* utils.c data structures and defines */
  29.  
  30. #define CONTAINER_FLAG 0x01
  31. #define LOCKED_FLAG    0x02
  32.  
  33.  
  34.  
  35. /* utils.c function prototypes */
  36.  
  37. XP_BEGIN_PROTOS
  38. char *        append2Strings (const char* str1, const char* str2);
  39. void        stringAppendBase (char* dest, const char* addition);
  40. void        stringAppend (char* dest, const char* addition);
  41. int16        charSearch (const char c, const char* data);
  42. PRBool        endsWith (const char* pattern, const char* uuid);
  43. PRBool        startsWith (const char* pattern, const char* uuid);
  44. PRBool        substring (const char* pattern, const char* data);
  45. int16        revCharSearch (const char c, const char* data);
  46. PRBool        urlEquals (const char* url1, const char* url2);
  47. XP_END_PROTOS
  48.  
  49. #endif
  50.