aboutsummaryrefslogtreecommitdiff
path: root/src/include/regex/pg_wchar.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-04-27 17:10:50 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-04-27 17:10:50 +0000
commitf554af0a9fdbe0e9636fce36d6c809e81ce1539c (patch)
tree3cd60fe19a94c78e774ac3b70ef3d729f7896f20 /src/include/regex/pg_wchar.h
parent2cbcf461028dee105f69328e4589f08a4f59db91 (diff)
downloadpostgresql-f554af0a9fdbe0e9636fce36d6c809e81ce1539c.tar.gz
postgresql-f554af0a9fdbe0e9636fce36d6c809e81ce1539c.zip
From: t-ishii@sra.co.jp
Hi, here are patches I promised (against 6.3.2): * character_length(), position(), substring() are now aware of multi-byte characters * add octet_length() * add --with-mb option to configure * new regression tests for EUC_KR (contributed by "Soonmyung. Hong" <hong@lunaris.hanmesoft.co.kr>) * add some test cases to the EUC_JP regression test * fix problem in regress/regress.sh in case of System V * fix toupper(), tolower() to handle 8bit chars note that: o patches for both configure.in and configure are included. maybe the one for configure is not necessary. o pg_proc.h was modified to add octet_length(). I used OIDs (1374-1379) for that. Please let me know if these numbers are not appropriate.
Diffstat (limited to 'src/include/regex/pg_wchar.h')
-rw-r--r--src/include/regex/pg_wchar.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/regex/pg_wchar.h b/src/include/regex/pg_wchar.h
index 616f76cfec5..b135df82f12 100644
--- a/src/include/regex/pg_wchar.h
+++ b/src/include/regex/pg_wchar.h
@@ -1,4 +1,4 @@
-/* $Id: pg_wchar.h,v 1.1 1998/03/15 07:38:47 scrappy Exp $ */
+/* $Id: pg_wchar.h,v 1.2 1998/04/27 17:09:12 scrappy Exp $ */
#ifndef PG_WCHAR_H
#define PG_WCHAR_H
@@ -39,6 +39,9 @@ extern int pg_char_and_wchar_strcmp(const char *, const pg_wchar *);
extern int pg_wchar_strncmp(const pg_wchar *, const pg_wchar *, size_t);
extern int pg_char_and_wchar_strncmp(const char *, const pg_wchar *, size_t);
extern size_t pg_wchar_strlen(const pg_wchar *);
+extern int pg_mblen(const unsigned char *);
+extern int pg_mbstrlen(const unsigned char *);
+extern int pg_mbstrlen_with_len(const unsigned char *, int);
#endif
#endif