aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/ascii.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-08-05 14:59:29 +0000
committerBruce Momjian <bruce@momjian.us>2000-08-05 14:59:29 +0000
commit75b61043b0e95b2ff1f8b9d82c8ecf6a23519b3c (patch)
tree47071cbe32e91f61c413d4a074a88123d9f53b1f /src/include/utils/ascii.h
parent4ebb751219f83bb3ea5ed3762e85152ad0d62bae (diff)
downloadpostgresql-75b61043b0e95b2ff1f8b9d82c8ecf6a23519b3c.tar.gz
postgresql-75b61043b0e95b2ff1f8b9d82c8ecf6a23519b3c.zip
> I had to back out the patch. It only compiles with multi-byte enabled.
Ooops, I forget... here it is again. > > > If encoding is not supported returns ERROR. and if multibyte not enabled too.... Thanks. Karel ~
Diffstat (limited to 'src/include/utils/ascii.h')
-rw-r--r--src/include/utils/ascii.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/include/utils/ascii.h b/src/include/utils/ascii.h
index e69de29bb2d..c29d2dc904c 100644
--- a/src/include/utils/ascii.h
+++ b/src/include/utils/ascii.h
@@ -0,0 +1,27 @@
+
+/* -----------------------------------------------------------------------
+ * ascii.h
+ *
+ * $Id: ascii.h,v 1.3 2000/08/05 14:59:29 momjian Exp $
+ *
+ * Portions Copyright (c) 1999-2000, PostgreSQL, Inc
+ *
+ * -----------------------------------------------------------------------
+ */
+
+#ifndef _ASCII_H_
+#define _ASCII_H_
+
+#include "fmgr.h"
+
+extern Datum to_ascii_encname(PG_FUNCTION_ARGS);
+extern Datum to_ascii_enc(PG_FUNCTION_ARGS);
+extern Datum to_ascii_default(PG_FUNCTION_ARGS);
+
+#ifdef MULTIBYTE
+
+extern char *pg_to_ascii(unsigned char *src, unsigned char *src_end,
+ unsigned char *desc, int enc);
+#endif /* MULTIBYTE */
+
+#endif /* _ASCII_H_ */