Farbflash projects: Imaging lingo table | 3-D scene list | Find all | Handler menu | Lingo message window

Ignore:
Timestamp:
03/21/09 11:50:29 (3 years ago)
Author:
alex
Message:

moved stripfunnychars handler to alex:utilities

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lingosource/castlib1/svn_Utilities.ls

    r228 r230  
    978978  if doit = 1 then mSaveList_2_XML me, newInfolist, infolistPath 
    979979   
    980    
    981 end 
    982  
    983 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    984  
    985 on mStripFunnyCharsFromFileName me, theFileName 
    986    
    987   offs = offset(" ", theFileName) 
    988   repeat while offs > 0 
    989     put "_" into char offs of theFileName 
    990     offs = offset(" ", theFileName) 
    991   end repeat 
    992    
    993   offs = offset("/", theFileName) 
    994   repeat while offs > 0 
    995     put "_" into char offs of theFileName 
    996     offs = offset("/", theFileName) 
    997   end repeat 
    998    
    999   offs = offset(":", theFileName) 
    1000   repeat while offs > 0 
    1001     put "_" into char offs of theFileName 
    1002     offs = offset(":", theFileName) 
    1003   end repeat 
    1004    
    1005   offs = offset("\", theFileName) 
    1006   repeat while offs > 0 
    1007     put "_" into char offs of theFileName 
    1008     offs = offset("\", theFileName) 
    1009   end repeat 
    1010    
    1011   offs = offset("&", theFileName) 
    1012   repeat while offs > 0 
    1013     put "_" into char offs of theFileName 
    1014     offs = offset("&", theFileName) 
    1015   end repeat 
    1016    
    1017   return theFileName 
    1018980   
    1019981end 
Note: See TracChangeset for help on using the changeset viewer.