Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8f17e53

Browse files
committed
Move pg_encoding_mblen() from common.c to wchar.c.
1 parentf54c02d commit8f17e53

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

‎src/backend/utils/mb/common.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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(intencoding,constunsignedchar*mbstr)
103-
{
104-
return ((*pg_wchar_table[encoding].mblen) (mbstr));
105-
}

‎src/backend/utils/mb/wchar.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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(intencoding,constunsignedchar*mbstr)
506+
{
507+
return ((*pg_wchar_table[encoding].mblen) (mbstr));
508+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp