Lines Matching refs:ref
58 ref = NULL;
63 ref = CFURLCreateWithBytes(NULL, (const UInt8 *)s, strlen(s), kCFStringEncodingUTF8, NULL);
64 if (!ref)
70 ref = CFURLCreateWithBytes(NULL, (const UInt8 *)s, strlen(s), kCFStringEncodingUTF8, base.ref);
71 if (!ref)
77 if (ref)
78 CFRelease(ref);
87 return mkstr(CFURLGetString(ref));
92 return mkstr(CFURLCopyScheme(ref));
97 return mkstr(CFURLCopyHostName(ref));
102 SInt32 port = CFURLGetPortNumber(ref);
108 return mkstr(CFURLCopyUserName(ref));
113 return mkstr(CFURLCopyPassword(ref));
119 return "/" + mkstr(CFURLCopyStrictPath(ref, &isAbsolute));
124 return mkstr(CFURLCopyResourceSpecifier(ref));
134 return mkstr(CFURLCopyLastPathComponent(ref));
139 return mkstr(CFURLCopyPathExtension(ref));
144 if(ref)
145 CFRelease(ref);
146 ref = CFURLCreateWithBytes(NULL, (const UInt8 *)url, strlen(url), kCFStringEncodingUTF8, NULL);