Lines Matching defs:CFStringRef

75 static CFStringRef __tzZoneInfo = NULL;
84 CF_EXPORT CFStringRef const kCFDateFormatterTimeZone __attribute__((weak, alias ("kCFDateFormatterTimeZoneKey")));
152 CFStringRef string = CFStringCreateWithBytes(kCFAllocatorSystemDefault, (const UInt8 *)lpName, (_tcslen(lpName) * sizeof(UniChar)), kCFStringEncodingUnicode, false);
154 CFStringRef string = CFStringCreateWithBytes(kCFAllocatorSystemDefault, lpName, _tcslen(lpName), CFStringGetSystemEncoding(), false);
214 CFStringRef string = CFStringCreateWithBytes(kCFAllocatorSystemDefault, bytes, nmlen, kCFStringEncodingUTF8, false);
231 CFStringRef abbrev;
237 CFStringRef _name; /* immutable */
250 CF_INLINE void __CFTZPeriodInit(CFTZPeriod *period, int32_t startTime, CFStringRef abbrev, int32_t offset, Boolean isDST) {
252 period->abbrev = abbrev ? (CFStringRef)CFRetain(abbrev) : NULL;
262 CF_INLINE CFStringRef __CFTZPeriodAbbreviation(const CFTZPeriod *period) {
318 CFStringRef *abbrs;
355 abbrs = CFAllocatorAllocate(allocator, (charcnt + 1) * sizeof(CFStringRef), 0);
445 static CFStringRef __CFTimeZoneCopyDescription(CFTypeRef cf) {
447 CFStringRef result, abbrev;
692 CFTimeZoneRef CFTimeZoneCreateWithWindowsName(CFAllocatorRef allocator, CFStringRef winName) {
698 CFStringRef olsonName = CFDictionaryGetValue(winToOlson, winName);
707 extern CFStringRef _CFGetWindowsAppleSystemLibraryDirectory(void);
712 CFStringRef winDir = _CFGetWindowsAppleSystemLibraryDirectory();
732 CFStringRef name = NULL;
737 CFStringRef cfStandardName = CFStringCreateWithBytes(kCFAllocatorSystemDefault, (UInt8 *)standardName, wcslen(standardName)*sizeof(WCHAR), kCFStringEncodingUTF16LE, false);
758 CFStringRef name = CFStringCreateWithBytes(kCFAllocatorSystemDefault, (uint8_t *)tzenv, strlen(tzenv), kCFStringEncodingUTF8, false);
765 CFStringRef name = CFStringCreateWithBytes(kCFAllocatorSystemDefault, (uint8_t *)tzenv, strlen(tzenv), kCFStringEncodingUTF8, false);
772 CFStringRef name;
868 CFStringRef item = (CFStringRef)CFArrayGetValueAtIndex(list, idx);
958 CFDictionaryRemoveValue(__CFTimeZoneCache, (CFStringRef)key);
975 CFTimeZoneRef CFTimeZoneCreate(CFAllocatorRef allocator, CFStringRef name, CFDataRef data) {
1005 ((struct __CFTimeZone *)memory)->_name = (CFStringRef)CFStringCreateCopy(allocator, name);
1017 static CFTimeZoneRef __CFTimeZoneCreateFixed(CFAllocatorRef allocator, int32_t seconds, CFStringRef name, int isDST) {
1047 CFStringRef name;
1058 name = (CFStringRef)CFRetain(CFSTR("GMT"));
1067 CFTimeZoneRef CFTimeZoneCreateWithName(CFAllocatorRef allocator, CFStringRef name, Boolean tryAbbrev) {
1069 CFStringRef tzName = NULL;
1137 CFStringRef mapping = CFDictionaryGetValue(dict, name);
1174 CFStringRef nameCopy = (CFStringRef)CFStringCreateCopy(allocator, name);
1185 CFStringRef CFTimeZoneGetName(CFTimeZoneRef tz) {
1186 CF_OBJC_FUNCDISPATCHV(CFTimeZoneGetTypeID(), CFStringRef, (NSTimeZone *)tz, name);
1225 CFStringRef CFTimeZoneCopyAbbreviation(CFTimeZoneRef tz, CFAbsoluteTime at) {
1226 CFStringRef result;
1231 return result ? (CFStringRef)CFRetain(result) : NULL;
1266 extern UCalendar *__CFCalendarCreateUCalendar(CFStringRef calendarID, CFStringRef localeID, CFTimeZoneRef tz);
1270 CFStringRef CFTimeZoneCopyLocalizedName(CFTimeZoneRef tz, CFTimeZoneNameStyle style, CFLocaleRef locale) {
1271 CF_OBJC_FUNCDISPATCHV(CFTimeZoneGetTypeID(), CFStringRef, (NSTimeZone *)tz, localizedName:(NSTimeZoneNameStyle)style locale:(NSLocale *)locale);
1279 CFStringRef str = CFDateFormatterCreateStringWithAbsoluteTime(CFGetAllocator(tz), df, 0.0);
1284 CFStringRef localeID = CFLocaleGetIdentifier(locale);