mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Add support for code conversion between Unicode and other encodings.
Supported encodings are: EUC_JP, EUC_CN, EUC_KR, EUC_TW, Shift JIS, Big5, ISO8859-[1-5]. TODO: testings! and documentations...
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
* client encoding and server internal encoding.
|
||||
* (currently mule internal code (mic) is used)
|
||||
* Tatsuo Ishii
|
||||
* $Id: mbutils.c,v 1.12 2000/10/12 06:06:50 ishii Exp $ */
|
||||
* $Id: mbutils.c,v 1.13 2000/10/30 10:40:28 ishii Exp $ */
|
||||
|
||||
|
||||
#include "postgres.h"
|
||||
@ -209,13 +209,6 @@ pg_mblen(const unsigned char *mbstr)
|
||||
return ((*pg_wchar_table[GetDatabaseEncoding()].mblen) (mbstr));
|
||||
}
|
||||
|
||||
/* returns the byte length of a multi-byte word with specified enciding */
|
||||
int
|
||||
pg_mblen_with_encoding(const unsigned char *mbstr, int encoding)
|
||||
{
|
||||
return ((*pg_wchar_table[encoding].mblen) (mbstr));
|
||||
}
|
||||
|
||||
/* returns the length (counted as a wchar) of a multi-byte string */
|
||||
int
|
||||
pg_mbstrlen(const unsigned char *mbstr)
|
||||
|
Reference in New Issue
Block a user