mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Move pg_encoding_mblen() from common.c to wchar.c.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user