bug 3066
Allan Cornet [Fri, 6 Jun 2008 11:45:17 +0000 (11:45 +0000)]
scilab/modules/string/help/en_US/part.xml
scilab/modules/string/help/en_US/strcat.xml
scilab/modules/string/help/en_US/strsubst.xml

index 99cf936..0750ea7 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2-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:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="part">
+<refentry version="5.0-subset Scilab" xml:id="part" xml:lang="en"
+          xmlns="http://docbook.org/ns/docbook"
+          xmlns:xlink="http://www.w3.org/1999/xlink"
+          xmlns:svg="http://www.w3.org/2000/svg"
+          xmlns:ns5="http://www.w3.org/1999/xhtml"
+          xmlns:mml="http://www.w3.org/1998/Math/MathML"
+          xmlns:db="http://docbook.org/ns/docbook">
   <info>
-    <pubdate>$LastChangedDate: 2006-08-08 16:57:13 +0200 (Tue, 08 Aug 2006) $</pubdate>
+    <pubdate>$LastChangedDate: 2006-08-08 16:57:13 +0200 (Tue, 08 Aug 2006)
+    $</pubdate>
   </info>
+
   <refnamediv>
     <refname>part</refname>
-    <refpurpose> extraction of strings</refpurpose>
+
+    <refpurpose>extraction of strings</refpurpose>
   </refnamediv>
+
   <refsynopsisdiv>
     <title>Calling Sequence</title>
-    <synopsis>[c]=part(mp,v)</synopsis>
+
+    <synopsis>[strings_out] = part(strings_in, v)</synopsis>
   </refsynopsisdiv>
+
   <refsection>
     <title>Parameters</title>
+
     <variablelist>
       <varlistentry>
-        <term>mp,c</term>
+        <term>strings_in, strings_out</term>
+
         <listitem>
           <para>Matrix of character strings.</para>
         </listitem>
       </varlistentry>
+
       <varlistentry>
         <term>v</term>
+
         <listitem>
           <para>Integer row vector.</para>
         </listitem>
       </varlistentry>
     </variablelist>
   </refsection>
+
   <refsection>
     <title>Description</title>
-    <para>
-    Let <literal>s[k]</literal> stands for the <literal>k</literal> character of string <literal>s</literal> ( 
-    or the white space character if <literal>k &gt;length(s)</literal>).</para>
-    <para><literal>part</literal> returns <literal>c</literal>, a matrix of character strings, such that 
-    <literal>c(i,j)</literal> is the string <literal>"s[v(1)]...s[v(n)]"</literal> ( <literal>s=mp(i,j)</literal> ).</para>
+
+    <para>Let <literal>s[k]</literal> stands for the <literal>k</literal>
+    character of string <literal>s</literal> ( or the white space character if
+    <literal>k &gt;length(s)</literal>).</para>
+
+    <para><literal>part</literal> returns <literal>strings_out</literal>, a
+    matrix of character strings, such that <literal>strings_out(i,j)</literal>
+    is the string <literal>"s[v(1)]...s[v(n)]"</literal> (
+    <literal>s=strings_in(i,j)</literal> ).</para>
   </refsection>
+
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+
+    <programlisting role="example">
 // returns characters position 8 to 11
 part("How to use ""part"" ?",8:11)
 
@@ -75,17 +98,16 @@ part(['a','abc','abcd'],[1,1])
 // aa aab aab 
 part(['a','abc','abcd'],[1,1,2])
  
-  ]]></programlisting>
+  </programlisting>
   </refsection>
+
   <refsection>
     <title>See Also</title>
+
     <simplelist type="inline">
-      <member>
-        <link linkend="string">string</link>
-      </member>
-      <member>
-        <link linkend="length">length</link>
-      </member>
+      <member><link linkend="string">string</link></member>
+
+      <member><link linkend="length">length</link></member>
     </simplelist>
   </refsection>
-</refentry>
+</refentry>
\ No newline at end of file
index 7cb690f..35ea353 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2-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:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="strcat">
+<refentry version="5.0-subset Scilab" xml:id="strcat" xml:lang="en"
+          xmlns="http://docbook.org/ns/docbook"
+          xmlns:xlink="http://www.w3.org/1999/xlink"
+          xmlns:svg="http://www.w3.org/2000/svg"
+          xmlns:ns5="http://www.w3.org/1999/xhtml"
+          xmlns:mml="http://www.w3.org/1998/Math/MathML"
+          xmlns:db="http://docbook.org/ns/docbook">
   <info>
-    <pubdate>$LastChangedDate: 2008-01-07 16:57:13 +0200 (Mon, 07 Jan 2008)$</pubdate>
+    <pubdate>$LastChangedDate: 2008-01-07 16:57:13 +0200 (Mon, 07 Jan
+    2008)$</pubdate>
   </info>
+
   <refnamediv>
     <refname>strcat</refname>
-    <refpurpose>concatenate character
-  strings</refpurpose>
+
+    <refpurpose>concatenate character strings</refpurpose>
   </refnamediv>
+
   <refsynopsisdiv>
     <title>Calling Sequence</title>
-    <synopsis>txt=strcat(vstr [,strp])
-txt=strcat(vstr [,strp],["flag"])</synopsis>
+
+    <synopsis>txt=strcat(vector_of_strings [,string_added])
+txt=strcat(vector_of_strings [,string_added],["flag"])</synopsis>
   </refsynopsisdiv>
+
   <refsection>
     <title>Parameters</title>
+
     <variablelist>
       <varlistentry>
-        <term>vstr</term>
+        <term>vector_of_strings</term>
+
         <listitem>
           <para>vector of strings</para>
         </listitem>
       </varlistentry>
+
       <varlistentry>
-        <term>strp</term>
+        <term>string_added</term>
+
         <listitem>
-          <para>string, default value is the emptystr <literal>""</literal></para>
+          <para>string added, default value is the emptystr
+          <literal>""</literal></para>
         </listitem>
       </varlistentry>
+
       <varlistentry>
         <term>txt</term>
+
         <listitem>
           <para>string</para>
         </listitem>
       </varlistentry>
+
       <varlistentry>
         <term>"flag"</term>
+
         <listitem>
-          <para>string ( "r" for return a
-          column matrix, "c" for return a row matrix) </para>
+          <para>string ( "r" for return a column matrix, "c" for return a row
+          matrix)</para>
         </listitem>
       </varlistentry>
     </variablelist>
   </refsection>
+
   <refsection>
     <title>Description</title>
-    <para><literal>txt=strcat(vstr)</literal> concatenates character strings :
-    <literal>txt=vstr(1)+...+vstr(n)</literal></para>
-    <para><literal>txt=strcat(vstr,strp)</literal> returns
-    <literal>txt=strs(1)+strp+...+strp+strs(n)</literal>. The plus symbol does the
-    same: <literal>"a"+"b"</literal> is the same as <literal>strcat(["a","b"]) If the
-    number of vstr is one, returns txt=str(1);</literal></para>
+
+    <para><literal>txt=strcat(vector_of_strings)</literal> concatenates
+    character strings :
+    <literal>txt=vector_of_strings(1)+...+vector_of_strings(n)</literal></para>
+
+    <para><literal>txt=strcat(vector_of_strings,string_added)</literal>
+    returns
+    <literal>txt=vector_of_strings(1)+string_added+...+string_added+vector_of_strings(n)</literal>.
+    The plus symbol does the same: <literal>"a"+"b"</literal> is the same as
+    <literal>strcat(["a","b"]) If the number of vector_of_strings is one,
+    returns txt=vector_of_strings(1);</literal></para>
   </refsection>
+
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+
+    <programlisting role="example">
 strcat(string(1:10),',')
-  ]]></programlisting>
+  </programlisting>
   </refsection>
+
   <refsection>
     <title>See Also</title>
+
     <simplelist type="inline">
-      <member>
-        <link linkend="string">string</link>
-      </member>
-      <member>
-        <link linkend="strings">strings</link>
-      </member>
+      <member><link linkend="string">string</link></member>
+
+      <member><link linkend="strings">strings</link></member>
     </simplelist>
   </refsection>
-</refentry>
+</refentry>
\ No newline at end of file
index 7a91073..b96cc68 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <!--
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) INRIA - 
  * http://www.cecill.info/licences/Licence_CeCILL_V2-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:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="strsubst">
+<refentry version="5.0-subset Scilab" xml:id="strsubst" xml:lang="en"
+          xmlns="http://docbook.org/ns/docbook"
+          xmlns:xlink="http://www.w3.org/1999/xlink"
+          xmlns:svg="http://www.w3.org/2000/svg"
+          xmlns:ns5="http://www.w3.org/1999/xhtml"
+          xmlns:mml="http://www.w3.org/1998/Math/MathML"
+          xmlns:db="http://docbook.org/ns/docbook">
   <info>
-    <pubdate>$LastChangedDate: 2008-01-07 16:57:13 +0200 (Mon, 07 Jan 2008)$</pubdate>
+    <pubdate>$LastChangedDate: 2008-01-07 16:57:13 +0200 (Mon, 07 Jan
+    2008)$</pubdate>
   </info>
+
   <refnamediv>
     <refname>strsubst</refname>
-    <refpurpose>substitute a character string by another
-  in a character string.</refpurpose>
+
+    <refpurpose>substitute a character string by another in a character
+    string.</refpurpose>
   </refnamediv>
+
   <refsynopsisdiv>
     <title>Calling Sequence</title>
-    <synopsis>str=strsubst(string,searchStr,replaceStr)
-str=strsubst(string,searchStr,replaceStr,[flag])</synopsis>
+
+    <synopsis>string_out=strsubst(string_in,searchStr,replaceStr)
+string_out=strsubst(string_in,searchStr,replaceStr,[flag])</synopsis>
   </refsynopsisdiv>
+
   <refsection>
     <title>Parameters</title>
+
     <variablelist>
       <varlistentry>
-        <term>string</term>
+        <term>string_in</term>
+
         <listitem>
           <para>a matrix of character string. The strings where to search
           occurrences of <literal>searchStr</literal></para>
         </listitem>
       </varlistentry>
+
       <varlistentry>
         <term>searchStr</term>
+
         <listitem>
-          <para>A character string. The string to search in <literal>string</literal>.</para>
+          <para>A character string. The string to search in
+          <literal>string</literal>.</para>
         </listitem>
       </varlistentry>
+
       <varlistentry>
         <term>replaceStr</term>
+
         <listitem>
           <para>A character string. The replacement string.</para>
         </listitem>
       </varlistentry>
+
       <varlistentry>
-        <term>str</term>
+        <term>str_out</term>
+
         <listitem>
           <para>A matrix of character strings. The result of the substitution
-          on <literal>searchStr</literal> by <literal>replaceStr</literal> in <literal>string</literal></para>
+          on <literal>searchStr</literal> by <literal>replaceStr</literal> in
+          <literal>string</literal></para>
         </listitem>
       </varlistentry>
+
       <varlistentry>
         <term>flag</term>
+
         <listitem>
           <para>string("r" for regular expression)</para>
         </listitem>
       </varlistentry>
     </variablelist>
   </refsection>
+
   <refsection>
     <title>Description</title>
-    <para><literal>strsubst</literal> replaces all occurrences of <literal>searchStr</literal> in
-    <literal>string</literal> by <literal>replaceStr</literal>.</para>
-    <para>When using the forth parameters "r", the searchStr should be a string of
-    regular expression. And then strsubst is going to match it with string and
-    replace according to the regular express rules. </para>
+
+    <para><literal>strsubst</literal> replaces all occurrences of
+    <literal>searchStr</literal> in <literal>string</literal> by
+    <literal>replaceStr</literal>.</para>
+
+    <para>When using the forth parameters "r", the searchStr should be a
+    string of regular expression. And then strsubst is going to match it with
+    string and replace according to the regular express rules.</para>
   </refsection>
+
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+
+    <programlisting role="example">
 
 strsubst('SCI/demos/scicos','SCI','.')
 strsubst('SCI/demos/scicos','/',' ')
 strsubst('2' ,'/2(]*)?$\1/' ,'0','r')
  
-  ]]></programlisting>
+  </programlisting>
   </refsection>
+
   <refsection>
     <title>See Also</title>
+
     <simplelist type="inline">
-      <member>
-        <link linkend="string">string</link>
-      </member>
-      <member>
-        <link linkend="strings">strings</link>
-      </member>
+      <member><link linkend="string">string</link></member>
+
+      <member><link linkend="strings">strings</link></member>
     </simplelist>
   </refsection>
-</refentry>
+</refentry>
\ No newline at end of file