/*
- * "$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>
# 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...
*/
# 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...
#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 $".
*/