add CDATA + role in the string module
Yann Collette [Fri, 4 Sep 2009 14:07:27 +0000 (16:07 +0200)]
76 files changed:
scilab/modules/string/help/en_US/ascii.xml
scilab/modules/string/help/en_US/blanks.xml
scilab/modules/string/help/en_US/code2str.xml
scilab/modules/string/help/en_US/convstr.xml
scilab/modules/string/help/en_US/emptystr.xml
scilab/modules/string/help/en_US/grep.xml
scilab/modules/string/help/en_US/isalphanum.xml
scilab/modules/string/help/en_US/isascii.xml
scilab/modules/string/help/en_US/isdigit.xml
scilab/modules/string/help/en_US/isletter.xml
scilab/modules/string/help/en_US/isnum.xml
scilab/modules/string/help/en_US/justify.xml
scilab/modules/string/help/en_US/length.xml
scilab/modules/string/help/en_US/part.xml
scilab/modules/string/help/en_US/regexp.xml
scilab/modules/string/help/en_US/sci2exp.xml
scilab/modules/string/help/en_US/str2code.xml
scilab/modules/string/help/en_US/strcat.xml
scilab/modules/string/help/en_US/strchr.xml
scilab/modules/string/help/en_US/strcmp.xml
scilab/modules/string/help/en_US/strcmpi.xml
scilab/modules/string/help/en_US/strcspn.xml
scilab/modules/string/help/en_US/strindex.xml
scilab/modules/string/help/en_US/string.xml
scilab/modules/string/help/en_US/strings.xml
scilab/modules/string/help/en_US/stripblanks.xml
scilab/modules/string/help/en_US/strncpy.xml
scilab/modules/string/help/en_US/strrchr.xml
scilab/modules/string/help/en_US/strrev.xml
scilab/modules/string/help/en_US/strsplit.xml
scilab/modules/string/help/en_US/strspn.xml
scilab/modules/string/help/en_US/strstr.xml
scilab/modules/string/help/en_US/strsubst.xml
scilab/modules/string/help/en_US/strtod.xml
scilab/modules/string/help/en_US/strtok.xml
scilab/modules/string/help/en_US/tokenpos.xml
scilab/modules/string/help/en_US/tokens.xml
scilab/modules/string/help/en_US/tree2code.xml
scilab/modules/string/help/pt_BR/ascii.xml
scilab/modules/string/help/pt_BR/blanks.xml
scilab/modules/string/help/pt_BR/code2str.xml
scilab/modules/string/help/pt_BR/convstr.xml
scilab/modules/string/help/pt_BR/emptystr.xml
scilab/modules/string/help/pt_BR/grep.xml
scilab/modules/string/help/pt_BR/isalphanum.xml
scilab/modules/string/help/pt_BR/isascii.xml
scilab/modules/string/help/pt_BR/isdigit.xml
scilab/modules/string/help/pt_BR/isletter.xml
scilab/modules/string/help/pt_BR/isnum.xml
scilab/modules/string/help/pt_BR/justify.xml
scilab/modules/string/help/pt_BR/length.xml
scilab/modules/string/help/pt_BR/part.xml
scilab/modules/string/help/pt_BR/regexp.xml
scilab/modules/string/help/pt_BR/sci2exp.xml
scilab/modules/string/help/pt_BR/str2code.xml
scilab/modules/string/help/pt_BR/strcat.xml
scilab/modules/string/help/pt_BR/strchr.xml
scilab/modules/string/help/pt_BR/strcmp.xml
scilab/modules/string/help/pt_BR/strcmpi.xml
scilab/modules/string/help/pt_BR/strcspn.xml
scilab/modules/string/help/pt_BR/strindex.xml
scilab/modules/string/help/pt_BR/string.xml
scilab/modules/string/help/pt_BR/strings.xml
scilab/modules/string/help/pt_BR/stripblanks.xml
scilab/modules/string/help/pt_BR/strncpy.xml
scilab/modules/string/help/pt_BR/strrchr.xml
scilab/modules/string/help/pt_BR/strrev.xml
scilab/modules/string/help/pt_BR/strsplit.xml
scilab/modules/string/help/pt_BR/strspn.xml
scilab/modules/string/help/pt_BR/strstr.xml
scilab/modules/string/help/pt_BR/strsubst.xml
scilab/modules/string/help/pt_BR/strtod.xml
scilab/modules/string/help/pt_BR/strtok.xml
scilab/modules/string/help/pt_BR/tokenpos.xml
scilab/modules/string/help/pt_BR/tokens.xml
scilab/modules/string/help/pt_BR/tree2code.xml

index a076092..d7cdc4f 100644 (file)
@@ -71,10 +71,11 @@ txt=ascii(a)</synopsis>
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">ascii(["hello";"world"])
+    <programlisting role="example"><![CDATA[ 
+ascii(["hello";"world"])
 ascii("scilab")
 ascii([115 99 105 108 97 98])
-</programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -86,4 +87,4 @@ ascii([115 99 105 108 97 98])
       <member><link linkend="str2code">str2code</link></member>
     </simplelist>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index 33865c1..ea48acc 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 disp(['xxx' blanks(20) 'yyy'])
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
 </refentry>
index c2c997d..1ce0a90 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">code2str([-28 12 18 21 10 11])
-str2code('Scilab')'  </programlisting>
+    <programlisting role="example"><![CDATA[ 
+code2str([-28 12 18 21 10 11])
+str2code('Scilab')' 
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -80,4 +82,4 @@ str2code('Scilab')'  </programlisting>
       <member><link linkend="ascii">ascii</link></member>
     </simplelist>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index 5139fe2..09f32f9 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 A=['this','is';'my','matrix'];
 convstr(A,'u')
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
 </refentry>
index dd5bae3..1b1e3f2 100644 (file)
@@ -62,11 +62,9 @@ s=emptystr(m,n)</synopsis>
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 x=emptystr();for k=1:10, x=x+','+string(k);end
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 8c2190c..4b67b88 100644 (file)
@@ -111,7 +111,7 @@ row=grep(haystack,needle ,[flag])
     <para>In the following example, we search one or two strings in a text,
     which is stored in the <litteral>txt</litteral> variable.</para>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 txt=['find matches of a string in a vector of strings'
      'search position of a character string in an other string'
      'Compare Strings'];
@@ -120,8 +120,7 @@ grep(txt,'strings')
 grep(txt,['strings' 'Strings'])
 
 [r,w]=grep(txt,['strings' 'Strings'])
-
-</programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -129,13 +128,13 @@ grep(txt,['strings' 'Strings'])
 
     <para>In the following example, we perform regexp searches.</para>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 str = ["hat";"cat";"hhat";"chat";"hcat";"ccchat";"at";"dog"]
 
 grep(str,'/[hc]+at/','r')
 grep(str,'/[hc]?at/','r')
 grep(str,'/cat|dog/','r')
-    </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 17f7ddb..90c7dbf 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 s = 'A1,B2,C3';
 isalphanum(s)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 611042d..73dda2d 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 isascii(code2str(300))
 isascii(code2str(-11))
 letters = [115.    99.    105.    108.    97.    98.]
 isascii(letters)
 ascii(letters)
 isascii('scilab')
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 0479366..5c5c6fb 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 s = 'A1,B2,C3';
 isdigit(s)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 25d8d2c..4753d16 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 s = 'A1,B2,C3';
 isletter(s)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index ded07e7..a4e83eb 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-       
+    <programlisting role="example"><![CDATA[ 
 isnum(['1'     , ..
        '-1.23' , ..
        '+1e+23', .. 
        '1d+23' , ..
        '%pi'])
-       
-       ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 44ff10a..4b01433 100644 (file)
@@ -72,8 +72,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 t=['1234','x','adfdfgdfghfgj'
    '1','354556','dgf'
    'sdfgd','','sdfsf'];
@@ -81,8 +80,7 @@ t=['1234','x','adfdfgdfghfgj'
 justify(t,'l')
 justify(t,'c')
 justify(t,'r')
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index cc81ba9..bef8b70 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 length([123 ; 456 ])
 length(['hello world',SCI])
-       </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -98,4 +98,4 @@ length(['hello world',SCI])
       <member><link linkend="size">size</link></member>
     </simplelist>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index 0750ea7..b03c5d2 100644 (file)
@@ -72,7 +72,7 @@
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 // returns characters position 8 to 11
 part("How to use ""part"" ?",8:11)
 
@@ -97,8 +97,7 @@ part(['a','abc','abcd'],[1,1])
 
 // aa aab aab 
 part(['a','abc','abcd'],[1,1,2])
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -110,4 +109,4 @@ part(['a','abc','abcd'],[1,1,2])
       <member><link linkend="length">length</link></member>
     </simplelist>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index c33f897..2678e0d 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 regexp('xabyabbbz','/ab*/','o')
 regexp('a!','/((((((((((a))))))))))\041/')
 regexp('ABCC','/^abc$/i')
 regexp('ABC','/ab|cd/i')
 [a b c]=regexp('XABYABBBZ','/ab*/i')
-    </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -131,4 +131,4 @@ regexp('ABC','/ab|cd/i')
       <member><link linkend="strindex">strindex</link></member>
     </simplelist>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index fe29764..b35c7a1 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
-  a=[1 2;3 4]
-  sci2exp(a,'aa')
-  sci2exp(a,'aa',0)
-  sci2exp(ssrand(2,2,2))
-  sci2exp(poly([1 0 3 4],'s'),'fi')
-  ]]></programlisting>
+    <programlisting role="example"><![CDATA[ 
+a=[1 2;3 4]
+sci2exp(a,'aa')
+sci2exp(a,'aa',0)
+sci2exp(ssrand(2,2,2))
+sci2exp(poly([1 0 3 4],'s'),'fi')
+ ]]></programlisting>
   </refsection>
 </refentry>
index 6747714..c3fb4b3 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">str2code('Scilab')'
+    <programlisting role="example"><![CDATA[ 
+str2code('Scilab')'
 code2str([-28 12 18 21 10 11])
-</programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -81,4 +82,4 @@ code2str([-28 12 18 21 10 11])
       <member><link linkend="ascii">ascii</link></member>
     </simplelist>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index 8683ff0..864d82c 100644 (file)
@@ -99,7 +99,7 @@ txt=strcat(vector_of_strings [,string_added],["flag"])</synopsis>
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 strcat(string(1:10),',')
 strcat(["a","b"])
 strcat(["a","b"],'|')
@@ -107,7 +107,7 @@ strcat('A')
 strcat('A','B')
 strcat(['A','B'])
 strcat(['A','B'],'')
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -119,4 +119,4 @@ strcat(['A','B'],'')
       <member><link linkend="strings">strings</link></member>
     </simplelist>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index db6567d..260dbc9 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 strchr('This is a sample string','s')
 strchr(['This is a sample string','in scilab'],'s')
 strchr(['This is a sample string','in scilab'],['s','a'])
-
-       ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 7adda6a..679c89e 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 TXT1 = ['scilab','SciLab';'Strcmp','STRcmp'];
 TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP'];
 strcmp(TXT1,TXT2)
 strcmp(TXT1,'scilab')
 strcmp(TXT1,'SciLab')
 strcmp(TXT1,TXT2,'i')
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index d84648b..a229a9e 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 TXT1 = ['scilab','SciLab';'Strcmp','STRcmp'];
 TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP'];
 strcmpi(TXT1,TXT2)
 strcmpi(TXT1,'scilab')
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 704bce3..53b6480 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 strcspn("fcba73","1234567890")
 strcspn(["fcba73","f7cba73"],"1234567890")
 strcspn(["fcba73","f7cba73"],["312","34567890"])
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 40ace6a..cdb9987 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 k=strindex('SCI/demos/scicos','/')
 k=strindex('SCI/demos/scicos','SCI/')
 k=strindex('SCI/demos/scicos','!')
@@ -138,7 +138,7 @@ k=strindex('aaaaa','aa')
 k=strindex('SCI/demos/scicos',['SCI','sci'])
 [k,w]=strindex('1+3*abc/2.33',['+','-','*','/'])
 k=strindex('2' ,'/2(]*)?$\1/' ,'r') 
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -154,4 +154,4 @@ k=strindex('2' ,'/2(]*)?$\1/' ,'r')
       <member><link linkend="strsubst">strsubst</link></member>
     </simplelist>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index 5f6d54a..c2418ef 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 string(rand(2,2))
 deff('y=mymacro(x)','y=x+1')
 [out,in,text]=string(mymacro)
 x=123.356; 'Result is '+string(x)
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 5191e3b..d60def5 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
+    <programlisting role="example"><![CDATA[ 
 ['this','is'; 'a 2x2','matrix']
 "matrix"=="mat"+"rix"
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 623882f..51d152d 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 a='  123   ';
 '!'+a+'!'
 '!'+stripblanks(a)+'!'
 a=['  123   ',' xyz']
 strcat(stripblanks(a))
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
 </refentry>
index b0b03fc..1c92e12 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 strncpy('scilab',3)
 strncpy(['scilab','SciLab';'strncpy','strstr'],3)
 strncpy(['scilab','SciLab';'strncpy','strstr'],[1,2;3,4])
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 23af1ba..8ee5285 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 strrchr('This is a sample string','s')
 strrchr(['This is a sample string','in scilab'],'s')
 strrchr(['This is a sample string','in scilab'],['s','a'])
-
-       ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index a26e989..8878ae8 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 rev = strrev('This is a simple string')
 strrev(rev)
 strrev(['This is a simple string','scilab'])
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
 </refentry>
index 94349e9..73e0fe1 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-    S='strsplit splits a string into a vector of strings';
-    strsplit(S,[15 25 30])
-    ind=strindex(S,' ')
+    <programlisting role="example"><![CDATA[ 
+S='strsplit splits a string into a vector of strings';
+strsplit(S,[15 25 30])
+ind=strindex(S,' ')
     
-    [r_1, r_2] = strsplit("abcd")
+[r_1, r_2] = strsplit("abcd")
     
-    [r_1, r_2] = strsplit("root:x:0:0:root:/root:/bin/bash",":",5)
+[r_1, r_2] = strsplit("root:x:0:0:root:/root:/bin/bash",":",5)
     
-    [r_1, r_2] = strsplit("abc,def:ijk,:lmo","/:|,/")
+[r_1, r_2] = strsplit("abc,def:ijk,:lmo","/:|,/")
+   
+[r_1, r_2] = strsplit("abc,def:ijk,:lmo",[":";","])    
     
-    [r_1, r_2] = strsplit("abc,def:ijk,:lmo",[":";","])    
-    
-    strsplit("abcdef2ghijkl3mnopqr6stuvw7xyz","/\d+/") 
+strsplit("abcdef2ghijkl3mnopqr6stuvw7xyz","/\d+/") 
 
-    [r_1, r_2] = strsplit("abcdef2ghijkl3mnopqr6stuvw7xyz","/\d+/",2) 
-    
-  </programlisting>
+[r_1, r_2] = strsplit("abcdef2ghijkl3mnopqr6stuvw7xyz","/\d+/",2) 
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 64de04d..a0a6f1b 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 i = strspn("129th","1234567890");
 printf ("The length of initial number is %d.\n",i);
 i = strspn(["129th","130th"],["1234567890","130t"])
-  </programlisting>
+ ]]>  </programlisting>
   </refsection>
 
   <refsection>
index 4be09d7..da0f8a2 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 strstr('This is a simple string','simple')
 strstr('This is a simple string','sample')
 strstr(['This is a simple string','in scilab'],'is')
 strstr(['This is a sample string','in scilab'],['a','scilab'])
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index b96cc68..afe4656 100644 (file)
@@ -101,13 +101,11 @@ string_out=strsubst(string_in,searchStr,replaceStr,[flag])</synopsis>
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 strsubst('SCI/demos/scicos','SCI','.')
 strsubst('SCI/demos/scicos','/',' ')
 strsubst('2' ,'/2(]*)?$\1/' ,'0','r')
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
@@ -119,4 +117,4 @@ strsubst('2' ,'/2(]*)?$\1/' ,'0','r')
       <member><link linkend="strings">strings</link></member>
     </simplelist>
   </refsection>
-</refentry>
\ No newline at end of file
+</refentry>
index 3433f74..2a79204 100644 (file)
   <refsection>
     <title>Examples</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 strtod('123.556This is a sample real')
 [d,endstr] = strtod('123.556This is a sample real')
 strtod(['123.556This is a sample real','888.666 here'])
 [d,endstr] =strtod(['123.556This is a sample real','888.666 here'])
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 </refentry>
index 0b54207..e0fcbad 100644 (file)
@@ -51,8 +51,7 @@
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 TOKENS = [];
 token = strtok("A string of ,,tokens and some  more tokens"," ,");
 TOKENS = [TOKENS,token];
@@ -61,8 +60,7 @@ while( token <> '' )
   TOKENS = [TOKENS,token];
 end
 disp(TOKENS);
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 8bb42ef..4558233 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 str='This is a character string';
 kdf=tokenpos(str)
 first=part(str,kdf(1,1):kdf(1,2))
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index 1e678de..65643dc 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 tokens('This is a character string')
 
 tokens('SCI/demos/scicos','/')
 
 tokens('y=a+b*2',['=','+','*'])
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index c382728..5636eff 100644 (file)
   </refsection>
   <refsection>
     <title>Examples</title>
-    <programlisting role="example"><![CDATA[
-
+    <programlisting role="example"><![CDATA[ 
 tree=macr2tree(cosh);
 txt=tree2code(tree,%T);
 write(%io(2),txt,'(a)');
-  ]]></programlisting>
+ ]]></programlisting>
   </refsection>
   <refsection>
     <title>See Also</title>
index e4b2bd3..9525341 100644 (file)
@@ -71,10 +71,11 @@ txt=ascii(a)</synopsis>
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">ascii(["olá";"mundo"])
+    <programlisting role="example"><![CDATA[ 
+ascii(["olá";"mundo"])
 ascii("scilab")
 ascii([115 99 105 108 97 98])
-</programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index b9fb44e..98330ac 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 disp(['xxx' blanks(20) 'yyy'])
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 </refentry>
index 47f0773..f5ad706 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">code2str([-28 12 18 21 10 11])
-str2code('Scilab')'  </programlisting>
+    <programlisting role="example"><![CDATA[ 
+code2str([-28 12 18 21 10 11])
+str2code('Scilab')' 
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index ff198d2..0ab88e4 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 A=['esta','é';'a minha','matriz'];
 convstr(A,'u')
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 </refentry>
index e12c865..f578224 100644 (file)
@@ -84,11 +84,9 @@ s=emptystr(m,n)</synopsis>
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 x=emptystr();for k=1:10, x=x+','+string(k);end
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index b414b97..a2f3fe8 100644 (file)
@@ -105,8 +105,7 @@ row=grep(haystack,needle ,[flag])
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 txt=['acha correspondência em um string ou em um vetor de strings'
      'procura posição de um string em outro string'
      'Compara Strings'];
@@ -121,8 +120,7 @@ str = ["hat";"cat";"hhat";"chat";"hcat";"ccchat";"at";"dog"]
 grep(str,'/[hc]+at/','r')
 grep(str,'/[hc]?at/','r')
 grep(str,'/cat|dog/','r')
-
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 5191171..786704d 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 s = 'A1,B2,C3';
 isalphanum(s)
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 6ada561..ffbc637 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 isascii(code2str(300))
 isascii(code2str(-11))
 letters = [115.    99.    105.    108.    97.    98.]
 isascii(letters)
 ascii(letters)
 isascii('scilab')
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index d3ef0ea..0e3efda 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 s = 'A1,B2,C3';
 isdigit(s)
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index b198fa1..319f409 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 s = 'A1,B2,C3';
 isletter(s)
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 94dfb30..ec486f0 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-       
+    <programlisting role="example"><![CDATA[ 
 isnum(['1'     , ..
        '-1.23' , ..
        '+1e+23', .. 
        '1d+23' , ..
        '%pi'])
-       
-       </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 8a06146..d1b350a 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 t=['1234','x','adfdfgdfghfgj'
    '1','354556','dgf'
    'sdfgd','','sdfsf'];
@@ -109,8 +108,7 @@ t=['1234','x','adfdfgdfghfgj'
 justify(t,'l')
 justify(t,'c')
 justify(t,'r')
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 6dabb69..bfa122b 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 length([123 ; 456 ])
 length(['olá mundo',SCI])
-       </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 23894ef..6860713 100644 (file)
@@ -72,7 +72,7 @@
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 // retorna caracteres da posição 8 a 11
 part("Como usar ""part"" ?",8:11)
 
@@ -97,8 +97,7 @@ part(['a','abc','abcd'],[1,1])
 
 // aa aab aab 
 part(['a','abc','abcd'],[1,1,2])
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 585157f..5809cb9 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 regexp('xabyabbbz','/ab*/','o')
 regexp('a!','/((((((((((a))))))))))\041/')
 regexp('ABCC','/^abc$/i')
 regexp('ABC','/ab|cd/i')
 [a b c]=regexp('XABYABBBZ','/ab*/i')
-    </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index dc7d390..46d8b03 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
-  a=[1 2;3 4]
-  sci2exp(a,'aa')
-  sci2exp(a,'aa',0)
-  sci2exp(ssrand(2,2,2))
-  sci2exp(poly([1 0 3 4],'s'),'fi')
-  </programlisting>
+    <programlisting role="example"><![CDATA[ 
+a=[1 2;3 4]
+sci2exp(a,'aa')
+sci2exp(a,'aa',0)
+sci2exp(ssrand(2,2,2))
+sci2exp(poly([1 0 3 4],'s'),'fi')
+ ]]></programlisting>
   </refsection>
 </refentry>
index cf6beaa..6f606a4 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">str2code('Scilab')'
+    <programlisting role="example"><![CDATA[ 
+str2code('Scilab')'
 code2str([-28 12 18 21 10 11])
-</programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 35df67c..433dc40 100644 (file)
@@ -98,7 +98,7 @@ txt=strcat(vector_of_strings [,string_added],["flag"])</synopsis>
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 strcat(string(1:10),',')
 strcat(["a","b"])
 strcat(["a","b"],'|')
@@ -106,7 +106,7 @@ strcat('A')
 strcat('A','B')
 strcat(['A','B'])
 strcat(['A','B'],'')
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index d12dee2..cd622c4 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 strchr('Este é um string de amostra','s')
 strchr(['Este é um string de amostra','no scilab'],'s')
 strchr(['Este é um string de amostra','no scilab'],['s','a'])
-
-       </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 465867f..16f5493 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 TXT1 = ['scilab','SciLab';'Strcmp','STRcmp'];
 TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP'];
 strcmp(TXT1,TXT2)
 strcmp(TXT1,'scilab')
 strcmp(TXT1,'SciLab')
 strcmp(TXT1,TXT2,'i')
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 1c5c78c..b1aa6dd 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 TXT1 = ['scilab','SciLab';'Strcmp','STRcmp'];
 TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP'];
 strcmpi(TXT1,TXT2)
 strcmpi(TXT1,'scilab')
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index db6892b..30bf9fb 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 strcspn("fcba73","1234567890")
 strcspn(["fcba73","f7cba73"],"1234567890")
 strcspn(["fcba73","f7cba73"],["312","34567890"])
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 195f9f8..e72c1cf 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 k=strindex('SCI/demos/scicos','/')
 k=strindex('SCI/demos/scicos','SCI/')
 k=strindex('SCI/demos/scicos','!')
@@ -137,7 +137,7 @@ k=strindex('aaaaa','aa')
 k=strindex('SCI/demos/scicos',['SCI','sci'])
 [k,w]=strindex('1+3*abc/2.33',['+','-','*','/'])
 k=strindex('2' ,'/2(]*)?$\1/' ,'r') 
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 7e5eef9..23fdf2f 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 string(rand(2,2))
 deff('y=mymacro(x)','y=x+1')
 [out,in,text]=string(mymacro)
 x=123.356; 'Result is '+string(x)
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 0bae426..e1ca141 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
+    <programlisting role="example"><![CDATA[ 
 ['esta','é'; 'uma matriz','2x2']
 "matrix"=="mat"+"rix"
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index a7e3211..fa78899 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 a='  123   ';
 '!'+a+'!'
 '!'+stripblanks(a)+'!'
 a=['  123   ',' xyz']
 strcat(stripblanks(a))
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 </refentry>
index a619600..e556faa 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 strncpy('scilab',3)
 strncpy(['scilab','SciLab';'strncpy','strstr'],3)
 strncpy(['scilab','SciLab';'strncpy','strstr'],[1,2;3,4])
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 05a8e87..4e50537 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 strrchr('Este e um string de amostra','s')
 strrchr(['Este e um string de amostra','no scilab'],'s')
 strrchr(['Este e um string de amostra','no scilab'],['s','a'])
-
-       </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 5707c95..3696fca 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 rev = strrev('This is a simple string')
 strrev(rev)
 strrev(['This is a simple string','scilab'])
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 </refentry>
index 6f847b7..03585d6 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-    S='strsplit divide um string em um vetor de strings';
-    strsplit(S,[15 25 30])
-    ind=strindex(S,' ')
-  </programlisting>
+    <programlisting role="example"><![CDATA[ 
+S='strsplit divide um string em um vetor de strings';
+strsplit(S,[15 25 30])
+ind=strindex(S,' ')
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 1704b68..9393615 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 i = strspn("129o","1234567890");
 printf ("O comprimento do numero inicial e %d.\n",i);
 i = strspn(["129o","130o"],["1234567890","130o"])
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 0247122..dfacf72 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 strstr('Este é um string simples','simples')
 strstr('Este é um string simples','samples')
 strstr(['Este é um string simples','no scilab'],'é')
 strstr(['Este é um string simples','no scilab'],['um','scilab'])
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 4d94521..c8d5a1c 100644 (file)
@@ -99,13 +99,11 @@ string_out=strsubst(string_in,searchStr,replaceStr,[flag])</synopsis>
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 strsubst('SCI/demos/scicos','SCI','.')
 strsubst('SCI/demos/scicos','/',' ')
 strsubst('2' ,'/2(]*)?$\1/' ,'0','r')
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index e214334..0e37f6c 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 strtod('123.556Este &#233; um real de amostra')
 [d,endstr] = strtod('123.556Este &#233; um real de amostra)
 strtod(['123.556Este &#233; um real de amostra','888.666 aqui'])
 [d,endstr] =strtod(['123.556Este &#233; um real de amostra','888.666 aqui'])
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 </refentry>
index 2321593..442dc74 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 TOKENS = [];
 token = strtok("Um string de ,,fichas e algumas fichas mais"," ,");
 TOKENS = [TOKENS,token];
-while( token &lt;&gt; '' )
+while( token <> '' )
   token = strtok(" ,");
   TOKENS = [TOKENS,token];
 end
 disp(TOKENS);
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index ae1228d..a295c0b 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 str='Isto é um string';
 kdf=tokenpos(str)
 first=part(str,kdf(1,1):kdf(1,2))
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 0223479..74522d5 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 tokens('Isto é um string')
 
 tokens('SCI/demos/scicos','/')
 
 tokens('y=a+b*2',['=','+','*'])
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>
index 7b0c2dd..d1fb293 100644 (file)
   <refsection>
     <title>Exemplos</title>
 
-    <programlisting role="example">
-
+    <programlisting role="example"><![CDATA[ 
 tree=macr2tree(cosh);
 txt=tree2code(tree,%T);
 write(%io(2),txt,'(a)');
-  </programlisting>
+ ]]></programlisting>
   </refsection>
 
   <refsection>