X-Git-Url: https://git.yukkurigames.com/?p=enjoyable.git;a=blobdiff_plain;f=NSString%2BFixFilename.h;fp=NSString%2BFixFilename.h;h=0850e744518e5f4e78e0ead4ba9ef3a189a83934;hp=0000000000000000000000000000000000000000;hb=b18839d1b922bcf00b5ada21e1748b6d78c6773f;hpb=a2cc76128896f61d5f5cc4039c0dcbb1b6cdff23 diff --git a/NSString+FixFilename.h b/NSString+FixFilename.h new file mode 100644 index 0000000..0850e74 --- /dev/null +++ b/NSString+FixFilename.h @@ -0,0 +1,19 @@ +// +// NSString+FixFilename.h +// Enjoyable +// +// Created by Joe Wreschnig on 3/7/13. +// +// + +#import + +@interface NSString (FixFilename) + +- (NSString *)stringByFixingPathComponent; + // Does various operations to make this string suitable for use as + // a single path component of a normal filename. Removes / and : + // characters and prepends a _ to avoid leading .s or an empty + // name. + +@end