]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/string.h
Remove svn:keywords since they cause svn_load_dirs.pl to complain about every file.
[thirdparty/cups.git] / cups / string.h
index 5d2e778f0dae135608fea994c2d95e220834e975..76955c6654db55f95e596e4cb67b045e30213c71 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * "$Id: string.h 4683 2005-09-21 22:17:44Z mike $"
+ * "$Id: string.h 177 2006-06-21 00:20:03Z jlovell $"
  *
  *   String definitions for the Common UNIX Printing System (CUPS).
  *
- *   Copyright 1997-2005 by Easy Software Products.
+ *   Copyright 1997-2006 by Easy Software Products.
  *
  *   These coded instructions, statements, and computer programs are the
  *   property of Easy Software Products and are protected by Federal
  * Include necessary headers...
  */
 
-#  include <config.h>
-
 #  include <stdio.h>
+#  include <stdlib.h>
 #  include <stdarg.h>
 #  include <ctype.h>
+#  include <locale.h>
+
+#  include <config.h>
 
 #  ifdef HAVE_STRING_H
 #    include <string.h>
@@ -69,6 +71,17 @@ extern "C" {
 #  endif /* __cplusplus */
 
 
+/*
+ * String pool structures...
+ */
+
+typedef struct _cups_sp_item_s         /**** String Pool Item ****/
+{
+  char         *str;                   /* String */
+  unsigned int ref_count;              /* Reference count */
+} _cups_sp_item_t;
+
+
 /*
  * Prototypes...
  */
@@ -114,6 +127,25 @@ extern int _cups_vsnprintf(char *, size_t, const char *, va_list);
 #    define vsnprintf _cups_vsnprintf
 #  endif /* !HAVE_VSNPRINTF */
 
+/*
+ * String pool functions...
+ */
+
+extern char    *_cupsStrAlloc(const char *s);
+extern void    _cupsStrFlush(void);
+extern void    _cupsStrFree(const char *s);
+extern size_t  _cupsStrStatistics(size_t *alloc_bytes, size_t *total_bytes);
+
+
+/*
+ * Floating point number functions...
+ */
+
+extern char    *_cupsStrFormatd(char *buf, char *bufend, double number,
+                                struct lconv *loc);
+extern double  _cupsStrScand(const char *buf, char **bufptr,
+                             struct lconv *loc);
+
 
 /*
  * C++ magic...
@@ -126,5 +158,5 @@ extern int  _cups_vsnprintf(char *, size_t, const char *, va_list);
 #endif /* !_CUPS_STRING_H_ */
 
 /*
- * End of "$Id: string.h 4683 2005-09-21 22:17:44Z mike $".
+ * End of "$Id: string.h 177 2006-06-21 00:20:03Z jlovell $".
  */