Scilab Function
eng - fr


stripblanks_end - strip blanks at the end of a character string

Library

Calling Sequence

txt = stripblanks_end(txt)

Parameters

File content


//stripblanks_end
//fonction qui enlève le caractère " "
//à la fin de chaque élément du vecteur
//chaîne de caractère présenté en entrée.
//Entrée : txt un vecteur de chaîne de caractères
//Sortie : txt un vecteur de chaîne de caractères 'nettoyé'
function txt=stripblanks_end(txt)
 for i=1:size(txt,1)
  if length(txt(i))<>0 then
   while part(txt(i),length(txt(i)))==' '|part(txt(i),length(txt(i)))==code2str(-40)
     if length(txt(i))==0 then
        break
      else
       txt(i)=part(txt(i),1:length(txt(i))-1);
     end  
   end
  end
 end
endfunction 

Authors

IRCOM Group Alan Layec