diff options
author | Tatsuo Ishii <ishii@postgresql.org> | 2001-02-11 01:59:22 +0000 |
---|---|---|
committer | Tatsuo Ishii <ishii@postgresql.org> | 2001-02-11 01:59:22 +0000 |
commit | 8f17e53f0e8be8a316336a99f0fdc925030b3d51 (patch) | |
tree | 6dacb79178f7d5bf4afa0960f18de4b273354050 /src | |
parent | f54c02d2eb5ec11e36f401ff4eb4132b86b3d44e (diff) | |
download | postgresql-8f17e53f0e8be8a316336a99f0fdc925030b3d51.tar.gz postgresql-8f17e53f0e8be8a316336a99f0fdc925030b3d51.zip |
Move pg_encoding_mblen() from common.c to wchar.c.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/mb/common.c | 9 | ||||
-rw-r--r-- | src/backend/utils/mb/wchar.c | 11 |
2 files changed, 11 insertions, 9 deletions
diff --git a/src/backend/utils/mb/common.c b/src/backend/utils/mb/common.c index 7c477a706cc..1b3fe5fcf94 100644 --- a/src/backend/utils/mb/common.c +++ b/src/backend/utils/mb/common.c @@ -2,7 +2,7 @@ * This file contains some public functions * usable for both the backend and the frontend. * Tatsuo Ishii - * $Id: common.c,v 1.11 2001/02/10 02:31:27 tgl Exp $ + * $Id: common.c,v 1.12 2001/02/11 01:59:22 ishii Exp $ */ #include "postgres.h" @@ -96,10 +96,3 @@ PG_encoding_to_char(PG_FUNCTION_ARGS) } #endif - -/* returns the byte length of a multi-byte word for an encoding */ -int -pg_encoding_mblen(int encoding, const unsigned char *mbstr) -{ - return ((*pg_wchar_table[encoding].mblen) (mbstr)); -} diff --git a/src/backend/utils/mb/wchar.c b/src/backend/utils/mb/wchar.c index 0e03d90b1d8..a4bf1131ad2 100644 --- a/src/backend/utils/mb/wchar.c +++ b/src/backend/utils/mb/wchar.c @@ -1,7 +1,7 @@ /* * conversion functions between pg_wchar and multi-byte streams. * Tatsuo Ishii - * $Id: wchar.c,v 1.14 2001/02/10 02:31:27 tgl Exp $ + * $Id: wchar.c,v 1.15 2001/02/11 01:59:22 ishii Exp $ * * WIN1250 client encoding updated by Pavel Behal * @@ -497,3 +497,12 @@ pg_mic_mblen(const unsigned char *mbstr) { return (pg_mule_mblen(mbstr)); } + +/* + * Returns the byte length of a multi-byte word. + */ +int +pg_encoding_mblen(int encoding, const unsigned char *mbstr) +{ + return ((*pg_wchar_table[encoding].mblen) (mbstr)); +} |