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

Commit8cca257

Browse files
committed
Change return type of:
pg_mb2wchar(const unsigned char *, pg_wchar *); pg_mb2wchar_with_len(const unsigned char *, pg_wchar *, int);from void to int. Now they return the number ofwide chars.
1 parent996832c commit8cca257

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/include/mb/pg_wchar.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: pg_wchar.h,v 1.16 2000/06/15 00:52:19 momjian Exp $ */
1+
/* $Id: pg_wchar.h,v 1.17 2000/08/25 14:24:09 ishii Exp $ */
22

33
#ifndefPG_WCHAR_H
44
#definePG_WCHAR_H
@@ -88,15 +88,15 @@ extern pg_encoding_conv_tbl pg_conv_tbl[];
8888

8989
typedefstruct
9090
{
91-
void(*mb2wchar_with_len) ();/* convert a multi-byte
91+
int(*mb2wchar_with_len) ();/* convert a multi-byte
9292
* string to a wchar */
9393
int(*mblen) ();/* returns the length of a multi-byte word */
9494
}pg_wchar_tbl;
9595

9696
externpg_wchar_tblpg_wchar_table[];
9797

98-
externvoidpg_mb2wchar(constunsignedchar*,pg_wchar*);
99-
externvoidpg_mb2wchar_with_len(constunsignedchar*,pg_wchar*,int);
98+
externintpg_mb2wchar(constunsignedchar*,pg_wchar*);
99+
externintpg_mb2wchar_with_len(constunsignedchar*,pg_wchar*,int);
100100
externintpg_char_and_wchar_strcmp(constchar*,constpg_wchar*);
101101
externintpg_wchar_strncmp(constpg_wchar*,constpg_wchar*,size_t);
102102
externintpg_char_and_wchar_strncmp(constchar*,constpg_wchar*,size_t);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp