Lines Matching +defs:suffix +defs:string

116             // An error has occurred trying to get the host UUID string. There's nothing we can do here, so we should just return NULL.
125 CFRelease(uuidAsString); // someone else made the assignment, so just release the extra string.
141 // If the host UUID is prefixed by "00000000-0000-1000-8000-" then the UUID returned is the "compatible" type. The last field of the string will be the MAC address of the primary ethernet interface of the computer. We use this for compatibility with existing by-host preferences.
154 // The host UUID is a full UUID, and we should just use that. This doesn't involve any additional string creation, so we should just be able to do the assignment.
601 CFStringRef suffix;
609 suffix = CFStringCreateWithCString(prefAlloc, ".plist", kCFStringEncodingASCII);
612 suffix = CFStringCreateWithFormat(prefAlloc, NULL, CFSTR(".%@.plist"), hostID);
614 suffix = CFStringCreateWithFormat(prefAlloc, NULL, CFSTR(".%@.plist"), hostName); // sketchy - this allows someone to create a domain list for an arbitrary hostname.
616 suffixLen = CFStringGetLength(suffix);
628 CFStringRef string = CFURLCopyFileSystemPath(url, kCFURLPOSIXPathStyle);
629 if (!CFStringHasSuffix(string, suffix)) {
632 CFStringRef dom = CFStringCreateWithSubstring(prefAlloc, string, CFRangeMake(0, CFStringGetLength(string) - suffixLen));
640 CFRelease(string);
642 CFRelease(suffix);
655 suffix = _CFPreferencesCachePrefixForUserHost(userName, hostName);
656 suffixLen = CFStringGetLength(suffix);
664 if (!CFStringHasPrefix(domainKey, suffix)) continue;
687 CFRelease(suffix);