| View previous topic :: View next topic |
| Author |
Message |
[¤GoO¤]
Joined: 22 Feb 2005 Posts: 60 Location: Sweden
|
Posted: Fri Apr 29, 2005 11:01 pm Post subject: Lower/ Upper case |
|
|
I use StringLower, OutputVar, InputVar, T to make my files look a little bit better....
There's only one thing I'm not really satisfied with:
Files like "Dance eJay" becomes "Dance Ejay" (of cource).
But is there a way to preserve uppercase letters in the middle of a word (like eJay), so that only the first letter in each and every word is converted and "eJay" still is "eJay"?
Maybe I should use a loop and detect spaces and so on...  _________________ "Make everything as simple as possible, but not simpler."
- Albert Einstein (1879-1955) |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Sun May 01, 2005 11:07 am Post subject: Re: Lower/ Upper case |
|
|
| [¤GoO¤] wrote: | | But is there a way to preserve uppercase letters in the middle of a word (like eJay), so that only the first letter in each and every word is converted and "eJay" still is "eJay"? | A character-by-character parsing loop is probably the best way: | Code: | Loop, Parse, InputVar
{
... fairly complex routine in here
} | I was tempted to try to write this but it would probably take me 15 minutes or more to get done correctly. Maybe a script wizard will come along and write one. |
|
| Back to top |
|
 |
|