Skip to content

Commit b35231a

Browse files
committed
Docs update
1 parent b518bb9 commit b35231a

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

CN/modules/ROOT/pages/master/6.4.adoc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,16 @@ if (encoding_name && *encoding_name)
4949
=== 多字节处理
5050

5151
wchar.c,增加 GB18030 的函数指针:
52-
pg_gb180302wchar_with_len(const unsigned char *from, pg_wchar *to, int len) gb18030 -> wchar
5352

54-
pg_wchar2gb18030_with_len(const pg_wchar *from, unsigned char *to, int len) wchar -> gb18030
53+
pg_gb180302wchar_with_len(const unsigned char *from, pg_wchar *to, int len) gb18030 -> wchar
5554

56-
pg_gb18030_mblen(const unsigned char *s):返回 1/2/4。
55+
pg_wchar2gb18030_with_len(const pg_wchar *from, unsigned char *to, int len) wchar -> gb18030
5756

58-
pg_gb18030_dsplen(const unsigned char *s):ASCII 显示宽度 1;其它按 1 处理(与UTF8一致)。
59-
60-
pg_gb18030_verifier(const unsigned char *s, int len):校验字节范围,拒绝非法序列。
57+
pg_gb18030_mblen(const unsigned char *s):返回 1/2/4。
58+
59+
pg_gb18030_dsplen(const unsigned char *s):ASCII 显示宽度 1;其它按 1 处理(与UTF8一致)。
60+
61+
pg_gb18030_verifier(const unsigned char *s, int len):校验字节范围,拒绝非法序列。
6162

6263
=== 与客户端的交互
6364

EN/modules/ROOT/pages/master/6.4.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ if (encoding_name && *encoding_name)
4848

4949
Function pointers for GB18030 are added in wchar.c:
5050

51-
pg_gb180302wchar_with_len(const unsigned char *from, pg_wchar *to, int len) gb18030 -> wchar
51+
pg_gb180302wchar_with_len(const unsigned char *from, pg_wchar *to, int len) gb18030 -> wchar
5252

53-
pg_wchar2gb18030_with_len(const pg_wchar *from, unsigned char *to, int len) wchar -> gb18030
53+
pg_wchar2gb18030_with_len(const pg_wchar *from, unsigned char *to, int len) wchar -> gb18030
5454

55-
pg_gb18030_mblen(const unsigned char *s):Returns 1/2/4.
55+
pg_gb18030_mblen(const unsigned char *s):Returns 1/2/4.
5656

57-
pg_gb18030_dsplen(const unsigned char *s):Calculates the display width of a character. ASCII characters have a width of 1, while others are also treated as having a width of 1 .
58-
59-
pg_gb18030_verifier(const unsigned char *s, int len):Verifies that a byte sequence is a valid GB18030 character, rejecting illegal sequences.
57+
pg_gb18030_dsplen(const unsigned char *s):Calculates the display width of a character. ASCII characters have a width of 1, while others are also treated as having a width of 1 .
58+
59+
pg_gb18030_verifier(const unsigned char *s, int len):Verifies that a byte sequence is a valid GB18030 character, rejecting illegal sequences.
6060

6161
=== Client-Server Interaction
6262

0 commit comments

Comments
 (0)