diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-08-18 07:36:48 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-08-18 07:36:48 +0200 |
commit | 46a9d17ac331b1df9fbd33a7c23f87fd58246a2e (patch) | |
tree | 1a4bd97bade2b4977683fa2c07f639ace3f5e5c0 /doc/ja | |
parent | fd1886e883968dbf372157644ce5664e75a6ff4b (diff) | |
download | weechat-46a9d17ac331b1df9fbd33a7c23f87fd58246a2e.zip |
api: add argument "length" in function utf8_is_valid()
Diffstat (limited to 'doc/ja')
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.asciidoc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc index 5aad67915..f7f17fb9c 100644 --- a/doc/ja/weechat_plugin_api.ja.asciidoc +++ b/doc/ja/weechat_plugin_api.ja.asciidoc @@ -2152,18 +2152,23 @@ if (weechat_utf8_has_8bits (string)) ==== utf8_is_valid +_バージョン 1.4 で更新。_ + 文字列が妥当な UTF-8 表現か確認。 プロトタイプ: [source,C] ---- -int weechat_utf8_is_valid (const char *string, char **error); +int weechat_utf8_is_valid (const char *string, int length, char **error); ---- 引数: * 'string': 文字列 +// TRANSLATION MISSING +* 'length': max number of UTF-8 chars to check; if ≤ 0, the whole string is + checked _(WeeChat ≥ 1.4)_ * 'error': NULL でない場合は '*error*' は文字列に含まれる最初の妥当でない UTF-8 文字へのポインタ @@ -2176,7 +2181,7 @@ C 言語での使用例: [source,C] ---- char *error; -if (weechat_utf8_is_valid (string, &error)) +if (weechat_utf8_is_valid (string, -1, &error)) { /* ... */ } |