1 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 // Copyright (C) 2012 - 2016 - Scilab Enterprises
6 // This file is hereby licensed under the terms of the GNU GPL v2.0,
7 // pursuant to article 5.3.4 of the CeCILL v.2.1.
8 // This file was originally licensed under the terms of the CeCILL v2.1,
9 // and continues to be available under such terms.
10 // For more information, see the COPYING file which you should have received
11 // along with this program.
14 n=size(definedfields(m),"*")
16 mprintf(_(" (empty table)\n"))
21 txt=[txt string(getfield(k,m))];
23 l=max(length(txt),"r");
26 txt(:,k)=part(txt(:,k),1:l(k));
33 k2=max(find(L<nlc(1)-3))
34 if k2==[] then k2=k1 ;else k2=k1-1+k2;end
35 t=emptystr(size(txt,1),1);
39 if k1==1&k2==n then mprintf("%s\n"," "+t),break,end
42 mprintf("%s\n",["Column "+string(k1);" ";" "+t])
44 mprintf("%s\n",["Columns "+string(k1)+" to "+string(k2);" ";+" "+t;" "])
46 if k2==n then break,end