diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2018-04-07 13:20:58 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2018-04-07 13:20:58 +0200 |
commit | 6de98179bc87df4f2da38e36d64a03a1c0f9f623 (patch) | |
tree | ac3505c42a0297cf32fa966fc67f86a7825d8520 /doc/ja | |
parent | ea365cccbffb245285b33e5beeebac06743f7056 (diff) | |
download | weechat-6de98179bc87df4f2da38e36d64a03a1c0f9f623.zip |
api: add function string_format_size in scripting API
Diffstat (limited to 'doc/ja')
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 12 | ||||
-rw-r--r-- | doc/ja/weechat_scripting.ja.adoc | 1 |
2 files changed, 11 insertions, 2 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index 4f5776e80..875a0a14a 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -1724,8 +1724,16 @@ char *str = weechat_string_format_size (2097152); /* str == "2.10 MB" */ free (str); ---- -[NOTE] -スクリプト API ではこの関数を利用できません。 +スクリプト (Python) での使用例: + +[source,python] +---- +# プロトタイプ +str = weechat.string_format_size(size) + +# 例 +str = weechat.string_format_size(15200) # == "15.2 KB" +---- ==== string_remove_color diff --git a/doc/ja/weechat_scripting.ja.adoc b/doc/ja/weechat_scripting.ja.adoc index b90a4a5b5..1a1f65923 100644 --- a/doc/ja/weechat_scripting.ja.adoc +++ b/doc/ja/weechat_scripting.ja.adoc @@ -438,6 +438,7 @@ link:weechat_plugin_api.ja.html[WeeChat プラグイン API リファレンス] string_has_highlight + string_has_highlight_regex + string_mask_to_regex + + string_format_size + string_remove_color + string_is_command_char + string_input_for_buffer + |