Coconut I/O Framework  beta
Functions
CNURLUtil.h File Reference

Define CNURLUtil class. More...

#import <Foundation/Foundation.h>
#import "CNIOType.h"

Go to the source code of this file.

Functions

CNURIScheme CNSchemeOfUTF8String (const char *src)
 Check the string is started by URI or not.
NSURL * CNAllocateURLForFile (NSString *fname, NSError **error)
 Allocate URL for file access.

Detailed Description

Define CNURLUtil class.

Copyright
Copyright (C) 2009-2012 Steel Wheels Project

Function Documentation

CNURIScheme CNSchemeOfUTF8String ( const char *  src)

Check the string is started by URI or not.

Returns:
URI of the string. If the source string does not have URI, this function returns CNURINoScheme.
Parameters:
srcSource string to be checked.
NSURL* CNAllocateURLForFile ( NSString *  fname,
NSError **  error 
)

Allocate URL for file access.

Return values:
urlAllocated URL
nilURL allocation failed. The error information is set to "error".
Parameters:
fnameSource file name
errorError information, this is set when the URL allocation is failed.
Note
You have to release the returned object.