Fonction Scilab
eng - fr


stripblanks_end - efface les espaces blancs à la fin d'une chaîne de caractères

Librairie

Séquence d'appel

txt = stripblanks_end(txt)

Paramètres

Description

Add here a paragraph of the function description. Other paragraph can be added

Add here a paragraph of the function description

Exemple

Add here scilab instructions and comments

Contenu du fichier


//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 

Fonction(s) utilisée(s)

Add here the used function name and references

Auteurs

enter here the author name Add here the author references