Lines Matching refs:filename
54 // Get the filename from the URL. Try the lastPathComponent first.
56 NSString *filename = filenameByFixingIllegalCharacters(lastPathComponent);
59 if ([filename length] == 0 || [lastPathComponent isEqualToString:@"/"]) {
62 filename = filenameByFixingIllegalCharacters(host);
63 if ([filename length] == 0) {
64 // Can't make a filename using this URL, use "unknown".
65 filename = copyImageUnknownFileLabel();
69 // For example, if the filename ends up being the host, we wouldn't want to correct ".com" in "www.apple.com".
70 extension = [filename pathExtension];
74 // have a filename which has .tar in it or ends in .tgz
76 && (hasCaseInsensitiveSubstring(filename, @".tar")
77 || hasCaseInsensitiveSuffix(filename, @".tgz"))) {
78 return filename;
91 filename = [filename stringByAppendingPathExtension:correctExtension];
96 return filename;