home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / modules / rdf / src / utils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.3 KB  |  74 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    _RDF_UTILS_H_
  20. #define    _RDF_UTILS_H_
  21.  
  22. #include "rdf.h"
  23. #include "rdf-int.h"
  24. #include "htrdf.h"
  25. #include "prprf.h"
  26. #include "xp.h"
  27. #include "glue.h"
  28. #include <stdarg.h>
  29. #include <ctype.h>
  30.  
  31.  
  32.  
  33.  
  34. /* utils.c data structures and defines */
  35.  
  36. #define CONTAINER_FLAG 0x01
  37. #define LOCKED_FLAG    0x02
  38.  
  39.  
  40.  
  41. /* utils.c function prototypes */
  42.  
  43. XP_BEGIN_PROTOS
  44.  
  45. RDF_Resource    getMCFFrtop (char* furl);
  46. void        addToResourceList (RDFFile f, RDF_Resource u);
  47. void        addToAssertionList (RDFFile f, Assertion as);
  48. void        ht_fprintf(PRFileDesc *file, const char *fmt, ...);
  49. void        ht_rjcprintf(PRFileDesc *file, const char *fmt, const char *data);
  50. char *        makeDBURL(char* name);
  51. PLHashNumber    idenHash (const void *key);
  52. int        idenEqual (const void *v1, const void *v2);
  53. PRBool        inverseTV (PRBool tv);
  54. char *        append2Strings (const char* str1, const char* str2);
  55. void        stringAppendBase (char* dest, const char* addition);
  56. void        stringAppend (char* dest, const char* addition);
  57. int16        charSearch (const char c, const char* data);
  58. PRBool        endsWith (const char* pattern, const char* uuid);
  59.  
  60. PRBool        substring (const char* pattern, const char* data);
  61. int16        revCharSearch (const char c, const char* data);
  62. PRBool        urlEquals (const char* url1, const char* url2);
  63. PRBool        isSeparator (RDF_Resource r);
  64. void        setContainerp (RDF_Resource r, PRBool val);
  65. PRBool        containerp (RDF_Resource r);
  66. uint8        resourceType (RDF_Resource r);
  67. void        setResourceType (RDF_Resource r, uint8 val);
  68. char *        resourceID(RDF_Resource r);
  69. char *        makeResourceName (RDF_Resource node);
  70.  
  71. XP_END_PROTOS
  72.  
  73. #endif
  74.