stripblanks_begin - strip blanks at the beginning of a character string
txt = stripblanks_begin(txt)
- txt : vector of strings. the input text.
- txt : vector of strings. the output text.
//stripblanks_begin
//fonction qui enlève le caractère " "
//du début de chaque élément du vecteur
//chaîne de caractères 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_begin(txt)
if txt<>[] then
for i=1:size(txt,1)
while part(txt(i),1)==' '|part(txt(i),1)==code2str(-40)
if length(txt(i))==0 then
break
else
txt(i)=part(txt(i),2:length(txt(i)));
end
end
end
end
endfunction
IRCOM Group
Alan Layec