/*
* conversion functions between pg_wchar and multibyte streams.
* Tatsuo Ishii
- * $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.48 2005/12/24 09:35:36 ishii Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.49 2005/12/24 16:49:48 momjian Exp $
*
* WIN1250 client encoding updated by Pavel Behal
*
/*
* SQL/ASCII
*/
-static int pg_ascii2wchar_with_len
+static int
+pg_ascii2wchar_with_len
(const unsigned char *from, pg_wchar *to, int len)
{
int cnt = 0;
cnt++;
}
*to = 0;
- return (cnt);
+ return cnt;
}
static int
pg_ascii_mblen(const unsigned char *s)
{
- return (1);
+ return 1;
}
static int
pg_ascii_dsplen(const unsigned char *s)
{
- return (1);
+ return 1;
}
/*
cnt++;
}
*to = 0;
- return (cnt);
+ return cnt;
}
static int
len = 2;
else
len = 1;
- return (len);
+ return len;
}
static int
len = 2;
else
len = 1;
- return (len);
+ return len;
}
/*
static int pg_eucjp2wchar_with_len
(const unsigned char *from, pg_wchar *to, int len)
{
- return (pg_euc2wchar_with_len(from, to, len));
+ return pg_euc2wchar_with_len(from, to, len);
}
static int
pg_eucjp_mblen(const unsigned char *s)
{
- return (pg_euc_mblen(s));
+ return pg_euc_mblen(s);
}
static int
len = 2;
else
len = 1;
- return (len);
+ return len;
}
/*
static int pg_euckr2wchar_with_len
(const unsigned char *from, pg_wchar *to, int len)
{
- return (pg_euc2wchar_with_len(from, to, len));
+ return pg_euc2wchar_with_len(from, to, len);
}
static int
pg_euckr_mblen(const unsigned char *s)
{
- return (pg_euc_mblen(s));
+ return pg_euc_mblen(s);
}
static int
pg_euckr_dsplen(const unsigned char *s)
{
- return (pg_euc_dsplen(s));
+ return pg_euc_dsplen(s);
}
/*
cnt++;
}
*to = 0;
- return (cnt);
+ return cnt;
}
static int
len = 2;
else
len = 1;
- return (len);
+ return len;
}
static int
len = 2;
else
len = 1;
- return (len);
+ return len;
}
/*
cnt++;
}
*to = 0;
- return (cnt);
+ return cnt;
}
static int
len = 2;
else
len = 1;
- return (len);
+ return len;
}
static int
len = 2;
else
len = 1;
- return (len);
+ return len;
}
/*
static int
pg_johab2wchar_with_len(const unsigned char *from, pg_wchar *to, int len)
{
- return (pg_euc2wchar_with_len(from, to, len));
+ return pg_euc2wchar_with_len(from, to, len);
}
static int
pg_johab_mblen(const unsigned char *s)
{
- return (pg_euc_mblen(s));
+ return pg_euc_mblen(s);
}
static int
pg_johab_dsplen(const unsigned char *s)
{
- return (pg_euc_dsplen(s));
+ return pg_euc_dsplen(s);
}
/*
cnt++;
}
*to = 0;
- return (cnt);
+ return cnt;
}
/*
len = 5;
else if ((*s & 0xfe) == 0xfc)
len = 6;
- return (len);
+ return len;
}
static int
cnt++;
}
*to = 0;
- return (cnt);
+ return cnt;
}
int
{ /* assume ASCII */
len = 1;
}
- return (len);
+ return len;
}
static int
cnt++;
}
*to = 0;
- return (cnt);
+ return cnt;
}
static int
pg_latin1_mblen(const unsigned char *s)
{
- return (1);
+ return 1;
}
static int
pg_latin1_dsplen(const unsigned char *s)
{
- return (1);
+ return 1;
}
/*
{ /* should be ASCII */
len = 1;
}
- return (len);
+ return len;
}
static int
{ /* should be ASCII */
len = 1;
}
- return (len);
+ return len;
}
/*
{ /* should be ASCII */
len = 1;
}
- return (len);
+ return len;
}
static int
{ /* should be ASCII */
len = 1;
}
- return (len);
+ return len;
}
/*
{ /* should be ASCII */
len = 1;
}
- return (len);
+ return len;
}
static int
{ /* should be ASCII */
len = 1;
}
- return (len);
+ return len;
}
/*
{ /* should be ASCII */
len = 1;
}
- return (len);
+ return len;
}
static int
{ /* should be ASCII */
len = 1;
}
- return (len);
+ return len;
}
/*
else
len = 2;
}
- return (len);
+ return len;
}
static int
}
else
len = 2;
- return (len);
+ return len;
}
int
pg_mic_mblen(const unsigned char *mbstr)
{
- return (pg_mule_mblen(mbstr));
+ return pg_mule_mblen(mbstr);
}
/*