<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) 2008 - INRIA
 *
 * Copyright (C) 2012 - 2016 - Scilab Enterprises
 *
 * This file is hereby licensed under the terms of the GNU GPL v2.0,
 * pursuant to article 5.3.4 of the CeCILL v.2.1.
 * This file was originally licensed under the terms of the CeCILL v2.1,
 * and continues to be available under such terms.
 * For more information, see the COPYING file which you should have received
 * along with this program.
 *
 -->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml"
          xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook"
          xmlns:scilab="http://www.scilab.org" xml:id="completion" xml:lang="ru">
    <refnamediv>
        <refname>completion</refname>
        <refpurpose>
            возвращает слова, которые начинаются с текста, который вы передаёте в качестве параметра
        </refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Синтаксис</title>
        <synopsis>r = completion(beginning_of_a_word)
            r = completion(beginning_of_a_word,dictionary)
            [functions, commands, variables, macros, graphic_properties, files] = completion(beginning_of_a_word)
            [functions, commands, variables, macros, graphic_properties] = completion(beginning_of_a_word)
            [functions, commands, variables, macros] = completion(beginning_of_a_word)
            [functions, commands, variables] = completion(beginning_of_a_word)
            [functions, commands] = completion(beginning_of_a_word)
        </synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Аргументы</title>
        <variablelist>
            <varlistentry>
                <term>r</term>
                <listitem>
                    <para>матрица строк</para>
                </listitem>
            </varlistentry>
        </variablelist>
        <variablelist>
            <varlistentry>
                <term>beginning_of_a_word</term>
                <listitem>
                    <para>строковое значение: начало слова</para>
                </listitem>
            </varlistentry>
        </variablelist>
        <variablelist>
            <varlistentry>
                <term>dictionary</term>
                <listitem>
                    <para>строковое значение: словарь ("functions", "commands", "variables", "macros",
                        "graphic_properties", "files")
                    </para>
                </listitem>
            </varlistentry>
        </variablelist>
        <variablelist>
            <varlistentry>
                <term>functions, commands, variables, macros, graphic_properties,
                    files
                </term>
                <listitem>
                    <para>матрица строк</para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>Описание</title>
        <para>Возвращает слова, которые начинаются с текста, который вы передаёте в качестве параметра.</para>
        <para>
            functions: строковая матрица имён функций (Си-шлюзы). См. справку по <link linkend="what">what</link>.
        </para>
        <para>
            commands: строковая матрица слов-команд (зарезервированных). См. справку по <link linkend="what">what</link>.
        </para>
        <para>
            variables: строковая матрица имён переменных. См. справку по <link linkend="who">who</link>.
        </para>
        <para>
            macros: строковая матрица имён макросов. См. справку по <link linkend="who">who</link>.
        </para>
        <para>graphic_properties: строковая матрица имён свойств графических окон.</para>
        <para>files: строковая матрица имён файлов.</para>
    </refsection>
    <refsection>
        <title>Примеры</title>
        <programlisting role="example">
            r = completion('w')
            r = completion('w','functions')
            r = completion('w','commands')
            r = completion('w','variables')
            r = completion('w','macros')
            r = completion('w','graphic_properties')
            r = completion('w','files')

            [functions,commands,variables,macros,graphic_properties,files] = completion('w')
            [functions,commands,variables,macros,graphic_properties] = completion('w')
            [functions,commands,variables,macros] = completion('w')
            [functions,commands,variables] = completion('w')
            [functions,commands] = completion('w')
        </programlisting>
    </refsection>
    <refsection role="see also">
        <title>Смотрите также</title>
        <simplelist type="inline">
            <member>
                <link linkend="getscilabkeywords">getscilabkeywords</link>
            </member>
            <member>
                <link linkend="who">who</link>
            </member>
            <member>
                <link linkend="what">what</link>
            </member>
            <member>
                <link linkend="libraryinfo">libraryinfo</link>
            </member>
            <member>
                <link linkend="librarieslist">librarieslist</link>
            </member>
        </simplelist>
    </refsection>
</refentry>

