Home | History | Annotate | Download | only in JavaScriptGlue

Lines Matching refs:cfValue

171     CFTypeRef cfValue = jsObjPtr ? jsObjPtr->CopyCFValue() : 0;
172 if (cfValue) {
173 CFTypeID cfType = CFGetTypeID(cfValue); // toPrimitive
174 if (cfValue == GetCFNull()) {
178 if (cfValue == kCFBooleanTrue) {
184 result = jsString(exec, CFStringToUString((CFStringRef)cfValue));
187 CFNumberGetValue((CFNumberRef)cfValue, kCFNumberDoubleType, &d);
190 CFURLRef absURL = CFURLCopyAbsoluteURL((CFURLRef)cfValue);
196 ReleaseCFType(cfValue);
208 CFTypeRef cfValue = jsObjPtr ? jsObjPtr->CopyCFValue() : 0;
209 if (cfValue)
211 CFTypeID cfType = CFGetTypeID(cfValue); // toPrimitive
212 if (cfValue == GetCFNull())
218 if (cfValue == kCFBooleanTrue)
225 if (CFStringGetLength((CFStringRef)cfValue))
232 if (cfValue != kCFNumberNaN)
235 if (CFNumberGetValue((CFNumberRef)cfValue, kCFNumberDoubleType, &d))
246 if (CFArrayGetCount((CFArrayRef)cfValue))
253 if (CFDictionaryGetCount((CFDictionaryRef)cfValue))
260 if (CFSetGetCount((CFSetRef)cfValue))
267 CFURLRef absURL = CFURLCopyAbsoluteURL((CFURLRef)cfValue);
280 ReleaseCFType(cfValue);
288 CFTypeRef cfValue = jsObjPtr ? jsObjPtr->CopyCFValue() : 0;
289 if (cfValue)
291 CFTypeID cfType = CFGetTypeID(cfValue);
293 if (cfValue == GetCFNull())
299 if (cfValue == kCFBooleanTrue)
306 result = CFStringGetDoubleValue((CFStringRef)cfValue);
310 CFNumberGetValue((CFNumberRef)cfValue, kCFNumberDoubleType, &result);
313 ReleaseCFType(cfValue);
322 CFTypeRef cfValue = jsObjPtr ? jsObjPtr->CopyCFValue() : 0;
323 if (cfValue)
325 CFTypeID cfType = CFGetTypeID(cfValue);
326 if (cfValue == GetCFNull())
332 if (cfValue == kCFBooleanTrue)
343 result = CFStringToUString((CFStringRef)cfValue);
347 if (cfValue == kCFNumberNaN)
351 else if (CFNumberCompare(kCFNumberPositiveInfinity, (CFNumberRef)cfValue, 0) == 0)
355 else if (CFNumberCompare(kCFNumberNegativeInfinity, (CFNumberRef)cfValue, 0) == 0)
363 CFNumberGetValue((CFNumberRef)cfValue, kCFNumberDoubleType, &d);
364 if (CFNumberIsFloatType((CFNumberRef)cfValue))
390 CFURLRef absURL = CFURLCopyAbsoluteURL((CFURLRef)cfValue);
402 ReleaseCFType(cfValue);