File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 22 * This file contains some public functions
33 * usable for both the backend and the frontend.
44 * Tatsuo Ishii
5- * $Id: common.c,v 1.11 2001/02/10 02:31:27 tgl Exp $
5+ * $Id: common.c,v 1.12 2001/02/11 01:59:22 ishii Exp $
66 */
77#include "postgres.h"
88
@@ -96,10 +96,3 @@ PG_encoding_to_char(PG_FUNCTION_ARGS)
9696}
9797
9898#endif
99-
100- /* returns the byte length of a multi-byte word for an encoding */
101- int
102- pg_encoding_mblen (int encoding , const unsigned char * mbstr )
103- {
104- return ((* pg_wchar_table [encoding ].mblen ) (mbstr ));
105- }
Original file line number Diff line number Diff line change 11/*
22 * conversion functions between pg_wchar and multi-byte streams.
33 * Tatsuo Ishii
4- * $Id: wchar.c,v 1.14 2001/02/10 02:31:27 tgl Exp $
4+ * $Id: wchar.c,v 1.15 2001/02/11 01:59:22 ishii Exp $
55 *
66 * WIN1250 client encoding updated by Pavel Behal
77 *
@@ -497,3 +497,12 @@ pg_mic_mblen(const unsigned char *mbstr)
497497{
498498 return (pg_mule_mblen (mbstr ));
499499}
500+
501+ /*
502+ * Returns the byte length of a multi-byte word.
503+ */
504+ int
505+ pg_encoding_mblen (int encoding , const unsigned char * mbstr )
506+ {
507+ return ((* pg_wchar_table [encoding ].mblen ) (mbstr ));
508+ }
You can’t perform that action at this time.
0 commit comments