Lines Matching refs:extension

224     CFStringRef extension = (matchingAbstractType ? _CFCopyExtensionForAbstractType(matchingAbstractType) : NULL);
225 CFIndex targetExtLen = (extension ? CFStringGetLength(extension) : 0);
234 CFStringGetBytes(extension, CFRangeMake(0, targetExtLen), kCFStringEncodingUTF16, 0, false, (uint8_t *)extBuff, CFMaxPathLength, &usedBytes);
242 while ((extBuffDotPtr = wcschr(extBuffStr, '.'))) { //find the next . in the extension...
252 if (extension) CFRelease(extension);
275 if (extension) {
276 CFRelease(extension);
287 if (extension) {
288 CFRelease(extension);
302 if (targetExtLen > namelen) continue; // if the extension is the same length or longer than the name, it can't possibly match.
305 if (file.cFileName[namelen - 1] == '.') continue; //filename ends with a dot, no extension
325 if (!fileExt) continue; //no extension
328 fileExt++; //omit the dot if the target file extension omits the dot
335 // Check to see if it matches the extension we're looking for.
361 CFStringGetBytes(extension, CFRangeMake(0, targetExtLen), CFStringFileSystemEncoding(), 0, false, extBuff, CFMaxPathLength, &targetExtLen);
368 while ((extBuffDotPtr = strchr(extBuffStr, '.'))) { //find the next . in the extension...
378 if (extension) CFRelease(extension);
394 if (extension) {
395 CFRelease(extension);
412 if (targetExtLen > namelen) continue; // if the extension is the same length or longer than the name, it can't possibly match.
415 if (dp->d_name[namelen - 1] == '.') continue; //filename ends with a dot, no extension
434 if (!fileExt) continue; //no extension
437 fileExt++; //omit the dot if the target extension omits the dot; safe, because we checked to make sure it isn't the last character just before
444 // Check to see if it matches the extension we're looking for.
488 if (extension) {
489 CFRelease(extension);
500 if (extension) {
501 CFRelease(extension);
776 CF_PRIVATE Boolean _CFAppendPathExtension2(CFMutableStringRef path, CFStringRef extension) {
781 if (0 < CFStringGetLength(extension) && IS_SLASH(CFStringGetCharacterAtIndex(extension, 0))) {
784 if (1 < CFStringGetLength(extension)) {
785 if (_hasDrive(extension)) return false;
826 CFStringAppend(path, extension);
830 CF_PRIVATE Boolean _CFAppendPathExtension(UniChar *unichars, CFIndex *length, CFIndex maxLength, UniChar *extension, CFIndex extensionLength) {
834 if ((0 < extensionLength && IS_SLASH(extension[0])) || (1 < extensionLength && HAS_DRIVE(extension))) {
871 memmove(unichars + *length, extension, extensionLength * sizeof(UniChar));