Fonction Scilab
eng - fr


stripblanks_begin - efface les espaces blancs au début d'une chaîne de caractères

Librairie

Séquence d'appel

txt = stripblanks_begin(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_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 

Fonction(s) utilisée(s)

Add here the used function name and references

Auteurs

enter here the author name Add here the author references