code2str & str2code removed. 89/16789/1
Vincent COUVERT [Mon, 6 Jul 2015 09:10:49 +0000 (11:10 +0200)]
Change-Id: I8892a6f3db3bfcece63a94bcd5bb3c4bb01eb4ec

16 files changed:
scilab/CHANGES_6.0.X
scilab/modules/functions/help/en_US/code2str.xml [deleted file]
scilab/modules/functions/help/en_US/str2code.xml [deleted file]
scilab/modules/functions/help/ja_JP/code2str.xml [deleted file]
scilab/modules/functions/help/ja_JP/str2code.xml [deleted file]
scilab/modules/functions/help/ru_RU/code2str.xml [deleted file]
scilab/modules/functions/help/ru_RU/str2code.xml [deleted file]
scilab/modules/helptools/data/configuration/scilab_primitives.txt
scilab/modules/string/help/ja_JP/ascii.xml
scilab/modules/string/locales/ja_JP.po
scilab/modules/string/locales/string.pot
scilab/modules/string/locales/zh_TW.po
scilab/modules/string/tests/benchmarks/bench_code2str.tst [deleted file]
scilab/modules/string/tests/benchmarks/bench_str2code.tst [deleted file]
scilab/modules/string/tests/memory_leak/code2str.tst [deleted file]
scilab/modules/string/tests/memory_leak/str2code.tst [deleted file]

index 2fe8cd7..4b751b3 100644 (file)
@@ -45,6 +45,10 @@ Removed functions (based on old Scilab stack)
 
 * gstacksize removed.
 
+* code2str removed.
+
+* str2code removed.
+
 
 Functions modified
 ===================
diff --git a/scilab/modules/functions/help/en_US/code2str.xml b/scilab/modules/functions/help/en_US/code2str.xml
deleted file mode 100644 (file)
index 3375c0c..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) INRIA -
- *
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="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="code2str" xml:lang="en">
-    <refnamediv>
-        <refname>code2str</refname>
-        <refpurpose>returns character string associated with Scilab integer
-            codes. <emphasis role="bold">This function is obsolete.</emphasis>
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Calling Sequence</title>
-        <synopsis>str = code2str(c)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Arguments</title>
-        <variablelist>
-            <varlistentry>
-                <term>str</term>
-                <listitem>
-                    <para>a character string.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>c</term>
-                <listitem>
-                    <para>a vector of character integer codes.</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            <code>str = code2str(c)</code> returns character string
-            associated with Scilab integer codes. <varname>str</varname>
-            is such that <literal>c(i)</literal> is the Scilab integer
-            code of <literal>part(str,i)</literal>.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Examples</title>
-        <programlisting role="example"><![CDATA[
-code2str([-28 12 18 21 10 11])
-str2code('Scilab')'
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>See Also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="str2code">str2code</link>
-            </member>
-            <member>
-                <link linkend="ascii">ascii</link>
-            </member>
-            <member>
-                <link linkend="part">part</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>History</title>
-        <revhistory>
-            <revision>
-                <revnumber>5.4.0</revnumber>
-                <revremark>This function will be removed in Scilab 6.0.0</revremark>
-            </revision>
-        </revhistory>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/en_US/str2code.xml b/scilab/modules/functions/help/en_US/str2code.xml
deleted file mode 100644 (file)
index 3b01986..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) INRIA -
- *
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="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="str2code" xml:lang="en">
-    <refnamediv>
-        <refname>str2code</refname>
-        <refpurpose>returns Scilab integer codes associated with a character
-            string. <emphasis role="bold">This function is obsolete.</emphasis>
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Calling Sequence</title>
-        <synopsis>c = str2code(str)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Arguments</title>
-        <variablelist>
-            <varlistentry>
-                <term>str</term>
-                <listitem>
-                    <para>a character string.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>c</term>
-                <listitem>
-                    <para>a column vector of character integer codes.</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Description</title>
-        <para>
-            <code>c = str2code(str)</code> returns a column vector
-            <varname>c</varname> such that <literal>c(i)</literal> is the
-            Scilab integer code of <literal>part(str,i)</literal>.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Examples</title>
-        <programlisting role="example"><![CDATA[
-str2code('Scilab')'
-code2str([-28 12 18 21 10 11])
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>See Also</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="code2str">code2str</link>
-            </member>
-            <member>
-                <link linkend="ascii">ascii</link>
-            </member>
-            <member>
-                <link linkend="part">part</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>History</title>
-        <revhistory>
-            <revision>
-                <revnumber>5.4.0</revnumber>
-                <revremark>This function will be removed in Scilab 6.0.0</revremark>
-            </revision>
-        </revhistory>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/ja_JP/code2str.xml b/scilab/modules/functions/help/ja_JP/code2str.xml
deleted file mode 100644 (file)
index 826ea38..0000000
+++ /dev/null
@@ -1,151 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) INRIA -
- *
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
- *
- -->
-
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="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="code2str" xml:lang="en">
-    
-    <refnamediv>
-        
-        <refname>code2str</refname>
-        
-        <refpurpose>
-            
-            Scilab整数コードに関連した文字列を返す.
-            
-            <emphasis role="bold">この関数は廃止されました.</emphasis>
-            
-        </refpurpose>
-        
-    </refnamediv>
-    
-    <refsynopsisdiv>
-        
-        <title>呼び出し手順</title>
-        
-        <synopsis>str = code2str(c)</synopsis>
-        
-    </refsynopsisdiv>
-    
-    <refsection>
-        
-        <title>引数</title>
-        
-        <variablelist>
-            
-            <varlistentry>
-                
-                <term>str</term>
-                
-                <listitem>
-                    
-                    <para>文字列.</para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-            <varlistentry>
-                
-                <term>c</term>
-                
-                <listitem>
-                    
-                    <para>整数コードの文字ベクトル.</para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-        </variablelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>説明</title>
-        
-        <para>
-            
-            <code>str = code2str(c)</code> は
-            
-            Scilab整数コードに関連する文字列を返します.
-            
-            <varname>str</varname>は,
-            
-            <literal>c(i)</literal>が<literal>part(str,i)</literal>の
-            
-            Scilab整数コードとなるような文字列です.
-            
-        </para>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>例</title>
-        
-        <programlisting role="example"><![CDATA[
-code2str([-28 12 18 21 10 11])
-str2code('Scilab')'
- ]]></programlisting>
-        
-    </refsection>
-    
-    <refsection role="see also">
-        
-        <title>参照</title>
-        
-        <simplelist type="inline">
-            
-            <member>
-                
-                <link linkend="str2code">str2code</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="ascii">ascii</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="part">part</link>
-                
-            </member>
-            
-        </simplelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>履歴</title>
-        
-        <revhistory>
-            
-            <revision>
-                
-                <revnumber>5.4.0</revnumber>
-                
-                <revremark>この関数はScilab 6.0.0で削除されます</revremark>
-                
-            </revision>
-            
-        </revhistory>
-        
-    </refsection>
-    
-</refentry>
-
diff --git a/scilab/modules/functions/help/ja_JP/str2code.xml b/scilab/modules/functions/help/ja_JP/str2code.xml
deleted file mode 100644 (file)
index 0d15206..0000000
+++ /dev/null
@@ -1,149 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) INRIA -
- *
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
- *
- -->
-
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="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="str2code" xml:lang="en">
-    
-    <refnamediv>
-        
-        <refname>str2code</refname>
-        
-        <refpurpose>
-            
-            文字列に関するScilab整数コードを返す.
-            
-            <emphasis role="bold">この関数は廃止されました.</emphasis>
-            
-        </refpurpose>
-        
-    </refnamediv>
-    
-    <refsynopsisdiv>
-        
-        <title>呼び出し手順</title>
-        
-        <synopsis>c = str2code(str)</synopsis>
-        
-    </refsynopsisdiv>
-    
-    <refsection>
-        
-        <title>引数</title>
-        
-        <variablelist>
-            
-            <varlistentry>
-                
-                <term>str</term>
-                
-                <listitem>
-                    
-                    <para>文字列.</para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-            <varlistentry>
-                
-                <term>c</term>
-                
-                <listitem>
-                    
-                    <para>整数コード文字の列ベクトル.</para>
-                    
-                </listitem>
-                
-            </varlistentry>
-            
-        </variablelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>説明</title>
-        
-        <para>
-            
-            <code>c = str2code(str)</code> は列ベクトル
-            
-            <varname>c</varname>を返します.
-            
-            ただし,<literal>c(i)</literal> は,
-            
-            <literal>part(str,i)</literal>のScilab整数コードです.
-            
-        </para>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>例</title>
-        
-        <programlisting role="example"><![CDATA[
-str2code('Scilab')'
-code2str([-28 12 18 21 10 11])
- ]]></programlisting>
-        
-    </refsection>
-    
-    <refsection role="see also">
-        
-        <title>参照</title>
-        
-        <simplelist type="inline">
-            
-            <member>
-                
-                <link linkend="code2str">code2str</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="ascii">ascii</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="part">part</link>
-                
-            </member>
-            
-        </simplelist>
-        
-    </refsection>
-    
-    <refsection>
-        
-        <title>履歴</title>
-        
-        <revhistory>
-            
-            <revision>
-                
-                <revnumber>5.4.0</revnumber>
-                
-                <revremark>この関数は Scilab 6.0.0で削除されます.</revremark>
-                
-            </revision>
-            
-        </revhistory>
-        
-    </refsection>
-    
-</refentry>
-
diff --git a/scilab/modules/functions/help/ru_RU/code2str.xml b/scilab/modules/functions/help/ru_RU/code2str.xml
deleted file mode 100644 (file)
index 407b3a2..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) INRIA -
- *
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="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="code2str" xml:lang="ru">
-    <refnamediv>
-        <refname>code2str</refname>
-        <refpurpose>
-            возвращает символьную строку, связанную с целочисленными
-            Scilab-кодами.
-            <emphasis role="bold">Эта функция устарела.</emphasis>
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Последовательность вызова</title>
-        <synopsis>str = code2str(c)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Аргументы</title>
-        <variablelist>
-            <varlistentry>
-                <term>str</term>
-                <listitem>
-                    <para>символьная строка.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>c</term>
-                <listitem>
-                    <para>вектор целочисленных кодов символов.</para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Описание</title>
-        <para>
-            <code>str = code2str(c)</code> возвращает символьную строку,
-            связанную с целочисленными Scilab-кодами.
-            <varname>str</varname> такая, что <literal>c(i)</literal>
-            является целочисленным Scilab-кодом символа
-            <literal>part(str,i)</literal>.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Примеры</title>
-        <programlisting role="example"><![CDATA[
-code2str([-28 12 18 21 10 11])
-str2code('Scilab')'
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Смотрите также</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="str2code">str2code</link>
-            </member>
-            <member>
-                <link linkend="ascii">ascii</link>
-            </member>
-            <member>
-                <link linkend="part">part</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>История</title>
-        <revhistory>
-            <revision>
-                <revnumber>5.4.0</revnumber>
-                <revremark>This function will be removed in Scilab 6.0.0</revremark>
-            </revision>
-        </revhistory>
-    </refsection>
-</refentry>
diff --git a/scilab/modules/functions/help/ru_RU/str2code.xml b/scilab/modules/functions/help/ru_RU/str2code.xml
deleted file mode 100644 (file)
index dfcf6d9..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- * Copyright (C) INRIA -
- *
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution.  The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
- *
- -->
-<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="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="str2code" xml:lang="ru">
-    <refnamediv>
-        <refname>str2code</refname>
-        <refpurpose>
-            возвращает целочисленные Scilab-коды, связанные с символьной строкой.
-            <emphasis role="bold">Эта функция устарела.</emphasis>
-        </refpurpose>
-    </refnamediv>
-    <refsynopsisdiv>
-        <title>Последовательность вызова</title>
-        <synopsis>c = str2code(str)</synopsis>
-    </refsynopsisdiv>
-    <refsection>
-        <title>Аргументы</title>
-        <variablelist>
-            <varlistentry>
-                <term>str</term>
-                <listitem>
-                    <para>символьная строка.</para>
-                </listitem>
-            </varlistentry>
-            <varlistentry>
-                <term>c</term>
-                <listitem>
-                    <para>
-                        вектор-столбец целочисленных кодов символов.
-                    </para>
-                </listitem>
-            </varlistentry>
-        </variablelist>
-    </refsection>
-    <refsection>
-        <title>Описание</title>
-        <para>
-            <code>c = str2code(str)</code> возвращает такой вектор-
-            столбец <varname>c</varname>, что <literal>c(i)</literal>
-            является целочисленным Scilab-кодом символа
-            <literal>part(str,i)</literal>.
-        </para>
-    </refsection>
-    <refsection>
-        <title>Примеры</title>
-        <programlisting role="example"><![CDATA[
-str2code('Scilab')'
-code2str([-28 12 18 21 10 11])
- ]]></programlisting>
-    </refsection>
-    <refsection role="see also">
-        <title>Смотрите также</title>
-        <simplelist type="inline">
-            <member>
-                <link linkend="code2str">code2str</link>
-            </member>
-            <member>
-                <link linkend="ascii">ascii</link>
-            </member>
-            <member>
-                <link linkend="part">part</link>
-            </member>
-        </simplelist>
-    </refsection>
-    <refsection>
-        <title>История</title>
-        <revhistory>
-            <revision>
-                <revnumber>5.4.0</revnumber>
-                <revremark>
-                    Эта функция будет удалена в Scilab 6.0.0
-                </revremark>
-            </revision>
-        </revhistory>
-    </refsection>
-</refentry>
index c19747a..d369528 100644 (file)
@@ -297,9 +297,7 @@ TCL_SetVar
 TCL_UnsetVar
 TCL_UpVar
 _
-_code2str
 _d
-_str2code
 about
 abs
 acos
@@ -366,7 +364,6 @@ clearglobal
 closeEditor
 closeEditvar
 closeXcos
-code2str
 coeff
 comp
 completion
@@ -857,7 +854,6 @@ spones
 sprintf
 sqrt
 stacksize
-str2code
 strcat
 strchr
 strcmp
index 8847357..29ee403 100644 (file)
@@ -114,13 +114,7 @@ ascii([115 99 105 108 97 98])
             
             <member>
                 
-                <link linkend="code2str">code2str</link>
-                
-            </member>
-            
-            <member>
-                
-                <link linkend="str2code">str2code</link>
+                <link linkend="asciimat">asciimat</link>
                 
             </member>
             
index d155a7c..0a878ae 100644 (file)
@@ -58,20 +58,11 @@ msgstr ""
 "\n"
 
 #
-# File: sci_gateway/c/sci_code2str.c, line: 48
-#, c-format
-msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n"
-msgstr "%s: 入力引数 #%d で不正な型: 実行列を想定します。\n"
-
-#
-# File: sci_gateway/c/sci_code2str.c, line: 59
-# File: sci_gateway/c/sci_code2str.c, line: 73
 # File: sci_gateway/c/sci_convstr.c, line: 117
 # File: sci_gateway/c/sci_grep.c, line: 263
 # File: sci_gateway/c/sci_isascii.c, line: 102
 # File: sci_gateway/c/sci_part.c, line: 117
 # File: sci_gateway/c/sci_regexp.c, line: 168
-# File: sci_gateway/c/sci_str2code.c, line: 84
 # File: sci_gateway/c/sci_strcat.c, line: 128
 # File: sci_gateway/c/sci_strcat.c, line: 142
 # File: sci_gateway/c/sci_strcat.c, line: 150
@@ -121,7 +112,6 @@ msgstr "%s: 入力引数 #%d で不正な型: 'u' (Upper) または 'l' (Lower)
 #
 # File: sci_gateway/c/sci_convstr.c, line: 103
 # File: sci_gateway/c/sci_convstr.c, line: 109
-# File: sci_gateway/c/sci_str2code.c, line: 90
 # File: sci_gateway/c/sci_strchr.c, line: 92
 # File: sci_gateway/c/sci_strcmp.c, line: 126
 # File: sci_gateway/c/sci_strcmp.c, line: 130
index 64fe824..87de3ab 100644 (file)
@@ -36,38 +36,26 @@ msgid ""
 msgstr ""
 
 #
-# File: sci_gateway/c/sci_code2str.c, line: 46
 # File: sci_gateway/c/sci_isnum.c, line: 40
-# File: sci_gateway/c/sci_str2code.c, line: 37
 #, c-format
 msgid "%s: Feature %s is obsolete.\n"
 msgstr ""
 
 #
-# File: sci_gateway/c/sci_code2str.c, line: 46
-# File: sci_gateway/c/sci_code2str.c, line: 47
-# File: sci_gateway/c/sci_code2str.c, line: 48
 # File: sci_gateway/c/sci_isnum.c, line: 40
 # File: sci_gateway/c/sci_isnum.c, line: 41
 # File: sci_gateway/c/sci_isnum.c, line: 42
-# File: sci_gateway/c/sci_str2code.c, line: 37
-# File: sci_gateway/c/sci_str2code.c, line: 38
-# File: sci_gateway/c/sci_str2code.c, line: 39
 msgid "Warning"
 msgstr ""
 
 #
-# File: sci_gateway/c/sci_code2str.c, line: 47
 # File: sci_gateway/c/sci_isnum.c, line: 41
-# File: sci_gateway/c/sci_str2code.c, line: 38
 #, c-format
 msgid "%s: Please use %s instead.\n"
 msgstr ""
 
 #
-# File: sci_gateway/c/sci_code2str.c, line: 48
 # File: sci_gateway/c/sci_isnum.c, line: 42
-# File: sci_gateway/c/sci_str2code.c, line: 39
 #, c-format
 msgid ""
 "%s: This feature will be permanently removed in Scilab %s\n"
@@ -75,14 +63,6 @@ msgid ""
 msgstr ""
 
 #
-# File: sci_gateway/c/sci_code2str.c, line: 60
-#, c-format
-msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n"
-msgstr ""
-
-#
-# File: sci_gateway/c/sci_code2str.c, line: 71
-# File: sci_gateway/c/sci_code2str.c, line: 88
 # File: sci_gateway/c/sci_convstr.c, line: 124
 # File: sci_gateway/c/sci_grep.c, line: 322
 # File: sci_gateway/c/sci_isnum.c, line: 66
@@ -97,7 +77,6 @@ msgstr ""
 # File: sci_gateway/c/sci_part.c, line: 114
 # File: sci_gateway/c/sci_regexp.c, line: 268
 # File: sci_gateway/c/sci_regexp.c, line: 306
-# File: sci_gateway/c/sci_str2code.c, line: 100
 # File: sci_gateway/c/sci_strcat.c, line: 182
 # File: sci_gateway/c/sci_strcat.c, line: 203
 # File: sci_gateway/c/sci_strcat.c, line: 233
@@ -179,7 +158,6 @@ msgstr ""
 #
 # File: sci_gateway/c/sci_convstr.c, line: 109
 # File: sci_gateway/c/sci_convstr.c, line: 116
-# File: sci_gateway/c/sci_str2code.c, line: 106
 # File: sci_gateway/c/sci_strcmp.c, line: 129
 # File: sci_gateway/c/sci_strcmp.c, line: 133
 # File: sci_gateway/c/sci_strcspn.c, line: 116
index 1c83a19..92f300c 100644 (file)
@@ -50,12 +50,6 @@ msgid ""
 msgstr ""
 
 #
-# File: sci_gateway/c/sci_code2str.c, line: 49
-#, c-format
-msgid "%s: Wrong type for input argument #%d: Real matrix expected.\n"
-msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為實數矩陣.\n"
-
-#
 # File: src/c/pcre_error.c, line: 28
 # File: sci_gateway/c/sci_strcat.c, line: 128
 # File: sci_gateway/c/sci_strcat.c, line: 142
@@ -74,9 +68,6 @@ msgstr "%s: 第 %d 個輸入參數型態錯誤: 應為實數矩陣.\n"
 # File: sci_gateway/c/sci_strtod.c, line: 61
 # File: sci_gateway/c/sci_strtod.c, line: 78
 # File: sci_gateway/c/sci_isascii.c, line: 103
-# File: sci_gateway/c/sci_str2code.c, line: 85
-# File: sci_gateway/c/sci_code2str.c, line: 60
-# File: sci_gateway/c/sci_code2str.c, line: 74
 # File: sci_gateway/c/sci_strrev.c, line: 56
 # File: sci_gateway/c/sci_strrchr.c, line: 79
 # File: sci_gateway/c/sci_grep.c, line: 264
@@ -117,7 +108,6 @@ msgstr "%s: 第 %d 個輸入參數數值錯誤: 應為 'u' (Upper) 或 'l' (Lowe
 # File: sci_gateway/c/sci_strcmp.c, line: 127
 # File: sci_gateway/c/sci_strcmp.c, line: 131
 # File: sci_gateway/c/sci_strsplit.c, line: 205
-# File: sci_gateway/c/sci_str2code.c, line: 91
 # File: sci_gateway/c/sci_strrev.c, line: 62
 # File: sci_gateway/c/sci_strrchr.c, line: 94
 # File: sci_gateway/c/sci_strspn.c, line: 83
diff --git a/scilab/modules/string/tests/benchmarks/bench_code2str.tst b/scilab/modules/string/tests/benchmarks/bench_code2str.tst
deleted file mode 100644 (file)
index 61903ed..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2007-2008 - INRIA
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-
-//==============================================================================
-// Benchmark for code2str function
-//==============================================================================
-
-// <-- BENCH NB RUN : 1000000 -->
-
-// <-- BENCH START -->
-a = _code2str(-(10:35));
-// <-- BENCH END -->
-
diff --git a/scilab/modules/string/tests/benchmarks/bench_str2code.tst b/scilab/modules/string/tests/benchmarks/bench_str2code.tst
deleted file mode 100644 (file)
index e56e519..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2007-2008 - INRIA
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-
-//==============================================================================
-// Benchmark for str2code function
-//==============================================================================
-
-text     = mgetl(SCI+"/modules/string/tests/benchmarks/ascii_text.txt");
-text_cat = strcat(text);
-
-// <-- BENCH START -->
-a = _str2code(text_cat);
-// <-- BENCH END -->
-
diff --git a/scilab/modules/string/tests/memory_leak/code2str.tst b/scilab/modules/string/tests/memory_leak/code2str.tst
deleted file mode 100644 (file)
index 524bf37..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr>
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-
-//======================================
-// test code2str
-// memory
-//======================================
-clear;
-NB_LOOPS = 1000000;
-REF_4_1_2 = 0;
-[BEFORE_FREE,BEFORE_TOTAL] = getmemory();
-BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE;
-
-for i=1:NB_LOOPS
-  r = _code2str([-28 12 18 21 10 11]);
-  clear r;
-end  
-
-[AFTER_FREE,AFTER_TOTAL] = getmemory();
-AFTER_USED = AFTER_TOTAL - AFTER_FREE;
-if (AFTER_USED - BEFORE_USED > REF_4_1_2 ) then disp("MEMORY LEAK"),end;
-//====================================
diff --git a/scilab/modules/string/tests/memory_leak/str2code.tst b/scilab/modules/string/tests/memory_leak/str2code.tst
deleted file mode 100644 (file)
index 9f64634..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2007-2008 - INRIA - Allan CORNET <allan.cornet@inria.fr>
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-
-//======================================
-// test str2code
-// memory leak
-//======================================
-clear;
-FUNCTION_TO_TEST = "str2code";
-NB_LOOPS = 1000000;
-REF_4_1_2 = 0;
-[BEFORE_FREE,BEFORE_TOTAL] = getmemory();
-
-for i=1:NB_LOOPS
-  r = _str2code('0123456789');
-  clear r;
-end  
-
-[AFTER_FREE,AFTER_TOTAL] = getmemory();
-BEFORE_USED = BEFORE_TOTAL - BEFORE_FREE;
-AFTER_USED = AFTER_TOTAL - AFTER_FREE;
-if (abs(BEFORE_USED - AFTER_USED) > REF_4_1_2 ) then
-  warning(FUNCTION_TO_TEST+" MEMORY LEAK : "+string(abs(BEFORE_USED - AFTER_USED))+ ' ko' );
-end  
-//====================================