stripblanks_end - strip blanks at the end of a character string
txt = stripblanks_end(txt)
- txt : vector of strings. the input text.
- txt : vector of strings. the output text.
//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
IRCOM Group
Alan Layec