From bf7e926ca93b73a711b742990d2e020f85f423ab Mon Sep 17 00:00:00 2001 From: Stanislav KROTER Date: Sun, 1 Dec 2013 13:50:48 +0600 Subject: [PATCH] Revision of help page for listfunctions function Added russian translation of this help page. Change-Id: I5000fabd5d49adb112ec341f5ecc455f71110ea7 --- .../modules/functions/help/en_US/listfunctions.xml | 35 ++++-- .../modules/functions/help/ja_JP/listfunctions.xml | 29 +++-- .../modules/functions/help/pt_BR/listfunctions.xml | 24 ++-- .../modules/functions/help/ru_RU/listfunctions.xml | 132 ++++++++++++++++++++ 4 files changed, 189 insertions(+), 31 deletions(-) create mode 100644 scilab/modules/functions/help/ru_RU/listfunctions.xml diff --git a/scilab/modules/functions/help/en_US/listfunctions.xml b/scilab/modules/functions/help/en_US/listfunctions.xml index bb6515d..0e6c87d 100644 --- a/scilab/modules/functions/help/en_US/listfunctions.xml +++ b/scilab/modules/functions/help/en_US/listfunctions.xml @@ -2,7 +2,7 @@ listfunctions - properties of all functions in + properties of all functions in the workspace @@ -16,38 +16,43 @@ scope - string, "local" (default) or "global" + + a string, "local" (default) or "global". flist - string array, names of all the function variables in the specified namespace + + a string array, names of all the function variables in the specified namespace. compiled - boolean array, true if the corresponding element of flist is of type=13 + + a boolean array, true if the corresponding element of flist is of type 13. profilable - boolean array, true if the corresponding element of flist is of type=13, + + a boolean array, true if the corresponding element of flist is of type 13, and additionally profiling information is found in the pseudocode of - the function + the function. called - uint32 array, number of times the corresponding element of flist has been - already called (nonzero only for profilable functions) + + an uint32 array, number of times the corresponding element of flist has been + already called (nonzero only for profilable functions). @@ -58,17 +63,17 @@ - This function checks all the variables in the workspace (given by + This function checks all the variables in the workspace (given by who) and collects those of type 11 or 13; for the latter, - lst=macr2lst(fun) is called, in order to check for the magic - profiling entry at the end of the first codeline, i.e. lst(5)(1)=="25". + lst = macr2lst(fun) is called, in order to check for the magic + profiling entry at the end of the first codeline, i.e. lst(5)(1)=="25". Examples - fun2string + macr2lst + + profile recompilefunction + + who + diff --git a/scilab/modules/functions/help/ja_JP/listfunctions.xml b/scilab/modules/functions/help/ja_JP/listfunctions.xml index 293e649..56be924 100644 --- a/scilab/modules/functions/help/ja_JP/listfunctions.xml +++ b/scilab/modules/functions/help/ja_JP/listfunctions.xml @@ -16,14 +16,15 @@ scope - 文字列, "local" (デフォルト) または "global" + + 文字列, "local" (デフォルト) または "global" flist - 文字列の配列, + 文字列の配列, 指定した名前空間にある全関数変数の名前 @@ -31,16 +32,16 @@ compiled - 論理値配列, - 対応するflistの要素が型=13の場合に真 + 論理値配列, + 対応するflistの要素が型=13の場合に真 profilable - 論理値配列, - 対応するflistの要素が型=13の場合に真となり, + 論理値配列, + 対応するflistの要素が型=13の場合に真となり, プロファイル情報が関数の擬似コードの中に追加されます. @@ -48,8 +49,8 @@ called - uint32 配列, - flist の対応する要素がコールされた回数 + uint32 配列, + flist の対応する要素がコールされた回数 (プロファイル可能な関数の場合のみ非ゼロ) @@ -64,17 +65,17 @@ この関数は,(whoで指定した) ワークスペースの全ての変数を確認し, 型11または13の変数を収集します; - 後で, lst=macr2lst(fun) が + 後で, lst = macr2lst(fun) が コールされた際, 最初のコード行の末尾に特殊なプロファイルエントリ - lst(5)(1)=="25" がチェックされます. + lst(5)(1)=="25" がチェックされます. 例 - fun2string + macr2lst + + profile recompilefunction + + who + diff --git a/scilab/modules/functions/help/pt_BR/listfunctions.xml b/scilab/modules/functions/help/pt_BR/listfunctions.xml index f2f35f0..eed04b3 100644 --- a/scilab/modules/functions/help/pt_BR/listfunctions.xml +++ b/scilab/modules/functions/help/pt_BR/listfunctions.xml @@ -1,5 +1,5 @@ - + listfunctions propriedades de todas as funções no espaço de @@ -16,7 +16,9 @@ scope - string, "local" (padrão) ou "global" + + string, "local" (padrão) ou "global" + @@ -31,7 +33,7 @@ compiled array de booleanos, verdadeiro se o elemento correspondente de - flist for do tipo 13 + flist for do tipo 13 @@ -39,7 +41,7 @@ profilable array de booleanos, verdadeiro se o elemento correspondente de - flist for do tipo 13, e adicionalmente informações sobre profiling + flist for do tipo 13, e adicionalmente informações sobre profiling forem encontradas no pseudo-código da função. @@ -48,7 +50,7 @@ called array uint32, número de vezes que o elemento correspondente de - flist foi chamado (não-zero apenas se a função possuir + flist foi chamado (não-zero apenas se a função possuir profiling) @@ -61,16 +63,16 @@ Esta função verifica todas as variáveis do espaço de trabalho (dadas por who) e coleta aquelas de tipo 11 - ou 13; para as últimas, lst=macr2lst(fun) é chamada, de modo a verificar + ou 13; para as últimas, lst = macr2lst(fun) é chamada, de modo a verificar a entrada para magic profiling ao fim da primeira linha de código, - i.e. lst(5)(1)=="25". + i.e. lst(5)(1)=="25". Exemplos - fun2string + macr2lst + + profile recompilefunction + + who + diff --git a/scilab/modules/functions/help/ru_RU/listfunctions.xml b/scilab/modules/functions/help/ru_RU/listfunctions.xml new file mode 100644 index 0000000..bd13b34 --- /dev/null +++ b/scilab/modules/functions/help/ru_RU/listfunctions.xml @@ -0,0 +1,132 @@ + + + + listfunctions + + свойства всех функций в рабочем пространстве + + + + Последовательность вызова + + [flist,compiled,profilable,called] = listfunctions([scope]) + + + + Аргументы + + + scope + + + строка, "local" (по умолчанию) или "global". + + + + + flist + + + массив строк, имена всех переменных-функций в + указанном рабочем пространстве. + + + + + compiled + + + массив логических значений, ИСТИНА, если + соответствующий элемент из списка + flist имеет тип 13. + + + + + profilable + + + массив логических значений, ИСТИНА, если + соответствующий элемент из списка + flist имеет тип 13 и к тому + же в псевдокоде функции найдена информация + профилирования. + + + + + called + + + массив значений типа uint32, количество раз, + когда соответствующий элемент из списка + flist уже был вызван + (ненулевой только для профилируемых функций). + + + + + + + Описание + + + + Эта функция проверяет все переменные в рабочем + пространстве (указанные с помощью функции + who) и собирает те, + которые имеют тип 11 или 13; для последних + вызывается lst = macr2lst(fun) для + того, чтобы проверить магический вход профилирования + в конце первой строки кода, т. е. lst(5)(1)=="25". + + + + + + Примеры + + + + Смотрите также + + + function + + + exec + + + deff + + + comp + + + fun2string + + + macr2lst + + + profile + + + recompilefunction + + + who + + + + + Литература + + http://wiki.scilab.org/Scilab_function_variables%3A_representation%2C_manipulation + + + -- 1.7.9.5