Leading or trailing white space characters in file names


Re: Leading or trailing white space characters in file names
#7
Good point. I just looked at LDView's code, and it's actually inconsistent (in other words, broken). For finding spaces prior to the filename it uses the C library function isspace(). For spaces after the filename, it only treats space and tab and white space characters.

According to here, isspace() considers the following to be white space:
  • space
  • horizontal tab
  • newline
  • vertical tab
  • form feed
  • carriage return

The newline and carriage return characters are already excluded, since they have special meaning in an LDraw file. I'm not real sure about form feed and vertical tab, though.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Re: Leading or trailing white space characters in file names - by Travis Cobbs - 2011-12-06, 22:26

Forum Jump:


Users browsing this thread: 5 Guest(s)