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/alexUtilities.ls

    r228 r230  
    35303530end 
    35313531 
     3532 
     3533-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     3534 
     3535on mStripFunnyCharsFromFileName me, theFileName 
     3536   
     3537  offs = offset(" ", theFileName) 
     3538  repeat while offs > 0 
     3539    put "_" into char offs of theFileName 
     3540    offs = offset(" ", theFileName) 
     3541  end repeat 
     3542   
     3543  offs = offset("/", theFileName) 
     3544  repeat while offs > 0 
     3545    put "_" into char offs of theFileName 
     3546    offs = offset("/", theFileName) 
     3547  end repeat 
     3548   
     3549  offs = offset(":", theFileName) 
     3550  repeat while offs > 0 
     3551    put "_" into char offs of theFileName 
     3552    offs = offset(":", theFileName) 
     3553  end repeat 
     3554   
     3555  offs = offset("\", theFileName) 
     3556  repeat while offs > 0 
     3557    put "_" into char offs of theFileName 
     3558    offs = offset("\", theFileName) 
     3559  end repeat 
     3560   
     3561  offs = offset("&", theFileName) 
     3562  repeat while offs > 0 
     3563    put "_" into char offs of theFileName 
     3564    offs = offset("&", theFileName) 
     3565  end repeat 
     3566   
     3567  return theFileName 
     3568   
     3569end 
     3570 
Note: See TracChangeset for help on using the changeset viewer.