initial load of upstream version 1.06.32
[xmlrpc-c] / include / xmlrpc-c / string_int.h
diff --git a/include/xmlrpc-c/string_int.h b/include/xmlrpc-c/string_int.h
new file mode 100644 (file)
index 0000000..f1bfb7b
--- /dev/null
@@ -0,0 +1,60 @@
+#ifndef XMLRPC_C_STRING_INT_H_INCLUDED
+#define XMLRPC_C_STRING_INT_H_INCLUDED
+
+
+#include <stdarg.h>
+#include <string.h>
+
+#include "xmlrpc-c/base_int.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+extern const char * const xmlrpc_strsol;
+
+void
+xmlrpc_vasprintf(const char ** const retvalP,
+                 const char *  const fmt,
+                 va_list             varargs);
+
+void GNU_PRINTF_ATTR(2,3)
+xmlrpc_asprintf(const char ** const retvalP, const char * const fmt, ...);
+
+void
+xmlrpc_strfree(const char * const string);
+
+static __inline__ bool
+xmlrpc_streq(const char * const a,
+             const char * const b) {
+    return (strcmp(a, b) == 0);
+}
+
+static __inline__ bool
+xmlrpc_strcaseeq(const char * const a,
+                 const char * const b) {
+    return (strcasecmp(a, b) == 0);
+}
+
+static __inline__ bool
+xmlrpc_strneq(const char * const a,
+              const char * const b,
+              size_t       const len) {
+    return (strncmp(a, b, len) == 0);
+}
+
+const char * 
+xmlrpc_makePrintable(const char * const input);
+
+const char *
+xmlrpc_makePrintable_lp(const char * const input,
+                        size_t       const inputLength);
+
+const char *
+xmlrpc_makePrintableChar(char const input);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif