public final class CoreFoundation
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static long |
kCFNotFound
Constant used by some functions to indicate failed searches.
|
| Modifier and Type | Method and Description |
|---|---|
static CFRange |
__CFRangeMake(long loc,
long len)
Private; do not use
|
static CFStringRef |
__CFStringMakeConstantString(java.lang.String cStr)
This function is private and should not be used directly
|
static double |
CFAbsoluteTimeAddGregorianUnits(double at,
CFTimeZoneRef tz,
CFGregorianUnits units)
Deprecated.
|
static double |
CFAbsoluteTimeGetCurrent()
absolute time is the time interval since the reference date
the reference date (epoch) is 00:00:00 1 January 2001.
|
static int |
CFAbsoluteTimeGetDayOfWeek(double at,
CFTimeZoneRef tz)
Deprecated.
|
static int |
CFAbsoluteTimeGetDayOfYear(double at,
CFTimeZoneRef tz)
Deprecated.
|
static CFGregorianUnits |
CFAbsoluteTimeGetDifferenceAsGregorianUnits(double at1,
double at2,
CFTimeZoneRef tz,
long unitFlags)
Deprecated.
|
static CFGregorianDate |
CFAbsoluteTimeGetGregorianDate(double at,
CFTimeZoneRef tz)
Deprecated.
|
static int |
CFAbsoluteTimeGetWeekOfYear(double at,
CFTimeZoneRef tz)
Deprecated.
|
static org.moe.natj.general.ptr.VoidPtr |
CFAllocatorAllocate(CFAllocatorRef allocator,
long size,
long hint) |
static CFAllocatorRef |
CFAllocatorCreate(CFAllocatorRef allocator,
CFAllocatorContext context) |
static void |
CFAllocatorDeallocate(CFAllocatorRef allocator,
org.moe.natj.general.ptr.VoidPtr ptr) |
static void |
CFAllocatorGetContext(CFAllocatorRef allocator,
CFAllocatorContext context) |
static CFAllocatorRef |
CFAllocatorGetDefault() |
static long |
CFAllocatorGetPreferredSizeForSize(CFAllocatorRef allocator,
long size,
long hint) |
static long |
CFAllocatorGetTypeID() |
static org.moe.natj.general.ptr.VoidPtr |
CFAllocatorReallocate(CFAllocatorRef allocator,
org.moe.natj.general.ptr.VoidPtr ptr,
long newsize,
long hint) |
static void |
CFAllocatorSetDefault(CFAllocatorRef allocator)
CFAllocatorSetDefault() sets the allocator that is used in the current
thread whenever NULL is specified as an allocator argument.
|
static void |
CFArrayAppendArray(CFMutableArrayRef theArray,
CFArrayRef otherArray,
CFRange otherRange)
[@function] CFArrayAppendArray
Adds the values from an array to another array.
|
static void |
CFArrayAppendValue(CFMutableArrayRef theArray,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFArrayAppendValue
Adds the value to the array giving it a new largest index.
|
static void |
CFArrayApplyFunction(CFArrayRef theArray,
CFRange range,
CoreFoundation.Function_CFArrayApplyFunction applier,
org.moe.natj.general.ptr.VoidPtr context)
[@function] CFArrayApplyFunction
Calls a function once for each value in the array.
|
static long |
CFArrayBSearchValues(CFArrayRef theArray,
CFRange range,
org.moe.natj.general.ptr.ConstVoidPtr value,
CoreFoundation.Function_CFArrayBSearchValues comparator,
org.moe.natj.general.ptr.VoidPtr context)
[@function] CFArrayBSearchValues
Searches the array for the value using a binary search algorithm.
|
static byte |
CFArrayContainsValue(CFArrayRef theArray,
CFRange range,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFArrayContainsValue
Reports whether or not the value is in the array.
|
static CFArrayRef |
CFArrayCreate(CFAllocatorRef allocator,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values,
long numValues,
CFArrayCallBacks callBacks)
[@function] CFArrayCreate
Creates a new immutable array with the given values.
|
static CFArrayRef |
CFArrayCreateCopy(CFAllocatorRef allocator,
CFArrayRef theArray)
[@function] CFArrayCreateCopy
Creates a new immutable array with the values from the given array.
|
static CFMutableArrayRef |
CFArrayCreateMutable(CFAllocatorRef allocator,
long capacity,
CFArrayCallBacks callBacks)
[@function] CFArrayCreateMutable
Creates a new empty mutable array.
|
static CFMutableArrayRef |
CFArrayCreateMutableCopy(CFAllocatorRef allocator,
long capacity,
CFArrayRef theArray)
[@function] CFArrayCreateMutableCopy
Creates a new mutable array with the values from the given array.
|
static void |
CFArrayExchangeValuesAtIndices(CFMutableArrayRef theArray,
long idx1,
long idx2)
[@function] CFArrayExchangeValuesAtIndices
Exchanges the values at two indices of the array.
|
static long |
CFArrayGetCount(CFArrayRef theArray)
[@function] CFArrayGetCount
Returns the number of values currently in the array.
|
static long |
CFArrayGetCountOfValue(CFArrayRef theArray,
CFRange range,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFArrayGetCountOfValue
Counts the number of times the given value occurs in the array.
|
static long |
CFArrayGetFirstIndexOfValue(CFArrayRef theArray,
CFRange range,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFArrayGetFirstIndexOfValue
Searches the array for the value.
|
static long |
CFArrayGetLastIndexOfValue(CFArrayRef theArray,
CFRange range,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFArrayGetLastIndexOfValue
Searches the array for the value.
|
static long |
CFArrayGetTypeID()
[@function] CFArrayGetTypeID
Returns the type identifier of all CFArray instances.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFArrayGetValueAtIndex(CFArrayRef theArray,
long idx)
[@function] CFArrayGetValueAtIndex
Retrieves the value at the given index.
|
static void |
CFArrayGetValues(CFArrayRef theArray,
CFRange range,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values)
[@function] CFArrayGetValues
Fills the buffer with values from the array.
|
static void |
CFArrayInsertValueAtIndex(CFMutableArrayRef theArray,
long idx,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFArrayInsertValueAtIndex
Adds the value to the array, giving it the given index.
|
static void |
CFArrayRemoveAllValues(CFMutableArrayRef theArray)
[@function] CFArrayRemoveAllValues
Removes all the values from the array, making it empty.
|
static void |
CFArrayRemoveValueAtIndex(CFMutableArrayRef theArray,
long idx)
[@function] CFArrayRemoveValueAtIndex
Removes the value with the given index from the array.
|
static void |
CFArrayReplaceValues(CFMutableArrayRef theArray,
CFRange range,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> newValues,
long newCount)
[@function] CFArrayReplaceValues
Replaces a range of values in the array.
|
static void |
CFArraySetValueAtIndex(CFMutableArrayRef theArray,
long idx,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFArraySetValueAtIndex
Changes the value with the given index in the array.
|
static void |
CFArraySortValues(CFMutableArrayRef theArray,
CFRange range,
CoreFoundation.Function_CFArraySortValues comparator,
org.moe.natj.general.ptr.VoidPtr context)
[@function] CFArraySortValues
Sorts the values in the array using the given comparison function.
|
static void |
CFAttributedStringBeginEditing(CFMutableAttributedStringRef aStr)
[@function] CFAttributedStringBeginEditing
In cases where attributed string might do a bunch of work to assure self-consistency, CFAttributedStringBeginEditing/CFAttributedStringEndEditing allow disabling that to allow deferring and coalescing any work.
|
static CFAttributedStringRef |
CFAttributedStringCreate(CFAllocatorRef alloc,
CFStringRef str,
CFDictionaryRef attributes)
[@function] CFAttributedStringCreate
Creates an attributed string with the specified string and attributes (both copied).
|
static CFAttributedStringRef |
CFAttributedStringCreateCopy(CFAllocatorRef alloc,
CFAttributedStringRef aStr)
[@function] CFAttributedStringCreateCopy
Creates an immutable attributed string copy.
|
static CFMutableAttributedStringRef |
CFAttributedStringCreateMutable(CFAllocatorRef alloc,
long maxLength)
[@function] CFAttributedStringCreateMutable
Creates a mutable empty attributed string.
|
static CFMutableAttributedStringRef |
CFAttributedStringCreateMutableCopy(CFAllocatorRef alloc,
long maxLength,
CFAttributedStringRef aStr)
[@function] CFAttributedStringCreateMutableCopy
Creates a mutable attributed string copy.
|
static CFAttributedStringRef |
CFAttributedStringCreateWithSubstring(CFAllocatorRef alloc,
CFAttributedStringRef aStr,
CFRange range)
[@function] CFAttributedStringCreateWithSubstring
Creates a sub-attributed string from the specified range.
|
static void |
CFAttributedStringEndEditing(CFMutableAttributedStringRef aStr)
[@function] CFAttributedStringEndEditing
In cases where attributed string might do a bunch of work to assure self-consistency, CFAttributedStringBeginEditing/CFAttributedStringEndEditing allow disabling that to allow deferring and coalescing any work.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFAttributedStringGetAttribute(CFAttributedStringRef aStr,
long loc,
CFStringRef attrName,
CFRange effectiveRange)
[@function] CFAttributedStringGetAttribute
Returns the value of a single attribute at the specified location.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFAttributedStringGetAttributeAndLongestEffectiveRange(CFAttributedStringRef aStr,
long loc,
CFStringRef attrName,
CFRange inRange,
CFRange longestEffectiveRange)
[@function] CFAttributedStringGetAttributeAndLongestEffectiveRange
Returns the value of a single attribute at the specified location.
|
static CFDictionaryRef |
CFAttributedStringGetAttributes(CFAttributedStringRef aStr,
long loc,
CFRange effectiveRange)
[@function] CFAttributedStringGetAttributes
Returns the attributes at the specified location.
|
static CFDictionaryRef |
CFAttributedStringGetAttributesAndLongestEffectiveRange(CFAttributedStringRef aStr,
long loc,
CFRange inRange,
CFRange longestEffectiveRange)
[@function] CFAttributedStringGetAttributesAndLongestEffectiveRange
Returns the attributes at the specified location.
|
static long |
CFAttributedStringGetLength(CFAttributedStringRef aStr)
[@function] CFAttributedStringGetLength
Returns the length of the attributed string in characters; same as CFStringGetLength(CFAttributedStringGetString(aStr))
|
static CFMutableStringRef |
CFAttributedStringGetMutableString(CFMutableAttributedStringRef aStr)
[@function] CFAttributedStringGetMutableString
Gets the string for the attributed string as a mutable string, allowing editing the character contents of the string as if it were an CFMutableString.
|
static CFStringRef |
CFAttributedStringGetString(CFAttributedStringRef aStr)
[@function] CFAttributedStringGetString
Returns the string for the attributed string.
|
static long |
CFAttributedStringGetTypeID()
[@function] CFAttributedStringGetTypeID
Returns the type identifier of all CFAttributedString instances.
|
static void |
CFAttributedStringRemoveAttribute(CFMutableAttributedStringRef aStr,
CFRange range,
CFStringRef attrName)
[@function] CFAttributedStringRemoveAttribute
Removes the value of a single attribute over the specified range, which should be valid.
|
static void |
CFAttributedStringReplaceAttributedString(CFMutableAttributedStringRef aStr,
CFRange range,
CFAttributedStringRef replacement)
[@function] CFAttributedStringReplaceAttributedString
Replaces the attributed substring over the specified range with the attributed string specified in replacement.
|
static void |
CFAttributedStringReplaceString(CFMutableAttributedStringRef aStr,
CFRange range,
CFStringRef replacement)
[@function] CFAttributedStringReplaceString
Modifies the string for the attributed string, much like CFStringReplace().
|
static void |
CFAttributedStringSetAttribute(CFMutableAttributedStringRef aStr,
CFRange range,
CFStringRef attrName,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFAttributedStringSetAttribute
Sets the value of a single attribute over the specified range, which should be valid.
|
static void |
CFAttributedStringSetAttributes(CFMutableAttributedStringRef aStr,
CFRange range,
CFDictionaryRef replacement,
byte clearOtherAttributes)
[@function] CFAttributedStringSetAttributes
Sets the value of multiple attributes over the specified range, which should be valid.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFAutorelease(org.moe.natj.general.ptr.ConstVoidPtr arg) |
static void |
CFBagAddValue(CFMutableBagRef theBag,
org.moe.natj.general.ptr.ConstVoidPtr value) |
static void |
CFBagApplyFunction(CFBagRef theBag,
CoreFoundation.Function_CFBagApplyFunction applier,
org.moe.natj.general.ptr.VoidPtr context) |
static byte |
CFBagContainsValue(CFBagRef theBag,
org.moe.natj.general.ptr.ConstVoidPtr value) |
static CFBagRef |
CFBagCreate(CFAllocatorRef allocator,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values,
long numValues,
CFBagCallBacks callBacks) |
static CFBagRef |
CFBagCreateCopy(CFAllocatorRef allocator,
CFBagRef theBag) |
static CFMutableBagRef |
CFBagCreateMutable(CFAllocatorRef allocator,
long capacity,
CFBagCallBacks callBacks) |
static CFMutableBagRef |
CFBagCreateMutableCopy(CFAllocatorRef allocator,
long capacity,
CFBagRef theBag) |
static long |
CFBagGetCount(CFBagRef theBag) |
static long |
CFBagGetCountOfValue(CFBagRef theBag,
org.moe.natj.general.ptr.ConstVoidPtr value) |
static long |
CFBagGetTypeID() |
static org.moe.natj.general.ptr.ConstVoidPtr |
CFBagGetValue(CFBagRef theBag,
org.moe.natj.general.ptr.ConstVoidPtr value) |
static byte |
CFBagGetValueIfPresent(CFBagRef theBag,
org.moe.natj.general.ptr.ConstVoidPtr candidate,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> value) |
static void |
CFBagGetValues(CFBagRef theBag,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values) |
static void |
CFBagRemoveAllValues(CFMutableBagRef theBag) |
static void |
CFBagRemoveValue(CFMutableBagRef theBag,
org.moe.natj.general.ptr.ConstVoidPtr value) |
static void |
CFBagReplaceValue(CFMutableBagRef theBag,
org.moe.natj.general.ptr.ConstVoidPtr value) |
static void |
CFBagSetValue(CFMutableBagRef theBag,
org.moe.natj.general.ptr.ConstVoidPtr value) |
static void |
CFBinaryHeapAddValue(CFBinaryHeapRef heap,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFBinaryHeapAddValue
Adds the value to the binary heap.
|
static void |
CFBinaryHeapApplyFunction(CFBinaryHeapRef heap,
CoreFoundation.Function_CFBinaryHeapApplyFunction applier,
org.moe.natj.general.ptr.VoidPtr context)
[@function] CFBinaryHeapApplyFunction
Calls a function once for each value in the binary heap.
|
static byte |
CFBinaryHeapContainsValue(CFBinaryHeapRef heap,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFBinaryHeapContainsValue
Reports whether or not the value is in the binary heap.
|
static CFBinaryHeapRef |
CFBinaryHeapCreate(CFAllocatorRef allocator,
long capacity,
CFBinaryHeapCallBacks callBacks,
CFBinaryHeapCompareContext compareContext)
[@function] CFBinaryHeapCreate
Creates a new mutable binary heap with the given values.
|
static CFBinaryHeapRef |
CFBinaryHeapCreateCopy(CFAllocatorRef allocator,
long capacity,
CFBinaryHeapRef heap)
[@function] CFBinaryHeapCreateCopy
Creates a new mutable binary heap with the values from the given binary heap.
|
static long |
CFBinaryHeapGetCount(CFBinaryHeapRef heap)
[@function] CFBinaryHeapGetCount
Returns the number of values currently in the binary heap.
|
static long |
CFBinaryHeapGetCountOfValue(CFBinaryHeapRef heap,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFBinaryHeapGetCountOfValue
Counts the number of times the given value occurs in the binary heap.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFBinaryHeapGetMinimum(CFBinaryHeapRef heap)
[@function] CFBinaryHeapGetMinimum
Returns the minimum value is in the binary heap.
|
static byte |
CFBinaryHeapGetMinimumIfPresent(CFBinaryHeapRef heap,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> value)
[@function] CFBinaryHeapGetMinimumIfPresent
Returns the minimum value is in the binary heap, if present.
|
static long |
CFBinaryHeapGetTypeID()
[@function] CFBinaryHeapGetTypeID
Returns the type identifier of all CFBinaryHeap instances.
|
static void |
CFBinaryHeapGetValues(CFBinaryHeapRef heap,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values)
[@function] CFBinaryHeapGetValues
Fills the buffer with values from the binary heap.
|
static void |
CFBinaryHeapRemoveAllValues(CFBinaryHeapRef heap)
[@function] CFBinaryHeapRemoveAllValues
Removes all the values from the binary heap, making it empty.
|
static void |
CFBinaryHeapRemoveMinimumValue(CFBinaryHeapRef heap)
[@function] CFBinaryHeapRemoveMinimumValue
Removes the minimum value from the binary heap.
|
static byte |
CFBitVectorContainsBit(CFBitVectorRef bv,
CFRange range,
int value) |
static CFBitVectorRef |
CFBitVectorCreate(CFAllocatorRef allocator,
java.lang.String bytes,
long numBits) |
static CFBitVectorRef |
CFBitVectorCreateCopy(CFAllocatorRef allocator,
CFBitVectorRef bv) |
static CFMutableBitVectorRef |
CFBitVectorCreateMutable(CFAllocatorRef allocator,
long capacity) |
static CFMutableBitVectorRef |
CFBitVectorCreateMutableCopy(CFAllocatorRef allocator,
long capacity,
CFBitVectorRef bv) |
static void |
CFBitVectorFlipBitAtIndex(CFMutableBitVectorRef bv,
long idx) |
static void |
CFBitVectorFlipBits(CFMutableBitVectorRef bv,
CFRange range) |
static int |
CFBitVectorGetBitAtIndex(CFBitVectorRef bv,
long idx) |
static void |
CFBitVectorGetBits(CFBitVectorRef bv,
CFRange range,
org.moe.natj.general.ptr.BytePtr bytes) |
static long |
CFBitVectorGetCount(CFBitVectorRef bv) |
static long |
CFBitVectorGetCountOfBit(CFBitVectorRef bv,
CFRange range,
int value) |
static long |
CFBitVectorGetFirstIndexOfBit(CFBitVectorRef bv,
CFRange range,
int value) |
static long |
CFBitVectorGetLastIndexOfBit(CFBitVectorRef bv,
CFRange range,
int value) |
static long |
CFBitVectorGetTypeID() |
static void |
CFBitVectorSetAllBits(CFMutableBitVectorRef bv,
int value) |
static void |
CFBitVectorSetBitAtIndex(CFMutableBitVectorRef bv,
long idx,
int value) |
static void |
CFBitVectorSetBits(CFMutableBitVectorRef bv,
CFRange range,
int value) |
static void |
CFBitVectorSetCount(CFMutableBitVectorRef bv,
long count) |
static long |
CFBooleanGetTypeID() |
static byte |
CFBooleanGetValue(CFBooleanRef boolean_) |
static CFURLRef |
CFBundleCopyAuxiliaryExecutableURL(CFBundleRef bundle,
CFStringRef executableName) |
static CFURLRef |
CFBundleCopyBuiltInPlugInsURL(CFBundleRef bundle) |
static CFArrayRef |
CFBundleCopyBundleLocalizations(CFBundleRef bundle)
=========== Localization-specific Resource Handling API ===========
This API allows finer-grained control over specific localizations,
as distinguished from the above API, which always uses the user's
preferred localizations for the bundle in the current app context.
|
static CFURLRef |
CFBundleCopyBundleURL(CFBundleRef bundle)
==================== Basic Bundle Info ====================
|
static CFArrayRef |
CFBundleCopyExecutableArchitectures(CFBundleRef bundle) |
static CFArrayRef |
CFBundleCopyExecutableArchitecturesForURL(CFURLRef url)
For a directory URL, this is equivalent to calling CFBundleCopyBundleLocalizations()
on the corresponding bundle.
|
static CFURLRef |
CFBundleCopyExecutableURL(CFBundleRef bundle)
==================== Primitive Code Loading API ====================
This API abstracts the various different executable formats supported on
various platforms.
|
static CFDictionaryRef |
CFBundleCopyInfoDictionaryForURL(CFURLRef url)
=================== Unbundled application info =====================
This API is provided to enable developers to retrieve bundle-related
information about an application that may be bundled or unbundled.
|
static CFDictionaryRef |
CFBundleCopyInfoDictionaryInDirectory(CFURLRef bundleURL)
------------- Basic Bundle Info without a CFBundle instance -------------
This API is provided to enable developers to retrieve basic information
about a bundle without having to create an instance of CFBundle.
|
static CFArrayRef |
CFBundleCopyLocalizationsForPreferences(CFArrayRef locArray,
CFArrayRef prefArray)
Given an array of possible localizations, returns the one or more
of them that CFBundle would use in the current application context.
|
static CFArrayRef |
CFBundleCopyLocalizationsForURL(CFURLRef url)
For a directory URL, this is equivalent to CFBundleCopyInfoDictionaryInDirectory().
|
static CFStringRef |
CFBundleCopyLocalizedString(CFBundleRef bundle,
CFStringRef key,
CFStringRef value,
CFStringRef tableName) |
static CFArrayRef |
CFBundleCopyPreferredLocalizationsFromArray(CFArrayRef locArray)
Lists the localizations that a bundle contains.
|
static CFURLRef |
CFBundleCopyPrivateFrameworksURL(CFBundleRef bundle) |
static CFURLRef |
CFBundleCopyResourcesDirectoryURL(CFBundleRef bundle) |
static CFURLRef |
CFBundleCopyResourceURL(CFBundleRef bundle,
CFStringRef resourceName,
CFStringRef resourceType,
CFStringRef subDirName)
==================== Resource Handling API ====================
|
static CFURLRef |
CFBundleCopyResourceURLForLocalization(CFBundleRef bundle,
CFStringRef resourceName,
CFStringRef resourceType,
CFStringRef subDirName,
CFStringRef localizationName)
Given an array of possible localizations, returns the one or more of
them that CFBundle would use, without reference to the current application
context, if the user's preferred localizations were given by prefArray.
|
static CFURLRef |
CFBundleCopyResourceURLInDirectory(CFURLRef bundleURL,
CFStringRef resourceName,
CFStringRef resourceType,
CFStringRef subDirName)
------------- Resource Handling without a CFBundle instance -------------
This API is provided to enable developers to use the CFBundle resource
searching policy without having to create an instance of CFBundle.
|
static CFArrayRef |
CFBundleCopyResourceURLsOfType(CFBundleRef bundle,
CFStringRef resourceType,
CFStringRef subDirName) |
static CFArrayRef |
CFBundleCopyResourceURLsOfTypeForLocalization(CFBundleRef bundle,
CFStringRef resourceType,
CFStringRef subDirName,
CFStringRef localizationName) |
static CFArrayRef |
CFBundleCopyResourceURLsOfTypeInDirectory(CFURLRef bundleURL,
CFStringRef resourceType,
CFStringRef subDirName) |
static CFURLRef |
CFBundleCopySharedFrameworksURL(CFBundleRef bundle) |
static CFURLRef |
CFBundleCopySharedSupportURL(CFBundleRef bundle) |
static CFURLRef |
CFBundleCopySupportFilesDirectoryURL(CFBundleRef bundle) |
static CFBundleRef |
CFBundleCreate(CFAllocatorRef allocator,
CFURLRef bundleURL) |
static CFArrayRef |
CFBundleCreateBundlesFromDirectory(CFAllocatorRef allocator,
CFURLRef directoryURL,
CFStringRef bundleType)
Might return an existing instance with the ref-count bumped.
|
static CFArrayRef |
CFBundleGetAllBundles()
A bundle can name itself by providing a key in the info dictionary.
|
static CFBundleRef |
CFBundleGetBundleWithIdentifier(CFStringRef bundleID) |
static org.moe.natj.general.ptr.VoidPtr |
CFBundleGetDataPointerForName(CFBundleRef bundle,
CFStringRef symbolName) |
static void |
CFBundleGetDataPointersForNames(CFBundleRef bundle,
CFArrayRef symbolNames,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> stbl) |
static CFStringRef |
CFBundleGetDevelopmentRegion(CFBundleRef bundle) |
static org.moe.natj.general.ptr.VoidPtr |
CFBundleGetFunctionPointerForName(CFBundleRef bundle,
CFStringRef functionName) |
static void |
CFBundleGetFunctionPointersForNames(CFBundleRef bundle,
CFArrayRef functionNames,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> ftbl) |
static CFStringRef |
CFBundleGetIdentifier(CFBundleRef bundle) |
static CFDictionaryRef |
CFBundleGetInfoDictionary(CFBundleRef bundle)
Returns a localized value if available, otherwise the global value.
|
static CFDictionaryRef |
CFBundleGetLocalInfoDictionary(CFBundleRef bundle)
This is the global info dictionary.
|
static CFBundleRef |
CFBundleGetMainBundle()
===================== Finding Bundles =====================
|
static void |
CFBundleGetPackageInfo(CFBundleRef bundle,
org.moe.natj.general.ptr.IntPtr packageType,
org.moe.natj.general.ptr.IntPtr packageCreator)
This is the localized info dictionary.
|
static byte |
CFBundleGetPackageInfoInDirectory(CFURLRef url,
org.moe.natj.general.ptr.IntPtr packageType,
org.moe.natj.general.ptr.IntPtr packageCreator) |
static CFPlugInRef |
CFBundleGetPlugIn(CFBundleRef bundle)
==================== Getting a bundle's plugIn ====================
|
static long |
CFBundleGetTypeID()
===================== Creating Bundles =====================
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFBundleGetValueForInfoDictionaryKey(CFBundleRef bundle,
CFStringRef key) |
static int |
CFBundleGetVersionNumber(CFBundleRef bundle) |
static byte |
CFBundleIsExecutableLoaded(CFBundleRef bundle) |
static byte |
CFBundleLoadExecutable(CFBundleRef bundle)
If the bundle is already loaded, this function will return true.
|
static byte |
CFBundleLoadExecutableAndReturnError(CFBundleRef bundle,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
This function will return true if the bundle is loaded, or if the bundle appears to be
loadable upon inspection.
|
static byte |
CFBundlePreflightExecutable(CFBundleRef bundle,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
If the bundle's executable exists and is a Mach-o file, this function will return an array
of CFNumbers whose values are integers representing the architectures the file provides.
|
static void |
CFBundleUnloadExecutable(CFBundleRef bundle) |
static long |
CFByteOrderGetCurrent() |
static byte |
CFCalendarAddComponents(CFCalendarRef calendar,
org.moe.natj.general.ptr.DoublePtr at,
long options,
java.lang.String componentDesc,
java.lang.Object... varargs) |
static byte |
CFCalendarComposeAbsoluteTime(CFCalendarRef calendar,
org.moe.natj.general.ptr.DoublePtr at,
java.lang.String componentDesc,
java.lang.Object... varargs) |
static CFCalendarRef |
CFCalendarCopyCurrent() |
static CFLocaleRef |
CFCalendarCopyLocale(CFCalendarRef calendar)
Returns the calendar's identifier.
|
static CFTimeZoneRef |
CFCalendarCopyTimeZone(CFCalendarRef calendar) |
static CFCalendarRef |
CFCalendarCreateWithIdentifier(CFAllocatorRef allocator,
CFStringRef identifier) |
static byte |
CFCalendarDecomposeAbsoluteTime(CFCalendarRef calendar,
double at,
java.lang.String componentDesc,
java.lang.Object... varargs) |
static byte |
CFCalendarGetComponentDifference(CFCalendarRef calendar,
double startingAT,
double resultAT,
long options,
java.lang.String componentDesc,
java.lang.Object... varargs) |
static long |
CFCalendarGetFirstWeekday(CFCalendarRef calendar) |
static CFStringRef |
CFCalendarGetIdentifier(CFCalendarRef calendar)
Create a calendar.
|
static CFRange |
CFCalendarGetMaximumRangeOfUnit(CFCalendarRef calendar,
long unit) |
static long |
CFCalendarGetMinimumDaysInFirstWeek(CFCalendarRef calendar) |
static CFRange |
CFCalendarGetMinimumRangeOfUnit(CFCalendarRef calendar,
long unit) |
static long |
CFCalendarGetOrdinalityOfUnit(CFCalendarRef calendar,
long smallerUnit,
long biggerUnit,
double at) |
static CFRange |
CFCalendarGetRangeOfUnit(CFCalendarRef calendar,
long smallerUnit,
long biggerUnit,
double at) |
static byte |
CFCalendarGetTimeRangeOfUnit(CFCalendarRef calendar,
long unit,
double at,
org.moe.natj.general.ptr.DoublePtr startp,
org.moe.natj.general.ptr.DoublePtr tip) |
static long |
CFCalendarGetTypeID() |
static void |
CFCalendarSetFirstWeekday(CFCalendarRef calendar,
long wkdy) |
static void |
CFCalendarSetLocale(CFCalendarRef calendar,
CFLocaleRef locale) |
static void |
CFCalendarSetMinimumDaysInFirstWeek(CFCalendarRef calendar,
long mwd) |
static void |
CFCalendarSetTimeZone(CFCalendarRef calendar,
CFTimeZoneRef tz) |
static void |
CFCharacterSetAddCharactersInRange(CFMutableCharacterSetRef theSet,
CFRange theRange)
[@function] CFCharacterSetAddCharactersInRange
Adds the given range to the charaacter set.
|
static void |
CFCharacterSetAddCharactersInString(CFMutableCharacterSetRef theSet,
CFStringRef theString)
[@function] CFCharacterSetAddCharactersInString
Adds the characters in the given string to the charaacter set.
|
static CFDataRef |
CFCharacterSetCreateBitmapRepresentation(CFAllocatorRef alloc,
CFCharacterSetRef theSet)
[@function] CFCharacterSetCreateBitmapRepresentation
Creates a new immutable data with the bitmap representation from the given character set.
|
static CFCharacterSetRef |
CFCharacterSetCreateCopy(CFAllocatorRef alloc,
CFCharacterSetRef theSet)
[@function] CFCharacterSetCreateCopy
Creates a new character set with the values from the given character set.
|
static CFCharacterSetRef |
CFCharacterSetCreateInvertedSet(CFAllocatorRef alloc,
CFCharacterSetRef theSet)
[@function] CFCharacterSetCreateInvertedSet
Creates a new immutable character set that is the invert of the specified character set.
|
static CFMutableCharacterSetRef |
CFCharacterSetCreateMutable(CFAllocatorRef alloc)
[@function] CFCharacterSetCreateMutable
Creates a new empty mutable character set.
|
static CFMutableCharacterSetRef |
CFCharacterSetCreateMutableCopy(CFAllocatorRef alloc,
CFCharacterSetRef theSet)
[@function] CFCharacterSetCreateMutableCopy
Creates a new mutable character set with the values from the given character set.
|
static CFCharacterSetRef |
CFCharacterSetCreateWithBitmapRepresentation(CFAllocatorRef alloc,
CFDataRef theData)
[@function] CFCharacterSetCreateWithBitmapRepresentation
Creates a new immutable character set with the bitmap representtion in the given data.
|
static CFCharacterSetRef |
CFCharacterSetCreateWithCharactersInRange(CFAllocatorRef alloc,
CFRange theRange)
[@function] CFCharacterSetCreateWithCharactersInRange
Creates a new immutable character set with the values from the given range.
|
static CFCharacterSetRef |
CFCharacterSetCreateWithCharactersInString(CFAllocatorRef alloc,
CFStringRef theString)
[@function] CFCharacterSetCreateWithCharactersInString
Creates a new immutable character set with the values in the given string.
|
static CFCharacterSetRef |
CFCharacterSetGetPredefined(long theSetIdentifier)
[@function] CFCharacterSetGetPredefined
Returns a predefined CFCharacterSet instance.
|
static long |
CFCharacterSetGetTypeID()
[@function] CFCharacterSetGetTypeID
Returns the type identifier of all CFCharacterSet instances.
|
static byte |
CFCharacterSetHasMemberInPlane(CFCharacterSetRef theSet,
long thePlane)
[@function] CFCharacterSetHasMemberInPlane
Reports whether or not the character set contains at least one member character in the specified plane.
|
static void |
CFCharacterSetIntersect(CFMutableCharacterSetRef theSet,
CFCharacterSetRef theOtherSet)
[@function] CFCharacterSetIntersect
Forms the intersection with the given character set.
|
static void |
CFCharacterSetInvert(CFMutableCharacterSetRef theSet)
[@function] CFCharacterSetInvert
Inverts the content of the given character set.
|
static byte |
CFCharacterSetIsCharacterMember(CFCharacterSetRef theSet,
char theChar)
[@function] CFCharacterSetIsCharacterMember
Reports whether or not the Unicode character is in the character set.
|
static byte |
CFCharacterSetIsLongCharacterMember(CFCharacterSetRef theSet,
int theChar)
[@function] CFCharacterSetIsLongCharacterMember
Reports whether or not the UTF-32 character is in the character set.
|
static byte |
CFCharacterSetIsSupersetOfSet(CFCharacterSetRef theSet,
CFCharacterSetRef theOtherset)
[@function] CFCharacterSetIsSupersetOfSet
Reports whether or not the character set is a superset of the character set specified as the second parameter.
|
static void |
CFCharacterSetRemoveCharactersInRange(CFMutableCharacterSetRef theSet,
CFRange theRange)
[@function] CFCharacterSetRemoveCharactersInRange
Removes the given range from the charaacter set.
|
static void |
CFCharacterSetRemoveCharactersInString(CFMutableCharacterSetRef theSet,
CFStringRef theString)
[@function] CFCharacterSetRemoveCharactersInString
Removes the characters in the given string from the charaacter set.
|
static void |
CFCharacterSetUnion(CFMutableCharacterSetRef theSet,
CFCharacterSetRef theOtherSet)
[@function] CFCharacterSetUnion
Forms the union with the given character set.
|
static CFSwappedFloat64 |
CFConvertDoubleHostToSwapped(double arg) |
static double |
CFConvertDoubleSwappedToHost(CFSwappedFloat64 arg) |
static CFSwappedFloat32 |
CFConvertFloat32HostToSwapped(float arg) |
static float |
CFConvertFloat32SwappedToHost(CFSwappedFloat32 arg) |
static CFSwappedFloat64 |
CFConvertFloat64HostToSwapped(double arg) |
static double |
CFConvertFloat64SwappedToHost(CFSwappedFloat64 arg) |
static CFSwappedFloat32 |
CFConvertFloatHostToSwapped(float arg) |
static float |
CFConvertFloatSwappedToHost(CFSwappedFloat32 arg) |
static CFStringRef |
CFCopyDescription(org.moe.natj.general.ptr.ConstVoidPtr cf) |
static CFURLRef |
CFCopyHomeDirectoryURL() |
static CFStringRef |
CFCopyTypeIDDescription(long type_id) |
static void |
CFDataAppendBytes(CFMutableDataRef theData,
java.lang.String bytes,
long length) |
static CFDataRef |
CFDataCreate(CFAllocatorRef allocator,
java.lang.String bytes,
long length) |
static CFDataRef |
CFDataCreateCopy(CFAllocatorRef allocator,
CFDataRef theData)
Pass kCFAllocatorNull as bytesDeallocator to assure the bytes aren't freed
|
static CFMutableDataRef |
CFDataCreateMutable(CFAllocatorRef allocator,
long capacity) |
static CFMutableDataRef |
CFDataCreateMutableCopy(CFAllocatorRef allocator,
long capacity,
CFDataRef theData) |
static CFDataRef |
CFDataCreateWithBytesNoCopy(CFAllocatorRef allocator,
java.lang.String bytes,
long length,
CFAllocatorRef bytesDeallocator) |
static void |
CFDataDeleteBytes(CFMutableDataRef theData,
CFRange range) |
static CFRange |
CFDataFind(CFDataRef theData,
CFDataRef dataToFind,
CFRange searchRange,
long compareOptions) |
static java.lang.String |
CFDataGetBytePtr(CFDataRef theData) |
static void |
CFDataGetBytes(CFDataRef theData,
CFRange range,
org.moe.natj.general.ptr.BytePtr buffer) |
static long |
CFDataGetLength(CFDataRef theData) |
static org.moe.natj.general.ptr.BytePtr |
CFDataGetMutableBytePtr(CFMutableDataRef theData) |
static long |
CFDataGetTypeID() |
static void |
CFDataIncreaseLength(CFMutableDataRef theData,
long extraLength) |
static void |
CFDataReplaceBytes(CFMutableDataRef theData,
CFRange range,
java.lang.String newBytes,
long newLength) |
static void |
CFDataSetLength(CFMutableDataRef theData,
long length) |
static long |
CFDateCompare(CFDateRef theDate,
CFDateRef otherDate,
org.moe.natj.general.ptr.VoidPtr context) |
static CFDateRef |
CFDateCreate(CFAllocatorRef allocator,
double at) |
static org.moe.natj.general.ptr.ConstVoidPtr |
CFDateFormatterCopyProperty(CFDateFormatterRef formatter,
CFStringRef key) |
static CFDateFormatterRef |
CFDateFormatterCreate(CFAllocatorRef allocator,
CFLocaleRef locale,
long dateStyle,
long timeStyle) |
static CFStringRef |
CFDateFormatterCreateDateFormatFromTemplate(CFAllocatorRef allocator,
CFStringRef tmplate,
long options,
CFLocaleRef locale)
CFDateFormatters are not thread-safe.
|
static CFDateRef |
CFDateFormatterCreateDateFromString(CFAllocatorRef allocator,
CFDateFormatterRef formatter,
CFStringRef string,
CFRange rangep)
Create a string representation of the given date or CFAbsoluteTime
using the current state of the date formatter.
|
static CFDateFormatterRef |
CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator,
long formatOptions) |
static CFStringRef |
CFDateFormatterCreateStringWithAbsoluteTime(CFAllocatorRef allocator,
CFDateFormatterRef formatter,
double at) |
static CFStringRef |
CFDateFormatterCreateStringWithDate(CFAllocatorRef allocator,
CFDateFormatterRef formatter,
CFDateRef date)
Set the format description string of the date formatter.
|
static byte |
CFDateFormatterGetAbsoluteTimeFromString(CFDateFormatterRef formatter,
CFStringRef string,
CFRange rangep,
org.moe.natj.general.ptr.DoublePtr atp) |
static long |
CFDateFormatterGetDateStyle(CFDateFormatterRef formatter) |
static CFStringRef |
CFDateFormatterGetFormat(CFDateFormatterRef formatter)
Get the properties with which the date formatter was created.
|
static CFLocaleRef |
CFDateFormatterGetLocale(CFDateFormatterRef formatter)
Returns a CFDateFormatter, localized to the given locale, which
will format dates to the given date and time styles.
|
static long |
CFDateFormatterGetTimeStyle(CFDateFormatterRef formatter) |
static long |
CFDateFormatterGetTypeID()
no options defined, pass 0 for now
|
static void |
CFDateFormatterSetFormat(CFDateFormatterRef formatter,
CFStringRef formatString) |
static void |
CFDateFormatterSetProperty(CFDateFormatterRef formatter,
CFStringRef key,
org.moe.natj.general.ptr.ConstVoidPtr value)
Parse a string representation of a date using the current state
of the date formatter.
|
static double |
CFDateGetAbsoluteTime(CFDateRef theDate) |
static double |
CFDateGetTimeIntervalSinceDate(CFDateRef theDate,
CFDateRef otherDate) |
static long |
CFDateGetTypeID() |
static void |
CFDictionaryAddValue(CFMutableDictionaryRef theDict,
org.moe.natj.general.ptr.ConstVoidPtr key,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFDictionaryAddValue
Adds the key-value pair to the dictionary if no such key already exists.
|
static void |
CFDictionaryApplyFunction(CFDictionaryRef theDict,
CoreFoundation.Function_CFDictionaryApplyFunction applier,
org.moe.natj.general.ptr.VoidPtr context)
[@function] CFDictionaryApplyFunction
Calls a function once for each value in the dictionary.
|
static byte |
CFDictionaryContainsKey(CFDictionaryRef theDict,
org.moe.natj.general.ptr.ConstVoidPtr key)
[@function] CFDictionaryContainsKey
Reports whether or not the key is in the dictionary.
|
static byte |
CFDictionaryContainsValue(CFDictionaryRef theDict,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFDictionaryContainsValue
Reports whether or not the value is in the dictionary.
|
static CFDictionaryRef |
CFDictionaryCreate(CFAllocatorRef allocator,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> keys,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values,
long numValues,
CFDictionaryKeyCallBacks keyCallBacks,
CFDictionaryValueCallBacks valueCallBacks)
[@function] CFDictionaryCreate
Creates a new immutable dictionary with the given values.
|
static CFDictionaryRef |
CFDictionaryCreateCopy(CFAllocatorRef allocator,
CFDictionaryRef theDict)
[@function] CFDictionaryCreateCopy
Creates a new immutable dictionary with the key-value pairs from
the given dictionary.
|
static CFMutableDictionaryRef |
CFDictionaryCreateMutable(CFAllocatorRef allocator,
long capacity,
CFDictionaryKeyCallBacks keyCallBacks,
CFDictionaryValueCallBacks valueCallBacks)
[@function] CFDictionaryCreateMutable
Creates a new mutable dictionary.
|
static CFMutableDictionaryRef |
CFDictionaryCreateMutableCopy(CFAllocatorRef allocator,
long capacity,
CFDictionaryRef theDict)
[@function] CFDictionaryCreateMutableCopy
Creates a new mutable dictionary with the key-value pairs from
the given dictionary.
|
static long |
CFDictionaryGetCount(CFDictionaryRef theDict)
[@function] CFDictionaryGetCount
Returns the number of values currently in the dictionary.
|
static long |
CFDictionaryGetCountOfKey(CFDictionaryRef theDict,
org.moe.natj.general.ptr.ConstVoidPtr key)
[@function] CFDictionaryGetCountOfKey
Counts the number of times the given key occurs in the dictionary.
|
static long |
CFDictionaryGetCountOfValue(CFDictionaryRef theDict,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFDictionaryGetCountOfValue
Counts the number of times the given value occurs in the dictionary.
|
static void |
CFDictionaryGetKeysAndValues(CFDictionaryRef theDict,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> keys,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values)
[@function] CFDictionaryGetKeysAndValues
Fills the two buffers with the keys and values from the dictionary.
|
static long |
CFDictionaryGetTypeID()
[@function] CFDictionaryGetTypeID
Returns the type identifier of all CFDictionary instances.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFDictionaryGetValue(CFDictionaryRef theDict,
org.moe.natj.general.ptr.ConstVoidPtr key)
[@function] CFDictionaryGetValue
Retrieves the value associated with the given key.
|
static byte |
CFDictionaryGetValueIfPresent(CFDictionaryRef theDict,
org.moe.natj.general.ptr.ConstVoidPtr key,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> value)
[@function] CFDictionaryGetValueIfPresent
Retrieves the value associated with the given key.
|
static void |
CFDictionaryRemoveAllValues(CFMutableDictionaryRef theDict)
[@function] CFDictionaryRemoveAllValues
Removes all the values from the dictionary, making it empty.
|
static void |
CFDictionaryRemoveValue(CFMutableDictionaryRef theDict,
org.moe.natj.general.ptr.ConstVoidPtr key)
[@function] CFDictionaryRemoveValue
Removes the value of the key from the dictionary.
|
static void |
CFDictionaryReplaceValue(CFMutableDictionaryRef theDict,
org.moe.natj.general.ptr.ConstVoidPtr key,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFDictionaryReplaceValue
Replaces the value of the key in the dictionary.
|
static void |
CFDictionarySetValue(CFMutableDictionaryRef theDict,
org.moe.natj.general.ptr.ConstVoidPtr key,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFDictionarySetValue
Sets the value of the key in the dictionary.
|
static byte |
CFEqual(org.moe.natj.general.ptr.ConstVoidPtr cf1,
org.moe.natj.general.ptr.ConstVoidPtr cf2) |
static CFStringRef |
CFErrorCopyDescription(CFErrorRef err)
[@function] CFErrorCopyDescription
|
static CFStringRef |
CFErrorCopyFailureReason(CFErrorRef err)
[@function] CFErrorCopyFailureReason
|
static CFStringRef |
CFErrorCopyRecoverySuggestion(CFErrorRef err)
[@function] CFErrorCopyRecoverySuggestion
|
static CFDictionaryRef |
CFErrorCopyUserInfo(CFErrorRef err)
[@function] CFErrorCopyUserInfo
|
static CFErrorRef |
CFErrorCreate(CFAllocatorRef allocator,
CFStringRef domain,
long code,
CFDictionaryRef userInfo)
[@function] CFErrorCreate
|
static CFErrorRef |
CFErrorCreateWithUserInfoKeysAndValues(CFAllocatorRef allocator,
CFStringRef domain,
long code,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.ConstVoidPtr> userInfoKeys,
org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.ConstVoidPtr> userInfoValues,
long numUserInfoValues)
[@function] CFErrorCreateWithUserInfoKeysAndValues
|
static long |
CFErrorGetCode(CFErrorRef err)
[@function] CFErrorGetCode
|
static CFStringRef |
CFErrorGetDomain(CFErrorRef err)
[@function] CFErrorGetDomain
|
static long |
CFErrorGetTypeID()
[@function] CFErrorGetTypeID
Returns the type identifier of all CFError instances.
|
static CFFileDescriptorRef |
CFFileDescriptorCreate(CFAllocatorRef allocator,
int fd,
byte closeOnInvalidate,
CoreFoundation.Function_CFFileDescriptorCreate callout,
CFFileDescriptorContext context) |
static CFRunLoopSourceRef |
CFFileDescriptorCreateRunLoopSource(CFAllocatorRef allocator,
CFFileDescriptorRef f,
long order) |
static void |
CFFileDescriptorDisableCallBacks(CFFileDescriptorRef f,
long callBackTypes) |
static void |
CFFileDescriptorEnableCallBacks(CFFileDescriptorRef f,
long callBackTypes) |
static void |
CFFileDescriptorGetContext(CFFileDescriptorRef f,
CFFileDescriptorContext context) |
static int |
CFFileDescriptorGetNativeDescriptor(CFFileDescriptorRef f) |
static long |
CFFileDescriptorGetTypeID() |
static void |
CFFileDescriptorInvalidate(CFFileDescriptorRef f) |
static byte |
CFFileDescriptorIsValid(CFFileDescriptorRef f) |
static byte |
CFFileSecurityClearProperties(CFFileSecurityRef fileSec,
long clearPropertyMask)
This routine clears file security properties in the CFFileSecurity object.
|
static byte |
CFFileSecurityCopyAccessControlList(CFFileSecurityRef fileSec,
org.moe.natj.general.ptr.Ptr<acl_t> accessControlList)
This routine copies the access control list (acl_t) associated with an
CFFileSecurity object.
|
static byte |
CFFileSecurityCopyGroupUUID(CFFileSecurityRef fileSec,
org.moe.natj.general.ptr.Ptr<CFUUIDRef> groupUUID)
This routine copies the group UUID associated with an CFFileSecurity object.
|
static byte |
CFFileSecurityCopyOwnerUUID(CFFileSecurityRef fileSec,
org.moe.natj.general.ptr.Ptr<CFUUIDRef> ownerUUID)
This routine copies the owner UUID associated with an CFFileSecurity object.
|
static CFFileSecurityRef |
CFFileSecurityCreate(CFAllocatorRef allocator)
Creates an CFFileSecurity object.
|
static CFFileSecurityRef |
CFFileSecurityCreateCopy(CFAllocatorRef allocator,
CFFileSecurityRef fileSec)
Creates a copy of a CFFileSecurity object.
|
static byte |
CFFileSecurityGetGroup(CFFileSecurityRef fileSec,
org.moe.natj.general.ptr.IntPtr group)
This routine gets the group gid_t associated with an CFFileSecurity object.
|
static byte |
CFFileSecurityGetMode(CFFileSecurityRef fileSec,
org.moe.natj.general.ptr.CharPtr mode)
This routine gets the mode_t associated with an CFFileSecurity object.
|
static byte |
CFFileSecurityGetOwner(CFFileSecurityRef fileSec,
org.moe.natj.general.ptr.IntPtr owner)
This routine gets the owner uid_t associated with an CFFileSecurity object.
|
static long |
CFFileSecurityGetTypeID()
Returns the type identifier for the CFFileSecurity opaque type.
|
static byte |
CFFileSecuritySetAccessControlList(CFFileSecurityRef fileSec,
acl_t accessControlList)
This routine will set the access control list (acl_t) associated with an
CFFileSecurityRef.
|
static byte |
CFFileSecuritySetGroup(CFFileSecurityRef fileSec,
int group)
This routine sets the group gid_t associated with an CFFileSecurity object.
|
static byte |
CFFileSecuritySetGroupUUID(CFFileSecurityRef fileSec,
CFUUIDRef groupUUID)
This routine sets the group UUID associated with an CFFileSecurity object.
|
static byte |
CFFileSecuritySetMode(CFFileSecurityRef fileSec,
char mode)
This routine sets the mode_t associated with an CFFileSecurity object.
|
static byte |
CFFileSecuritySetOwner(CFFileSecurityRef fileSec,
int owner)
This routine sets the owner uid_t associated with an CFFileSecurity object.
|
static byte |
CFFileSecuritySetOwnerUUID(CFFileSecurityRef fileSec,
CFUUIDRef ownerUUID)
This routine sets the owner UUID associated with an CFFileSecurity object.
|
static CFAllocatorRef |
CFGetAllocator(org.moe.natj.general.ptr.ConstVoidPtr cf) |
static long |
CFGetRetainCount(org.moe.natj.general.ptr.ConstVoidPtr cf) |
static long |
CFGetTypeID(org.moe.natj.general.ptr.ConstVoidPtr cf)
Polymorphic CF functions
|
static double |
CFGregorianDateGetAbsoluteTime(CFGregorianDate gdate,
CFTimeZoneRef tz)
Deprecated.
|
static byte |
CFGregorianDateIsValid(CFGregorianDate gdate,
long unitFlags)
Deprecated.
|
static long |
CFHash(org.moe.natj.general.ptr.ConstVoidPtr cf) |
static CFArrayRef |
CFLocaleCopyAvailableLocaleIdentifiers()
Returns the logical "user" locale for the current user.
|
static CFArrayRef |
CFLocaleCopyCommonISOCurrencyCodes()
Returns an array of CFStrings that represents all known legal ISO
currency codes.
|
static CFLocaleRef |
CFLocaleCopyCurrent()
Returns the "root", canonical locale.
|
static CFStringRef |
CFLocaleCopyDisplayNameForPropertyValue(CFLocaleRef displayLocale,
CFStringRef key,
CFStringRef value)
Returns the value for the given key.
|
static CFArrayRef |
CFLocaleCopyISOCountryCodes()
Returns an array of CFStrings that represents all known legal ISO
language codes.
|
static CFArrayRef |
CFLocaleCopyISOCurrencyCodes()
Returns an array of CFStrings that represents all known legal ISO
country codes.
|
static CFArrayRef |
CFLocaleCopyISOLanguageCodes()
Returns an array of CFStrings that represents all locales for
which locale data is available.
|
static CFArrayRef |
CFLocaleCopyPreferredLanguages()
Returns an array of CFStrings that represents ISO currency codes for
currencies in common use.
|
static CFLocaleRef |
CFLocaleCreate(CFAllocatorRef allocator,
CFStringRef localeIdentifier)
Reverses the actions of CFLocaleCreateDictionaryFromLocaleIdentifier,
creating a single string from the data in the dictionary.
|
static CFStringRef |
CFLocaleCreateCanonicalLanguageIdentifierFromString(CFAllocatorRef allocator,
CFStringRef localeIdentifier)
Returns the array of canonicalized CFString locale IDs that the user prefers.
|
static CFStringRef |
CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes(CFAllocatorRef allocator,
short lcode,
short rcode)
Map an arbitrary locale identification string (something close at
least) to the canonical identifier.
|
static CFStringRef |
CFLocaleCreateCanonicalLocaleIdentifierFromString(CFAllocatorRef allocator,
CFStringRef localeIdentifier)
Map an arbitrary language identification string (something close at
least) to a canonical language identifier.
|
static CFDictionaryRef |
CFLocaleCreateComponentsFromLocaleIdentifier(CFAllocatorRef allocator,
CFStringRef localeID) |
static CFLocaleRef |
CFLocaleCreateCopy(CFAllocatorRef allocator,
CFLocaleRef locale)
Returns a CFLocaleRef for the locale named by the "arbitrary" locale identifier.
|
static CFStringRef |
CFLocaleCreateLocaleIdentifierFromComponents(CFAllocatorRef allocator,
CFDictionaryRef dictionary)
Parses a locale ID consisting of language, script, country, variant,
and keyword/value pairs into a dictionary.
|
static CFStringRef |
CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode(CFAllocatorRef allocator,
int lcid)
Map a Mac OS LangCode and RegionCode to the canonical locale identifier.
|
static CFStringRef |
CFLocaleGetIdentifier(CFLocaleRef locale)
Having gotten a CFLocale from somebody, code should make a copy
if it is going to use it for several operations
or hold onto it.
|
static long |
CFLocaleGetLanguageCharacterDirection(CFStringRef isoLangCode) |
static long |
CFLocaleGetLanguageLineDirection(CFStringRef isoLangCode) |
static CFLocaleRef |
CFLocaleGetSystem() |
static long |
CFLocaleGetTypeID() |
static org.moe.natj.general.ptr.ConstVoidPtr |
CFLocaleGetValue(CFLocaleRef locale,
CFStringRef key)
Returns the locale's identifier.
|
static int |
CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier(CFStringRef localeIdentifier)
Map a Windows LCID to the canonical locale identifier.
|
static CFMachPortRef |
CFMachPortCreate(CFAllocatorRef allocator,
CoreFoundation.Function_CFMachPortCreate callout,
CFMachPortContext context,
org.moe.natj.general.ptr.BytePtr shouldFreeInfo) |
static CFRunLoopSourceRef |
CFMachPortCreateRunLoopSource(CFAllocatorRef allocator,
CFMachPortRef port,
long order) |
static CFMachPortRef |
CFMachPortCreateWithPort(CFAllocatorRef allocator,
int portNum,
CoreFoundation.Function_CFMachPortCreateWithPort callout,
CFMachPortContext context,
org.moe.natj.general.ptr.BytePtr shouldFreeInfo) |
static void |
CFMachPortGetContext(CFMachPortRef port,
CFMachPortContext context) |
static CoreFoundation.Function_CFMachPortGetInvalidationCallBack_ret |
CFMachPortGetInvalidationCallBack(CFMachPortRef port) |
static int |
CFMachPortGetPort(CFMachPortRef port) |
static long |
CFMachPortGetTypeID() |
static void |
CFMachPortInvalidate(CFMachPortRef port) |
static byte |
CFMachPortIsValid(CFMachPortRef port) |
static void |
CFMachPortSetInvalidationCallBack(CFMachPortRef port,
CoreFoundation.Function_CFMachPortSetInvalidationCallBack callout) |
static CFMessagePortRef |
CFMessagePortCreateLocal(CFAllocatorRef allocator,
CFStringRef name,
CoreFoundation.Function_CFMessagePortCreateLocal callout,
CFMessagePortContext context,
org.moe.natj.general.ptr.BytePtr shouldFreeInfo) |
static CFMessagePortRef |
CFMessagePortCreateRemote(CFAllocatorRef allocator,
CFStringRef name) |
static CFRunLoopSourceRef |
CFMessagePortCreateRunLoopSource(CFAllocatorRef allocator,
CFMessagePortRef local,
long order) |
static void |
CFMessagePortGetContext(CFMessagePortRef ms,
CFMessagePortContext context) |
static CoreFoundation.Function_CFMessagePortGetInvalidationCallBack_ret |
CFMessagePortGetInvalidationCallBack(CFMessagePortRef ms) |
static CFStringRef |
CFMessagePortGetName(CFMessagePortRef ms) |
static long |
CFMessagePortGetTypeID() |
static void |
CFMessagePortInvalidate(CFMessagePortRef ms) |
static byte |
CFMessagePortIsRemote(CFMessagePortRef ms) |
static byte |
CFMessagePortIsValid(CFMessagePortRef ms) |
static int |
CFMessagePortSendRequest(CFMessagePortRef remote,
int msgid,
CFDataRef data,
double sendTimeout,
double rcvTimeout,
CFStringRef replyMode,
org.moe.natj.general.ptr.Ptr<CFDataRef> returnData)
NULL replyMode argument means no return value expected, don't wait for it
|
static void |
CFMessagePortSetDispatchQueue(CFMessagePortRef ms,
NSObject queue) |
static void |
CFMessagePortSetInvalidationCallBack(CFMessagePortRef ms,
CoreFoundation.Function_CFMessagePortSetInvalidationCallBack callout) |
static byte |
CFMessagePortSetName(CFMessagePortRef ms,
CFStringRef newName) |
static void |
CFNotificationCenterAddObserver(CFNotificationCenterRef center,
org.moe.natj.general.ptr.ConstVoidPtr observer,
CoreFoundation.Function_CFNotificationCenterAddObserver callBack,
CFStringRef name,
org.moe.natj.general.ptr.ConstVoidPtr object,
long suspensionBehavior)
The Darwin Notify Center is based on the
|
static CFNotificationCenterRef |
CFNotificationCenterGetDarwinNotifyCenter() |
static CFNotificationCenterRef |
CFNotificationCenterGetLocalCenter() |
static long |
CFNotificationCenterGetTypeID() |
static void |
CFNotificationCenterPostNotification(CFNotificationCenterRef center,
CFStringRef name,
org.moe.natj.general.ptr.ConstVoidPtr object,
CFDictionaryRef userInfo,
byte deliverImmediately) |
static void |
CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterRef center,
CFStringRef name,
org.moe.natj.general.ptr.ConstVoidPtr object,
CFDictionaryRef userInfo,
long options) |
static void |
CFNotificationCenterRemoveEveryObserver(CFNotificationCenterRef center,
org.moe.natj.general.ptr.ConstVoidPtr observer) |
static void |
CFNotificationCenterRemoveObserver(CFNotificationCenterRef center,
org.moe.natj.general.ptr.ConstVoidPtr observer,
CFStringRef name,
org.moe.natj.general.ptr.ConstVoidPtr object) |
static long |
CFNullGetTypeID() |
static long |
CFNumberCompare(CFNumberRef number,
CFNumberRef otherNumber,
org.moe.natj.general.ptr.VoidPtr context)
Compares the two CFNumber instances.
|
static CFNumberRef |
CFNumberCreate(CFAllocatorRef allocator,
long theType,
org.moe.natj.general.ptr.ConstVoidPtr valuePtr)
Creates a CFNumber with the given value.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFNumberFormatterCopyProperty(CFNumberFormatterRef formatter,
CFStringRef key) |
static CFNumberFormatterRef |
CFNumberFormatterCreate(CFAllocatorRef allocator,
CFLocaleRef locale,
long style) |
static CFNumberRef |
CFNumberFormatterCreateNumberFromString(CFAllocatorRef allocator,
CFNumberFormatterRef formatter,
CFStringRef string,
CFRange rangep,
long options) |
static CFStringRef |
CFNumberFormatterCreateStringWithNumber(CFAllocatorRef allocator,
CFNumberFormatterRef formatter,
CFNumberRef number)
Set the format description string of the number formatter.
|
static CFStringRef |
CFNumberFormatterCreateStringWithValue(CFAllocatorRef allocator,
CFNumberFormatterRef formatter,
long numberType,
org.moe.natj.general.ptr.ConstVoidPtr valuePtr) |
static byte |
CFNumberFormatterGetDecimalInfoForCurrencyCode(CFStringRef currencyCode,
org.moe.natj.general.ptr.IntPtr defaultFractionDigits,
org.moe.natj.general.ptr.DoublePtr roundingIncrement) |
static CFStringRef |
CFNumberFormatterGetFormat(CFNumberFormatterRef formatter)
Get the properties with which the number formatter was created.
|
static CFLocaleRef |
CFNumberFormatterGetLocale(CFNumberFormatterRef formatter)
Returns a CFNumberFormatter, localized to the given locale, which
will format numbers to the given style.
|
static long |
CFNumberFormatterGetStyle(CFNumberFormatterRef formatter) |
static long |
CFNumberFormatterGetTypeID()
CFNumberFormatters are not thread-safe.
|
static byte |
CFNumberFormatterGetValueFromString(CFNumberFormatterRef formatter,
CFStringRef string,
CFRange rangep,
long numberType,
org.moe.natj.general.ptr.VoidPtr valuePtr) |
static void |
CFNumberFormatterSetFormat(CFNumberFormatterRef formatter,
CFStringRef formatString) |
static void |
CFNumberFormatterSetProperty(CFNumberFormatterRef formatter,
CFStringRef key,
org.moe.natj.general.ptr.ConstVoidPtr value)
Parse a string representation of a number using the current state
of the number formatter.
|
static long |
CFNumberGetByteSize(CFNumberRef number)
Returns the size in bytes of the type of the number.
|
static long |
CFNumberGetType(CFNumberRef number)
Returns the storage format of the CFNumber's value.
|
static long |
CFNumberGetTypeID() |
static byte |
CFNumberGetValue(CFNumberRef number,
long theType,
org.moe.natj.general.ptr.VoidPtr valuePtr)
Copies the CFNumber's value into the space pointed to by
valuePtr, as the specified type.
|
static byte |
CFNumberIsFloatType(CFNumberRef number)
Returns true if the type of the CFNumber's value is one of
the defined floating point types.
|
static void |
CFPlugInAddInstanceForFactory(CFUUIDRef factoryID)
================= Registering instances =================
When a new instance of a type is created, the instance is responsible for registering itself with the factory that created it and unregistering when it deallocates.
|
static CFPlugInRef |
CFPlugInCreate(CFAllocatorRef allocator,
CFURLRef plugInURL) |
static CFArrayRef |
CFPlugInFindFactoriesForPlugInType(CFUUIDRef typeUUID)
This function finds all the factories from any plugin for the given type.
|
static CFArrayRef |
CFPlugInFindFactoriesForPlugInTypeInPlugIn(CFUUIDRef typeUUID,
CFPlugInRef plugIn)
This function restricts the result to factories from the given plug-in that can create the given type.
|
static CFBundleRef |
CFPlugInGetBundle(CFPlugInRef plugIn)
Might return an existing instance with the ref-count bumped.
|
static long |
CFPlugInGetTypeID()
================= Creating PlugIns =================
|
static org.moe.natj.general.ptr.VoidPtr |
CFPlugInInstanceCreate(CFAllocatorRef allocator,
CFUUIDRef factoryUUID,
CFUUIDRef typeUUID)
This function returns the IUnknown interface for the new instance.
|
static CFPlugInInstanceRef |
CFPlugInInstanceCreateWithInstanceDataSize(CFAllocatorRef allocator,
long instanceDataSize,
CoreFoundation.Function_CFPlugInInstanceCreateWithInstanceDataSize_2 deallocateInstanceFunction,
CFStringRef factoryName,
CoreFoundation.Function_CFPlugInInstanceCreateWithInstanceDataSize_4 getInterfaceFunction) |
static CFStringRef |
CFPlugInInstanceGetFactoryName(CFPlugInInstanceRef instance)
This function returns a retained object on 10.8 or later.
|
static org.moe.natj.general.ptr.VoidPtr |
CFPlugInInstanceGetInstanceData(CFPlugInInstanceRef instance) |
static byte |
CFPlugInInstanceGetInterfaceFunctionTable(CFPlugInInstanceRef instance,
CFStringRef interfaceName,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> ftbl) |
static long |
CFPlugInInstanceGetTypeID() |
static byte |
CFPlugInIsLoadOnDemand(CFPlugInRef plugIn) |
static byte |
CFPlugInRegisterFactoryFunction(CFUUIDRef factoryUUID,
CoreFoundation.Function_CFPlugInRegisterFactoryFunction func)
================= Registering factories and types =================
For plugIn writers who must dynamically register things.
|
static byte |
CFPlugInRegisterFactoryFunctionByName(CFUUIDRef factoryUUID,
CFPlugInRef plugIn,
CFStringRef functionName) |
static byte |
CFPlugInRegisterPlugInType(CFUUIDRef factoryUUID,
CFUUIDRef typeUUID) |
static void |
CFPlugInRemoveInstanceForFactory(CFUUIDRef factoryID) |
static void |
CFPlugInSetLoadOnDemand(CFPlugInRef plugIn,
byte flag)
================= Controlling load on demand =================
For plugIns.
|
static byte |
CFPlugInUnregisterFactory(CFUUIDRef factoryUUID) |
static byte |
CFPlugInUnregisterPlugInType(CFUUIDRef factoryUUID,
CFUUIDRef typeUUID) |
static void |
CFPreferencesAddSuitePreferencesToApp(CFStringRef applicationID,
CFStringRef suiteID)
Adds the preferences for the given suite to the app preferences for
the specified application.
|
static byte |
CFPreferencesAppSynchronize(CFStringRef applicationID)
Writes all changes in all sources of application defaults.
|
static byte |
CFPreferencesAppValueIsForced(CFStringRef key,
CFStringRef applicationID)
Function to determine whether or not a given key has been imposed on the
user - In cases where machines and/or users are under some kind of management,
callers should use this function to determine whether or not to disable UI elements
corresponding to those preference keys.
|
static CFArrayRef |
CFPreferencesCopyApplicationList(CFStringRef userName,
CFStringRef hostName)
Deprecated.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFPreferencesCopyAppValue(CFStringRef key,
CFStringRef applicationID)
Searches the various sources of application defaults to find the
value for the given key.
|
static CFArrayRef |
CFPreferencesCopyKeyList(CFStringRef applicationID,
CFStringRef userName,
CFStringRef hostName)
Constructs and returns the list of all keys set in the given
location, or NULL if no keys are set.
|
static CFDictionaryRef |
CFPreferencesCopyMultiple(CFArrayRef keysToFetch,
CFStringRef applicationID,
CFStringRef userName,
CFStringRef hostName)
Convenience to fetch multiple keys at once.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFPreferencesCopyValue(CFStringRef key,
CFStringRef applicationID,
CFStringRef userName,
CFStringRef hostName)
The primitive get mechanism; all arguments must be non-NULL
(use the constants above for common values).
|
static byte |
CFPreferencesGetAppBooleanValue(CFStringRef key,
CFStringRef applicationID,
org.moe.natj.general.ptr.BytePtr keyExistsAndHasValidFormat)
Convenience to interpret a preferences value as a boolean directly.
|
static long |
CFPreferencesGetAppIntegerValue(CFStringRef key,
CFStringRef applicationID,
org.moe.natj.general.ptr.BytePtr keyExistsAndHasValidFormat)
Convenience to interpret a preferences value as an integer directly.
|
static void |
CFPreferencesRemoveSuitePreferencesFromApp(CFStringRef applicationID,
CFStringRef suiteID) |
static void |
CFPreferencesSetAppValue(CFStringRef key,
org.moe.natj.general.ptr.ConstVoidPtr value,
CFStringRef applicationID)
Sets the given value for the given key in the "normal" place for
application preferences.
|
static void |
CFPreferencesSetMultiple(CFDictionaryRef keysToSet,
CFArrayRef keysToRemove,
CFStringRef applicationID,
CFStringRef userName,
CFStringRef hostName)
Convenience to set multiple values at once.
|
static void |
CFPreferencesSetValue(CFStringRef key,
org.moe.natj.general.ptr.ConstVoidPtr value,
CFStringRef applicationID,
CFStringRef userName,
CFStringRef hostName)
The primitive set function; all arguments except value must be
non-NULL.
|
static byte |
CFPreferencesSynchronize(CFStringRef applicationID,
CFStringRef userName,
CFStringRef hostName) |
static CFDataRef |
CFPropertyListCreateData(CFAllocatorRef allocator,
org.moe.natj.general.ptr.ConstVoidPtr propertyList,
long format,
long options,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
Create a CFData with the bytes of a serialized property list.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFPropertyListCreateDeepCopy(CFAllocatorRef allocator,
org.moe.natj.general.ptr.ConstVoidPtr propertyList,
long mutabilityOption)
Recursively creates a copy of the given property list (so nested arrays
and dictionaries are copied as well as the top-most container).
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFPropertyListCreateFromStream(CFAllocatorRef allocator,
CFReadStreamRef stream,
long streamLength,
long mutabilityOption,
org.moe.natj.general.ptr.NIntPtr format,
org.moe.natj.general.ptr.Ptr<CFStringRef> errorString)
Deprecated.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFPropertyListCreateFromXMLData(CFAllocatorRef allocator,
CFDataRef xmlData,
long mutabilityOption,
org.moe.natj.general.ptr.Ptr<CFStringRef> errorString)
Deprecated.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFPropertyListCreateWithData(CFAllocatorRef allocator,
CFDataRef data,
long options,
org.moe.natj.general.ptr.NIntPtr format,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
Create a property list with a CFData input.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFPropertyListCreateWithStream(CFAllocatorRef allocator,
CFReadStreamRef stream,
long streamLength,
long options,
org.moe.natj.general.ptr.NIntPtr format,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
Create and return a property list with a CFReadStream input.
|
static CFDataRef |
CFPropertyListCreateXMLData(CFAllocatorRef allocator,
org.moe.natj.general.ptr.ConstVoidPtr propertyList)
Deprecated.
|
static byte |
CFPropertyListIsValid(org.moe.natj.general.ptr.ConstVoidPtr plist,
long format)
Returns true if the object graph rooted at plist is a valid property list
graph -- that is, no cycles, containing only plist objects, and dictionary
keys are strings.
|
static long |
CFPropertyListWrite(org.moe.natj.general.ptr.ConstVoidPtr propertyList,
CFWriteStreamRef stream,
long format,
long options,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
Write the bytes of a serialized property list out to a stream.
|
static long |
CFPropertyListWriteToStream(org.moe.natj.general.ptr.ConstVoidPtr propertyList,
CFWriteStreamRef stream,
long format,
org.moe.natj.general.ptr.Ptr<CFStringRef> errorString)
Deprecated.
|
static CFRange |
CFRangeMake(long loc,
long len) |
static void |
CFReadStreamClose(CFReadStreamRef stream)
Terminates the flow of bytes; releases any system resources required by the
stream.
|
static NSObject |
CFReadStreamCopyDispatchQueue(CFReadStreamRef stream)
Returns the previously set dispatch queue with an incremented retain count.
|
static CFErrorRef |
CFReadStreamCopyError(CFReadStreamRef stream)
Returns NULL if no error has occurred; otherwise returns the error.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFReadStreamCopyProperty(CFReadStreamRef stream,
CFStringRef propertyName)
Particular streams can name properties and assign meanings to them; you
access these properties through the following calls.
|
static CFReadStreamRef |
CFReadStreamCreateWithBytesNoCopy(CFAllocatorRef alloc,
java.lang.String bytes,
long length,
CFAllocatorRef bytesDeallocator)
Pass kCFAllocatorNull for bytesDeallocator to prevent CFReadStream from deallocating bytes; otherwise, CFReadStream will deallocate bytes when the stream is destroyed
|
static CFReadStreamRef |
CFReadStreamCreateWithFile(CFAllocatorRef alloc,
CFURLRef fileURL)
File streams
|
static java.lang.String |
CFReadStreamGetBuffer(CFReadStreamRef stream,
long maxBytesToRead,
org.moe.natj.general.ptr.NIntPtr numBytesRead)
Returns a pointer to an internal buffer if possible (setting *numBytesRead
to the length of the returned buffer), otherwise returns NULL; guaranteed
to return in O(1).
|
static CFStreamError |
CFReadStreamGetError(CFReadStreamRef stream) |
static long |
CFReadStreamGetStatus(CFReadStreamRef stream)
Returns the current state of the stream
|
static long |
CFReadStreamGetTypeID() |
static byte |
CFReadStreamHasBytesAvailable(CFReadStreamRef stream)
Whether there is data currently available for reading; returns TRUE if it's
impossible to tell without trying
|
static byte |
CFReadStreamOpen(CFReadStreamRef stream)
Returns success/failure.
|
static long |
CFReadStreamRead(CFReadStreamRef stream,
org.moe.natj.general.ptr.BytePtr buffer,
long bufferLength)
Returns the number of bytes read, or -1 if an error occurs preventing any
bytes from being read, or 0 if the stream's end was encountered.
|
static void |
CFReadStreamScheduleWithRunLoop(CFReadStreamRef stream,
CFRunLoopRef runLoop,
CFStringRef runLoopMode) |
static byte |
CFReadStreamSetClient(CFReadStreamRef stream,
long streamEvents,
CoreFoundation.Function_CFReadStreamSetClient clientCB,
CFStreamClientContext clientContext)
Asynchronous processing - If you wish to neither poll nor block, you may register
a client to hear about interesting events that occur on a stream.
|
static void |
CFReadStreamSetDispatchQueue(CFReadStreamRef stream,
NSObject q)
Specify the dispatch queue upon which the client callbacks will be invoked.
|
static byte |
CFReadStreamSetProperty(CFReadStreamRef stream,
CFStringRef propertyName,
org.moe.natj.general.ptr.ConstVoidPtr propertyValue)
Returns TRUE if the stream recognizes and accepts the given property-value pair;
FALSE otherwise.
|
static void |
CFReadStreamUnscheduleFromRunLoop(CFReadStreamRef stream,
CFRunLoopRef runLoop,
CFStringRef runLoopMode) |
static void |
CFRelease(org.moe.natj.general.ptr.ConstVoidPtr cf) |
static org.moe.natj.general.ptr.ConstVoidPtr |
CFRetain(org.moe.natj.general.ptr.ConstVoidPtr cf) |
static void |
CFRunLoopAddCommonMode(CFRunLoopRef rl,
CFStringRef mode) |
static void |
CFRunLoopAddObserver(CFRunLoopRef rl,
CFRunLoopObserverRef observer,
CFStringRef mode) |
static void |
CFRunLoopAddSource(CFRunLoopRef rl,
CFRunLoopSourceRef source,
CFStringRef mode) |
static void |
CFRunLoopAddTimer(CFRunLoopRef rl,
CFRunLoopTimerRef timer,
CFStringRef mode) |
static byte |
CFRunLoopContainsObserver(CFRunLoopRef rl,
CFRunLoopObserverRef observer,
CFStringRef mode) |
static byte |
CFRunLoopContainsSource(CFRunLoopRef rl,
CFRunLoopSourceRef source,
CFStringRef mode) |
static byte |
CFRunLoopContainsTimer(CFRunLoopRef rl,
CFRunLoopTimerRef timer,
CFStringRef mode) |
static CFArrayRef |
CFRunLoopCopyAllModes(CFRunLoopRef rl) |
static CFStringRef |
CFRunLoopCopyCurrentMode(CFRunLoopRef rl) |
static CFRunLoopRef |
CFRunLoopGetCurrent() |
static CFRunLoopRef |
CFRunLoopGetMain() |
static double |
CFRunLoopGetNextTimerFireDate(CFRunLoopRef rl,
CFStringRef mode) |
static long |
CFRunLoopGetTypeID() |
static byte |
CFRunLoopIsWaiting(CFRunLoopRef rl) |
static CFRunLoopObserverRef |
CFRunLoopObserverCreate(CFAllocatorRef allocator,
long activities,
byte repeats,
long order,
CoreFoundation.Function_CFRunLoopObserverCreate callout,
CFRunLoopObserverContext context) |
static CFRunLoopObserverRef |
CFRunLoopObserverCreateWithHandler(CFAllocatorRef allocator,
long activities,
byte repeats,
long order,
CoreFoundation.Block_CFRunLoopObserverCreateWithHandler block) |
static byte |
CFRunLoopObserverDoesRepeat(CFRunLoopObserverRef observer) |
static long |
CFRunLoopObserverGetActivities(CFRunLoopObserverRef observer) |
static void |
CFRunLoopObserverGetContext(CFRunLoopObserverRef observer,
CFRunLoopObserverContext context) |
static long |
CFRunLoopObserverGetOrder(CFRunLoopObserverRef observer) |
static long |
CFRunLoopObserverGetTypeID() |
static void |
CFRunLoopObserverInvalidate(CFRunLoopObserverRef observer) |
static byte |
CFRunLoopObserverIsValid(CFRunLoopObserverRef observer) |
static void |
CFRunLoopPerformBlock(CFRunLoopRef rl,
org.moe.natj.general.ptr.ConstVoidPtr mode,
CoreFoundation.Block_CFRunLoopPerformBlock block) |
static void |
CFRunLoopRemoveObserver(CFRunLoopRef rl,
CFRunLoopObserverRef observer,
CFStringRef mode) |
static void |
CFRunLoopRemoveSource(CFRunLoopRef rl,
CFRunLoopSourceRef source,
CFStringRef mode) |
static void |
CFRunLoopRemoveTimer(CFRunLoopRef rl,
CFRunLoopTimerRef timer,
CFStringRef mode) |
static void |
CFRunLoopRun() |
static int |
CFRunLoopRunInMode(CFStringRef mode,
double seconds,
byte returnAfterSourceHandled) |
static CFRunLoopSourceRef |
CFRunLoopSourceCreate(CFAllocatorRef allocator,
long order,
CFRunLoopSourceContext context) |
static void |
CFRunLoopSourceGetContext(CFRunLoopSourceRef source,
CFRunLoopSourceContext context) |
static long |
CFRunLoopSourceGetOrder(CFRunLoopSourceRef source) |
static long |
CFRunLoopSourceGetTypeID() |
static void |
CFRunLoopSourceInvalidate(CFRunLoopSourceRef source) |
static byte |
CFRunLoopSourceIsValid(CFRunLoopSourceRef source) |
static void |
CFRunLoopSourceSignal(CFRunLoopSourceRef source) |
static void |
CFRunLoopStop(CFRunLoopRef rl) |
static CFRunLoopTimerRef |
CFRunLoopTimerCreate(CFAllocatorRef allocator,
double fireDate,
double interval,
long flags,
long order,
CoreFoundation.Function_CFRunLoopTimerCreate callout,
CFRunLoopTimerContext context) |
static CFRunLoopTimerRef |
CFRunLoopTimerCreateWithHandler(CFAllocatorRef allocator,
double fireDate,
double interval,
long flags,
long order,
CoreFoundation.Block_CFRunLoopTimerCreateWithHandler block) |
static byte |
CFRunLoopTimerDoesRepeat(CFRunLoopTimerRef timer) |
static void |
CFRunLoopTimerGetContext(CFRunLoopTimerRef timer,
CFRunLoopTimerContext context) |
static double |
CFRunLoopTimerGetInterval(CFRunLoopTimerRef timer) |
static double |
CFRunLoopTimerGetNextFireDate(CFRunLoopTimerRef timer) |
static long |
CFRunLoopTimerGetOrder(CFRunLoopTimerRef timer) |
static double |
CFRunLoopTimerGetTolerance(CFRunLoopTimerRef timer)
Setting a tolerance for a timer allows it to fire later than the scheduled fire date, improving the ability of the system to optimize for increased power savings and responsiveness.
|
static long |
CFRunLoopTimerGetTypeID() |
static void |
CFRunLoopTimerInvalidate(CFRunLoopTimerRef timer) |
static byte |
CFRunLoopTimerIsValid(CFRunLoopTimerRef timer) |
static void |
CFRunLoopTimerSetNextFireDate(CFRunLoopTimerRef timer,
double fireDate) |
static void |
CFRunLoopTimerSetTolerance(CFRunLoopTimerRef timer,
double tolerance) |
static void |
CFRunLoopWakeUp(CFRunLoopRef rl) |
static void |
CFSetAddValue(CFMutableSetRef theSet,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFSetAddValue
Adds the value to the set if it is not already present.
|
static void |
CFSetApplyFunction(CFSetRef theSet,
CoreFoundation.Function_CFSetApplyFunction applier,
org.moe.natj.general.ptr.VoidPtr context)
[@function] CFSetApplyFunction
Calls a function once for each value in the set.
|
static byte |
CFSetContainsValue(CFSetRef theSet,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFSetContainsValue
Reports whether or not the value is in the set.
|
static CFSetRef |
CFSetCreate(CFAllocatorRef allocator,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values,
long numValues,
CFSetCallBacks callBacks)
[@function] CFSetCreate
Creates a new immutable set with the given values.
|
static CFSetRef |
CFSetCreateCopy(CFAllocatorRef allocator,
CFSetRef theSet)
[@function] CFSetCreateCopy
Creates a new immutable set with the values from the given set.
|
static CFMutableSetRef |
CFSetCreateMutable(CFAllocatorRef allocator,
long capacity,
CFSetCallBacks callBacks)
[@function] CFSetCreateMutable
Creates a new empty mutable set.
|
static CFMutableSetRef |
CFSetCreateMutableCopy(CFAllocatorRef allocator,
long capacity,
CFSetRef theSet)
[@function] CFSetCreateMutableCopy
Creates a new immutable set with the values from the given set.
|
static long |
CFSetGetCount(CFSetRef theSet)
[@function] CFSetGetCount
Returns the number of values currently in the set.
|
static long |
CFSetGetCountOfValue(CFSetRef theSet,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFSetGetCountOfValue
Counts the number of times the given value occurs in the set.
|
static long |
CFSetGetTypeID()
[@function] CFSetGetTypeID
Returns the type identifier of all CFSet instances.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFSetGetValue(CFSetRef theSet,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFSetGetValue
Retrieves a value in the set which hashes the same as the specified value.
|
static byte |
CFSetGetValueIfPresent(CFSetRef theSet,
org.moe.natj.general.ptr.ConstVoidPtr candidate,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> value)
[@function] CFSetGetValueIfPresent
Retrieves a value in the set which hashes the same as the specified value,
if present.
|
static void |
CFSetGetValues(CFSetRef theSet,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values)
[@function] CFSetGetValues
Fills the buffer with values from the set.
|
static void |
CFSetRemoveAllValues(CFMutableSetRef theSet)
[@function] CFSetRemoveAllValues
Removes all the values from the set, making it empty.
|
static void |
CFSetRemoveValue(CFMutableSetRef theSet,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFSetRemoveValue
Removes the specified value from the set.
|
static void |
CFSetReplaceValue(CFMutableSetRef theSet,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFSetReplaceValue
Replaces the value in the set if it is present.
|
static void |
CFSetSetValue(CFMutableSetRef theSet,
org.moe.natj.general.ptr.ConstVoidPtr value)
[@function] CFSetSetValue
Replaces the value in the set if it is present, or adds the value to
the set if it is absent.
|
static void |
CFShow(org.moe.natj.general.ptr.ConstVoidPtr obj)
Rest of the stuff in this file is private and should not be used directly
For debugging only; output goes to stderr
Use CFShow() to printf the description of any CFType;
Use CFShowStr() to printf detailed info about a CFString
|
static void |
CFShowStr(CFStringRef str) |
static long |
CFSocketConnectToAddress(CFSocketRef s,
CFDataRef address,
double timeout) |
static CFDataRef |
CFSocketCopyAddress(CFSocketRef s) |
static CFDataRef |
CFSocketCopyPeerAddress(CFSocketRef s) |
static long |
CFSocketCopyRegisteredSocketSignature(CFSocketSignature nameServerSignature,
double timeout,
CFStringRef name,
CFSocketSignature signature,
org.moe.natj.general.ptr.Ptr<CFDataRef> nameServerAddress) |
static long |
CFSocketCopyRegisteredValue(CFSocketSignature nameServerSignature,
double timeout,
CFStringRef name,
org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> value,
org.moe.natj.general.ptr.Ptr<CFDataRef> nameServerAddress) |
static CFSocketRef |
CFSocketCreate(CFAllocatorRef allocator,
int protocolFamily,
int socketType,
int protocol,
long callBackTypes,
CoreFoundation.Function_CFSocketCreate callout,
CFSocketContext context) |
static CFSocketRef |
CFSocketCreateConnectedToSocketSignature(CFAllocatorRef allocator,
CFSocketSignature signature,
long callBackTypes,
CoreFoundation.Function_CFSocketCreateConnectedToSocketSignature callout,
CFSocketContext context,
double timeout)
CFSocketCreateWithSocketSignature() creates a socket of the requested type and binds its address (using CFSocketSetAddress()) to the requested address.
|
static CFRunLoopSourceRef |
CFSocketCreateRunLoopSource(CFAllocatorRef allocator,
CFSocketRef s,
long order) |
static CFSocketRef |
CFSocketCreateWithNative(CFAllocatorRef allocator,
int sock,
long callBackTypes,
CoreFoundation.Function_CFSocketCreateWithNative callout,
CFSocketContext context) |
static CFSocketRef |
CFSocketCreateWithSocketSignature(CFAllocatorRef allocator,
CFSocketSignature signature,
long callBackTypes,
CoreFoundation.Function_CFSocketCreateWithSocketSignature callout,
CFSocketContext context) |
static void |
CFSocketDisableCallBacks(CFSocketRef s,
long callBackTypes) |
static void |
CFSocketEnableCallBacks(CFSocketRef s,
long callBackTypes) |
static void |
CFSocketGetContext(CFSocketRef s,
CFSocketContext context) |
static char |
CFSocketGetDefaultNameRegistryPortNumber() |
static int |
CFSocketGetNative(CFSocketRef s) |
static long |
CFSocketGetSocketFlags(CFSocketRef s) |
static long |
CFSocketGetTypeID() |
static void |
CFSocketInvalidate(CFSocketRef s) |
static byte |
CFSocketIsValid(CFSocketRef s) |
static long |
CFSocketRegisterSocketSignature(CFSocketSignature nameServerSignature,
double timeout,
CFStringRef name,
CFSocketSignature signature) |
static long |
CFSocketRegisterValue(CFSocketSignature nameServerSignature,
double timeout,
CFStringRef name,
org.moe.natj.general.ptr.ConstVoidPtr value)
Generic name registry functionality (CFSocketRegisterValue,
CFSocketCopyRegisteredValue) allows the registration of any property
list type.
|
static long |
CFSocketSendData(CFSocketRef s,
CFDataRef address,
CFDataRef data,
double timeout)
For convenience, a function is provided to send data using the socket with a timeout.
|
static long |
CFSocketSetAddress(CFSocketRef s,
CFDataRef address)
CFSocketCreateConnectedToSocketSignature() creates a socket suitable for connecting to the requested type and address, and connects it (using CFSocketConnectToAddress()).
|
static void |
CFSocketSetDefaultNameRegistryPortNumber(char port) |
static void |
CFSocketSetSocketFlags(CFSocketRef s,
long flags) |
static long |
CFSocketUnregister(CFSocketSignature nameServerSignature,
double timeout,
CFStringRef name) |
static void |
CFStreamCreateBoundPair(CFAllocatorRef alloc,
org.moe.natj.general.ptr.Ptr<CFReadStreamRef> readStream,
org.moe.natj.general.ptr.Ptr<CFWriteStreamRef> writeStream,
long transferBufferSize) |
static void |
CFStreamCreatePairWithPeerSocketSignature(CFAllocatorRef alloc,
CFSocketSignature signature,
org.moe.natj.general.ptr.Ptr<CFReadStreamRef> readStream,
org.moe.natj.general.ptr.Ptr<CFWriteStreamRef> writeStream) |
static void |
CFStreamCreatePairWithSocket(CFAllocatorRef alloc,
int sock,
org.moe.natj.general.ptr.Ptr<CFReadStreamRef> readStream,
org.moe.natj.general.ptr.Ptr<CFWriteStreamRef> writeStream)
Socket streams; the returned streams are paired such that they use the same socket; pass NULL if you want only the read stream or the write stream
|
static void |
CFStreamCreatePairWithSocketToHost(CFAllocatorRef alloc,
CFStringRef host,
int port,
org.moe.natj.general.ptr.Ptr<CFReadStreamRef> readStream,
org.moe.natj.general.ptr.Ptr<CFWriteStreamRef> writeStream) |
static void |
CFStringAppend(CFMutableStringRef theString,
CFStringRef appendedString)
CFStringAppend("abcdef", "xxxxx") -> "abcdefxxxxx"
CFStringDelete("abcdef", CFRangeMake(2, 3)) -> "abf"
CFStringReplace("abcdef", CFRangeMake(2, 3), "xxxxx") -> "abxxxxxf"
CFStringReplaceAll("abcdef", "xxxxx") -> "xxxxx"
|
static void |
CFStringAppendCharacters(CFMutableStringRef theString,
org.moe.natj.general.ptr.ConstCharPtr chars,
long numChars) |
static void |
CFStringAppendCString(CFMutableStringRef theString,
java.lang.String cStr,
int encoding) |
static void |
CFStringAppendFormat(CFMutableStringRef theString,
CFDictionaryRef formatOptions,
CFStringRef format,
java.lang.Object... varargs) |
static void |
CFStringAppendFormatAndArguments(CFMutableStringRef theString,
CFDictionaryRef formatOptions,
CFStringRef format,
org.moe.natj.general.ptr.BytePtr arguments) |
static void |
CFStringAppendPascalString(CFMutableStringRef theString,
java.lang.String pStr,
int encoding) |
static void |
CFStringCapitalize(CFMutableStringRef theString,
CFLocaleRef locale) |
static long |
CFStringCompare(CFStringRef theString1,
CFStringRef theString2,
long compareOptions)
Comparison convenience suitable for passing as sorting functions.
|
static long |
CFStringCompareWithOptions(CFStringRef theString1,
CFStringRef theString2,
CFRange rangeToCompare,
long compareOptions)
Comparison convenience.
|
static long |
CFStringCompareWithOptionsAndLocale(CFStringRef theString1,
CFStringRef theString2,
CFRange rangeToCompare,
long compareOptions,
CFLocaleRef locale)
The main comparison routine; compares specified range of the first string to (the full range of) the second string.
|
static CFStringRef |
CFStringConvertEncodingToIANACharSetName(int encoding) |
static long |
CFStringConvertEncodingToNSStringEncoding(int encoding)
ID mapping functions from/to Cocoa NSStringEncoding.
|
static int |
CFStringConvertEncodingToWindowsCodepage(int encoding)
ID mapping functions from/to Microsoft Windows codepage (covers both OEM & ANSI).
|
static int |
CFStringConvertIANACharSetNameToEncoding(CFStringRef theString)
ID mapping functions from/to IANA registery charset names.
|
static int |
CFStringConvertNSStringEncodingToEncoding(long encoding) |
static int |
CFStringConvertWindowsCodepageToEncoding(int codepage) |
static CFArrayRef |
CFStringCreateArrayBySeparatingStrings(CFAllocatorRef alloc,
CFStringRef theString,
CFStringRef separatorString) |
static CFArrayRef |
CFStringCreateArrayWithFindResults(CFAllocatorRef alloc,
CFStringRef theString,
CFStringRef stringToFind,
CFRange rangeToSearch,
long compareOptions)
CFStringCreateArrayWithFindResults() returns an array of CFRange pointers, or NULL if there are no matches.
|
static CFStringRef |
CFStringCreateByCombiningStrings(CFAllocatorRef alloc,
CFArrayRef theArray,
CFStringRef separatorString)
Exploding and joining strings with a separator string **
|
static CFStringRef |
CFStringCreateCopy(CFAllocatorRef alloc,
CFStringRef theString) |
static CFDataRef |
CFStringCreateExternalRepresentation(CFAllocatorRef alloc,
CFStringRef theString,
int encoding,
byte lossByte) |
static CFStringRef |
CFStringCreateFromExternalRepresentation(CFAllocatorRef alloc,
CFDataRef data,
int encoding)
Convenience functions String <-> Data.
|
static CFMutableStringRef |
CFStringCreateMutable(CFAllocatorRef alloc,
long maxLength)
Functions to create mutable strings.
|
static CFMutableStringRef |
CFStringCreateMutableCopy(CFAllocatorRef alloc,
long maxLength,
CFStringRef theString) |
static CFMutableStringRef |
CFStringCreateMutableWithExternalCharactersNoCopy(CFAllocatorRef alloc,
org.moe.natj.general.ptr.CharPtr chars,
long numChars,
long capacity,
CFAllocatorRef externalCharactersAllocator)
This function creates a mutable string that has a developer supplied and directly editable backing store.
|
static CFStringRef |
CFStringCreateWithBytes(CFAllocatorRef alloc,
java.lang.String bytes,
long numBytes,
int encoding,
byte isExternalRepresentation)
The following takes an explicit length, and allows you to specify whether the data is an external format --- that is, whether to pay attention to the BOM character (if any) and do byte swapping if necessary
|
static CFStringRef |
CFStringCreateWithBytesNoCopy(CFAllocatorRef alloc,
java.lang.String bytes,
long numBytes,
int encoding,
byte isExternalRepresentation,
CFAllocatorRef contentsDeallocator)
The following takes an explicit length, and allows you to specify whether the data is an external format --- that is, whether to pay attention to the BOM character (if any) and do byte swapping if necessary
|
static CFStringRef |
CFStringCreateWithCharacters(CFAllocatorRef alloc,
org.moe.natj.general.ptr.ConstCharPtr chars,
long numChars) |
static CFStringRef |
CFStringCreateWithCharactersNoCopy(CFAllocatorRef alloc,
org.moe.natj.general.ptr.ConstCharPtr chars,
long numChars,
CFAllocatorRef contentsDeallocator) |
static CFStringRef |
CFStringCreateWithCString(CFAllocatorRef alloc,
java.lang.String cStr,
int encoding) |
static CFStringRef |
CFStringCreateWithCStringNoCopy(CFAllocatorRef alloc,
java.lang.String cStr,
int encoding,
CFAllocatorRef contentsDeallocator) |
static CFStringRef |
CFStringCreateWithFileSystemRepresentation(CFAllocatorRef alloc,
java.lang.String buffer)
Create a CFString from the specified zero-terminated POSIX file system representation.
|
static CFStringRef |
CFStringCreateWithFormat(CFAllocatorRef alloc,
CFDictionaryRef formatOptions,
CFStringRef format,
java.lang.Object... varargs)
These functions create a CFString from the provided printf-like format string and arguments.
|
static CFStringRef |
CFStringCreateWithFormatAndArguments(CFAllocatorRef alloc,
CFDictionaryRef formatOptions,
CFStringRef format,
org.moe.natj.general.ptr.BytePtr arguments) |
static CFStringRef |
CFStringCreateWithPascalString(CFAllocatorRef alloc,
java.lang.String pStr,
int encoding)
The following four functions copy the provided buffer into CFString's internal storage.
|
static CFStringRef |
CFStringCreateWithPascalStringNoCopy(CFAllocatorRef alloc,
java.lang.String pStr,
int encoding,
CFAllocatorRef contentsDeallocator)
These functions try not to copy the provided buffer.
|
static CFStringRef |
CFStringCreateWithSubstring(CFAllocatorRef alloc,
CFStringRef str,
CFRange range)
Create copies of part or all of the string.
|
static void |
CFStringDelete(CFMutableStringRef theString,
CFRange range) |
static CFRange |
CFStringFind(CFStringRef theString,
CFStringRef stringToFind,
long compareOptions)
Find conveniences; see comments above concerning empty string and options.
|
static long |
CFStringFindAndReplace(CFMutableStringRef theString,
CFStringRef stringToFind,
CFStringRef replacementString,
CFRange rangeToSearch,
long compareOptions)
Replace all occurrences of target in rangeToSearch of theString with replacement.
|
static byte |
CFStringFindCharacterFromSet(CFStringRef theString,
CFCharacterSetRef theSet,
CFRange rangeToSearch,
long searchOptions,
CFRange result)
[@function] CFStringFindCharacterFromSet
Query the range of the first character contained in the specified character set.
|
static byte |
CFStringFindWithOptions(CFStringRef theString,
CFStringRef stringToFind,
CFRange rangeToSearch,
long searchOptions,
CFRange result)
Find convenience.
|
static byte |
CFStringFindWithOptionsAndLocale(CFStringRef theString,
CFStringRef stringToFind,
CFRange rangeToSearch,
long searchOptions,
CFLocaleRef locale,
CFRange result)
CFStringFindWithOptionsAndLocale() returns the found range in the CFRange * argument; you can pass NULL for simple discovery check.
|
static void |
CFStringFold(CFMutableStringRef theString,
long theFlags,
CFLocaleRef theLocale)
[@function] CFStringFold
Folds the string into the form specified by the flags.
|
static long |
CFStringGetBytes(CFStringRef theString,
CFRange range,
int encoding,
byte lossByte,
byte isExternalRepresentation,
org.moe.natj.general.ptr.BytePtr buffer,
long maxBufLen,
org.moe.natj.general.ptr.NIntPtr usedBufLen)
The primitive conversion routine; allows you to convert a string piece at a time
into a fixed size buffer.
|
static char |
CFStringGetCharacterAtIndex(CFStringRef theString,
long idx)
Extracting the contents of the string.
|
static char |
CFStringGetCharacterFromInlineBuffer(CFStringInlineBuffer buf,
long idx) |
static void |
CFStringGetCharacters(CFStringRef theString,
CFRange range,
org.moe.natj.general.ptr.CharPtr buffer) |
static org.moe.natj.general.ptr.ConstCharPtr |
CFStringGetCharactersPtr(CFStringRef theString) |
static byte |
CFStringGetCString(CFStringRef theString,
org.moe.natj.general.ptr.BytePtr buffer,
long bufferSize,
int encoding) |
static java.lang.String |
CFStringGetCStringPtr(CFStringRef theString,
int encoding) |
static double |
CFStringGetDoubleValue(CFStringRef str) |
static int |
CFStringGetFastestEncoding(CFStringRef theString) |
static byte |
CFStringGetFileSystemRepresentation(CFStringRef string,
org.moe.natj.general.ptr.BytePtr buffer,
long maxBufLen)
Extract the contents of the string as a NULL-terminated 8-bit string appropriate for passing to POSIX APIs (for example, normalized for HFS+).
|
static long |
CFStringGetHyphenationLocationBeforeIndex(CFStringRef string,
long location,
CFRange limitRange,
long options,
CFLocaleRef locale,
org.moe.natj.general.ptr.IntPtr character)
[@function] CFStringGetHyphenationLocationBeforeIndex
Retrieve the first potential hyphenation location found before the specified location.
|
static int |
CFStringGetIntValue(CFStringRef str)
Parsing non-localized numbers from strings **
|
static long |
CFStringGetLength(CFStringRef theString)
Number of 16-bit Unicode characters in the string.
|
static void |
CFStringGetLineBounds(CFStringRef theString,
CFRange range,
org.moe.natj.general.ptr.NIntPtr lineBeginIndex,
org.moe.natj.general.ptr.NIntPtr lineEndIndex,
org.moe.natj.general.ptr.NIntPtr contentsEndIndex)
Find range of bounds of the line(s) that span the indicated range (startIndex, numChars),
taking into account various possible line separator sequences (CR, CRLF, LF, and Unicode NextLine, LineSeparator, ParagraphSeparator).
|
static org.moe.natj.general.ptr.ConstIntPtr |
CFStringGetListOfAvailableEncodings()
This function returns list of available encodings.
|
static int |
CFStringGetLongCharacterForSurrogatePair(char surrogateHigh,
char surrogateLow) |
static long |
CFStringGetMaximumSizeForEncoding(long length,
int encoding) |
static long |
CFStringGetMaximumSizeOfFileSystemRepresentation(CFStringRef string)
Get the upper bound on the number of bytes required to hold the file system representation for the string.
|
static int |
CFStringGetMostCompatibleMacStringEncoding(int encoding)
Returns the most compatible MacOS script value for the input encoding
i.e.
|
static CFStringRef |
CFStringGetNameOfEncoding(int encoding)
Returns name of the encoding; non-localized.
|
static void |
CFStringGetParagraphBounds(CFStringRef string,
CFRange range,
org.moe.natj.general.ptr.NIntPtr parBeginIndex,
org.moe.natj.general.ptr.NIntPtr parEndIndex,
org.moe.natj.general.ptr.NIntPtr contentsEndIndex)
Same as CFStringGetLineBounds(), however, will only look for paragraphs.
|
static byte |
CFStringGetPascalString(CFStringRef theString,
org.moe.natj.general.ptr.BytePtr buffer,
long bufferSize,
int encoding)
These two convert into the provided buffer; they return false if conversion isn't possible
(due to conversion error, or not enough space in the provided buffer).
|
static java.lang.String |
CFStringGetPascalStringPtr(CFStringRef theString,
int encoding)
These functions attempt to return in O(1) time the desired format for the string.
|
static CFRange |
CFStringGetRangeOfComposedCharactersAtIndex(CFStringRef theString,
long theIndex)
[@function] CFStringGetRangeOfComposedCharactersAtIndex
Returns the range of the composed character sequence at the specified index.
|
static int |
CFStringGetSmallestEncoding(CFStringRef theString)
Hints about the contents of a string
|
static byte |
CFStringGetSurrogatePairForLongCharacter(int character,
org.moe.natj.general.ptr.CharPtr surrogates)
Maps a UTF-32 character to a pair of UTF-16 surrogate characters.
|
static int |
CFStringGetSystemEncoding()
General encoding info
|
static long |
CFStringGetTypeID()
CFString type ID
|
static byte |
CFStringHasPrefix(CFStringRef theString,
CFStringRef prefix) |
static byte |
CFStringHasSuffix(CFStringRef theString,
CFStringRef suffix) |
static void |
CFStringInitInlineBuffer(CFStringRef str,
CFStringInlineBuffer buf,
CFRange range) |
static void |
CFStringInsert(CFMutableStringRef str,
long idx,
CFStringRef insertedStr) |
static byte |
CFStringIsEncodingAvailable(int encoding)
This returns availability of the encoding on the system
|
static byte |
CFStringIsHyphenationAvailableForLocale(CFLocaleRef locale) |
static byte |
CFStringIsSurrogateHighCharacter(char character)
UTF-16 surrogate support
|
static byte |
CFStringIsSurrogateLowCharacter(char character) |
static void |
CFStringLowercase(CFMutableStringRef theString,
CFLocaleRef locale) |
static void |
CFStringNormalize(CFMutableStringRef theString,
long theForm)
[@function] CFStringNormalize
Normalizes the string into the specified form as described in
Unicode Technical Report #15.
|
static void |
CFStringPad(CFMutableStringRef theString,
CFStringRef padString,
long length,
long indexIntoPad)
CFStringPad() will pad or cut down a string to the specified size.
|
static void |
CFStringReplace(CFMutableStringRef theString,
CFRange range,
CFStringRef replacement) |
static void |
CFStringReplaceAll(CFMutableStringRef theString,
CFStringRef replacement) |
static void |
CFStringSetExternalCharactersNoCopy(CFMutableStringRef theString,
org.moe.natj.general.ptr.CharPtr chars,
long length,
long capacity)
This function will make the contents of a mutable CFString point directly at the specified UniChar array.
|
static long |
CFStringTokenizerAdvanceToNextToken(CFStringTokenizerRef tokenizer)
[@function] CFStringTokenizerAdvanceToNextToken
|
static CFStringRef |
CFStringTokenizerCopyBestStringLanguage(CFStringRef string,
CFRange range)
[@function] CFStringTokenizerCopyBestStringLanguage
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFStringTokenizerCopyCurrentTokenAttribute(CFStringTokenizerRef tokenizer,
long attribute)
[@function] CFStringTokenizerCopyCurrentTokenAttribute
|
static CFStringTokenizerRef |
CFStringTokenizerCreate(CFAllocatorRef alloc,
CFStringRef string,
CFRange range,
long options,
CFLocaleRef locale)
[@function] CFStringTokenizerCreate
|
static long |
CFStringTokenizerGetCurrentSubTokens(CFStringTokenizerRef tokenizer,
CFRange ranges,
long maxRangeLength,
CFMutableArrayRef derivedSubTokens)
[@function] CFStringTokenizerGetCurrentSubTokens
|
static CFRange |
CFStringTokenizerGetCurrentTokenRange(CFStringTokenizerRef tokenizer)
[@function] CFStringTokenizerGetCurrentTokenRange
|
static long |
CFStringTokenizerGetTypeID()
[@function] CFStringTokenizerGetTypeID
|
static long |
CFStringTokenizerGoToTokenAtIndex(CFStringTokenizerRef tokenizer,
long index)
[@function] CFStringTokenizerGoToTokenAtIndex
|
static void |
CFStringTokenizerSetString(CFStringTokenizerRef tokenizer,
CFStringRef string,
CFRange range)
[@function] CFStringTokenizerSetString
|
static byte |
CFStringTransform(CFMutableStringRef string,
CFRange range,
CFStringRef transform,
byte reverse)
Perform string transliteration.
|
static void |
CFStringTrim(CFMutableStringRef theString,
CFStringRef trimString) |
static void |
CFStringTrimWhitespace(CFMutableStringRef theString) |
static void |
CFStringUppercase(CFMutableStringRef theString,
CFLocaleRef locale) |
static char |
CFSwapInt16(char arg) |
static char |
CFSwapInt16BigToHost(char arg) |
static char |
CFSwapInt16HostToBig(char arg) |
static char |
CFSwapInt16HostToLittle(char arg) |
static char |
CFSwapInt16LittleToHost(char arg) |
static int |
CFSwapInt32(int arg) |
static int |
CFSwapInt32BigToHost(int arg) |
static int |
CFSwapInt32HostToBig(int arg) |
static int |
CFSwapInt32HostToLittle(int arg) |
static int |
CFSwapInt32LittleToHost(int arg) |
static long |
CFSwapInt64(long arg) |
static long |
CFSwapInt64BigToHost(long arg) |
static long |
CFSwapInt64HostToBig(long arg) |
static long |
CFSwapInt64HostToLittle(long arg) |
static long |
CFSwapInt64LittleToHost(long arg) |
static CFStringRef |
CFTimeZoneCopyAbbreviation(CFTimeZoneRef tz,
double at) |
static CFDictionaryRef |
CFTimeZoneCopyAbbreviationDictionary() |
static CFTimeZoneRef |
CFTimeZoneCopyDefault() |
static CFArrayRef |
CFTimeZoneCopyKnownNames() |
static CFStringRef |
CFTimeZoneCopyLocalizedName(CFTimeZoneRef tz,
long style,
CFLocaleRef locale) |
static CFTimeZoneRef |
CFTimeZoneCopySystem() |
static CFTimeZoneRef |
CFTimeZoneCreate(CFAllocatorRef allocator,
CFStringRef name,
CFDataRef data) |
static CFTimeZoneRef |
CFTimeZoneCreateWithName(CFAllocatorRef allocator,
CFStringRef name,
byte tryAbbrev) |
static CFTimeZoneRef |
CFTimeZoneCreateWithTimeIntervalFromGMT(CFAllocatorRef allocator,
double ti) |
static CFDataRef |
CFTimeZoneGetData(CFTimeZoneRef tz) |
static double |
CFTimeZoneGetDaylightSavingTimeOffset(CFTimeZoneRef tz,
double at) |
static CFStringRef |
CFTimeZoneGetName(CFTimeZoneRef tz) |
static double |
CFTimeZoneGetNextDaylightSavingTimeTransition(CFTimeZoneRef tz,
double at) |
static double |
CFTimeZoneGetSecondsFromGMT(CFTimeZoneRef tz,
double at) |
static long |
CFTimeZoneGetTypeID() |
static byte |
CFTimeZoneIsDaylightSavingTime(CFTimeZoneRef tz,
double at) |
static void |
CFTimeZoneResetSystem() |
static void |
CFTimeZoneSetAbbreviationDictionary(CFDictionaryRef dict) |
static void |
CFTimeZoneSetDefault(CFTimeZoneRef tz) |
static void |
CFTreeAppendChild(CFTreeRef tree,
CFTreeRef newChild)
[@function] CFTreeAppendChild
Adds the newChild to the specified tree as the last in its list of children.
|
static void |
CFTreeApplyFunctionToChildren(CFTreeRef tree,
CoreFoundation.Function_CFTreeApplyFunctionToChildren applier,
org.moe.natj.general.ptr.VoidPtr context)
[@function] CFTreeApplyFunctionToChildren
Calls a function once for each child of the tree.
|
static CFTreeRef |
CFTreeCreate(CFAllocatorRef allocator,
CFTreeContext context)
[@function] CFTreeCreate
Creates a new mutable tree.
|
static CFTreeRef |
CFTreeFindRoot(CFTreeRef tree)
[@function] CFTreeFindRoot
Returns the root tree of which the specified tree is a descendent.
|
static CFTreeRef |
CFTreeGetChildAtIndex(CFTreeRef tree,
long idx)
[@function] CFTreeGetChildAtIndex
Returns the nth child of the specified tree.
|
static long |
CFTreeGetChildCount(CFTreeRef tree)
[@function] CFTreeGetChildCount
Returns the number of children of the specified tree.
|
static void |
CFTreeGetChildren(CFTreeRef tree,
org.moe.natj.general.ptr.Ptr<CFTreeRef> children)
[@function] CFTreeGetChildren
Fills the buffer with children from the tree.
|
static void |
CFTreeGetContext(CFTreeRef tree,
CFTreeContext context)
[@function] CFTreeGetContext
Returns the context of the specified tree.
|
static CFTreeRef |
CFTreeGetFirstChild(CFTreeRef tree)
[@function] CFTreeGetFirstChild
Returns the first child of the tree.
|
static CFTreeRef |
CFTreeGetNextSibling(CFTreeRef tree)
[@function] CFTreeGetNextSibling
Returns the sibling after the specified tree in the parent tree's list.
|
static CFTreeRef |
CFTreeGetParent(CFTreeRef tree)
[@function] CFTreeGetParent
Returns the parent of the specified tree.
|
static long |
CFTreeGetTypeID()
[@function] CFTreeGetTypeID
Returns the type identifier of all CFTree instances.
|
static void |
CFTreeInsertSibling(CFTreeRef tree,
CFTreeRef newSibling)
[@function] CFTreeInsertSibling
Inserts newSibling into the the parent tree's linked list of children after
tree.
|
static void |
CFTreePrependChild(CFTreeRef tree,
CFTreeRef newChild)
[@function] CFTreePrependChild
Adds the newChild to the specified tree as the first in its list of children.
|
static void |
CFTreeRemove(CFTreeRef tree)
[@function] CFTreeRemove
Removes the tree from its parent.
|
static void |
CFTreeRemoveAllChildren(CFTreeRef tree)
[@function] CFTreeRemoveAllChildren
Removes all the children of the tree.
|
static void |
CFTreeSetContext(CFTreeRef tree,
CFTreeContext context)
[@function] CFTreeSetContext
Replaces the context of a tree.
|
static void |
CFTreeSortChildren(CFTreeRef tree,
CoreFoundation.Function_CFTreeSortChildren comparator,
org.moe.natj.general.ptr.VoidPtr context)
[@function] CFTreeSortChildren
Sorts the children of the specified tree using the specified comparator function.
|
static byte |
CFURLCanBeDecomposed(CFURLRef anURL)
Returns true if anURL conforms to RFC 1808
|
static void |
CFURLClearResourcePropertyCache(CFURLRef url)
CFURLClearResourcePropertyCache
|
static void |
CFURLClearResourcePropertyCacheForKey(CFURLRef url,
CFStringRef key)
CFURLClearResourcePropertyCacheForKey
|
static CFURLRef |
CFURLCopyAbsoluteURL(CFURLRef relativeURL)
Creates a new URL by resolving the relative portion of relativeURL against its base.
|
static CFStringRef |
CFURLCopyFileSystemPath(CFURLRef anURL,
long pathStyle)
CFURLCopyFileSystemPath() returns the URL's path as a file system path for the
given path style.
|
static CFStringRef |
CFURLCopyFragment(CFURLRef anURL,
CFStringRef charactersToLeaveEscaped) |
static CFStringRef |
CFURLCopyHostName(CFURLRef anURL)
Percent-escape sequences are removed.
|
static CFStringRef |
CFURLCopyLastPathComponent(CFURLRef url)
Percent-escape sequences are removed.
|
static CFStringRef |
CFURLCopyNetLocation(CFURLRef anURL)
Percent-escape sequences are not removed.
|
static CFStringRef |
CFURLCopyParameterString(CFURLRef anURL,
CFStringRef charactersToLeaveEscaped)
CFURLCopyParameterString, CFURLCopyQueryString, and CFURLCopyFragment
remove all percent-escape sequences except those for
characters in charactersToLeaveEscaped.
|
static CFStringRef |
CFURLCopyPassword(CFURLRef anURL)
Percent-escape sequences are removed.
|
static CFStringRef |
CFURLCopyPath(CFURLRef anURL)
Percent-escape sequences are not removed.
|
static CFStringRef |
CFURLCopyPathExtension(CFURLRef url)
Percent-escape sequences are removed.
|
static CFStringRef |
CFURLCopyQueryString(CFURLRef anURL,
CFStringRef charactersToLeaveEscaped) |
static CFDictionaryRef |
CFURLCopyResourcePropertiesForKeys(CFURLRef url,
CFArrayRef keys,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
CFURLCopyResourcePropertiesForKeys
|
static byte |
CFURLCopyResourcePropertyForKey(CFURLRef url,
CFStringRef key,
org.moe.natj.general.ptr.VoidPtr propertyValueTypeRefPtr,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
CFURLCopyResourcePropertyForKey
|
static CFStringRef |
CFURLCopyResourceSpecifier(CFURLRef anURL)
Any additional resource specifiers after the path.
|
static CFStringRef |
CFURLCopyScheme(CFURLRef anURL) |
static CFStringRef |
CFURLCopyStrictPath(CFURLRef anURL,
org.moe.natj.general.ptr.BytePtr isAbsolute)
Percent-escape sequences are not removed.
|
static CFStringRef |
CFURLCopyUserName(CFURLRef anURL)
Percent-escape sequences are removed.
|
static CFURLRef |
CFURLCreateAbsoluteURLWithBytes(CFAllocatorRef alloc,
java.lang.String relativeURLBytes,
long length,
int encoding,
CFURLRef baseURL,
byte useCompatibilityMode)
Create an absolute URL directly, without requiring the extra step
of calling CFURLCopyAbsoluteURL().
|
static CFDataRef |
CFURLCreateBookmarkData(CFAllocatorRef allocator,
CFURLRef url,
long options,
CFArrayRef resourcePropertiesToInclude,
CFURLRef relativeToURL,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
Returns bookmark data for the URL, created with specified options and resource properties.
|
static CFDataRef |
CFURLCreateBookmarkDataFromFile(CFAllocatorRef allocator,
CFURLRef fileURL,
org.moe.natj.general.ptr.Ptr<CFErrorRef> errorRef)
Returns bookmark data derived from an alias file referred to by fileURL.
|
static CFURLRef |
CFURLCreateByResolvingBookmarkData(CFAllocatorRef allocator,
CFDataRef bookmark,
long options,
CFURLRef relativeToURL,
CFArrayRef resourcePropertiesToInclude,
org.moe.natj.general.ptr.BytePtr isStale,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
Return a URL that refers to a location specified by resolving bookmark data.
|
static CFURLRef |
CFURLCreateCopyAppendingPathComponent(CFAllocatorRef allocator,
CFURLRef url,
CFStringRef pathComponent,
byte isDirectory) |
static CFURLRef |
CFURLCreateCopyAppendingPathExtension(CFAllocatorRef allocator,
CFURLRef url,
CFStringRef extension) |
static CFURLRef |
CFURLCreateCopyDeletingLastPathComponent(CFAllocatorRef allocator,
CFURLRef url) |
static CFURLRef |
CFURLCreateCopyDeletingPathExtension(CFAllocatorRef allocator,
CFURLRef url) |
static CFDataRef |
CFURLCreateData(CFAllocatorRef allocator,
CFURLRef url,
int encoding,
byte escapeWhitespace)
Escapes any character that is not 7-bit ASCII with the byte-code
for the given encoding.
|
static byte |
CFURLCreateDataAndPropertiesFromResource(CFAllocatorRef alloc,
CFURLRef url,
org.moe.natj.general.ptr.Ptr<CFDataRef> resourceData,
org.moe.natj.general.ptr.Ptr<CFDictionaryRef> properties,
CFArrayRef desiredProperties,
org.moe.natj.general.ptr.IntPtr errorCode)
Deprecated.
|
static CFURLRef |
CFURLCreateFilePathURL(CFAllocatorRef allocator,
CFURLRef url,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
CFURLCreateFilePathURL
|
static CFURLRef |
CFURLCreateFileReferenceURL(CFAllocatorRef allocator,
CFURLRef url,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
CFURLCreateFileReferenceURL
|
static CFURLRef |
CFURLCreateFromFileSystemRepresentation(CFAllocatorRef allocator,
java.lang.String buffer,
long bufLen,
byte isDirectory) |
static CFURLRef |
CFURLCreateFromFileSystemRepresentationRelativeToBase(CFAllocatorRef allocator,
java.lang.String buffer,
long bufLen,
byte isDirectory,
CFURLRef baseURL) |
static CFURLRef |
CFURLCreateFromFSRef(CFAllocatorRef allocator,
org.moe.natj.general.ptr.VoidPtr fsRef)
Deprecated.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFURLCreatePropertyFromResource(CFAllocatorRef alloc,
CFURLRef url,
CFStringRef property,
org.moe.natj.general.ptr.IntPtr errorCode)
Deprecated.
|
static CFDictionaryRef |
CFURLCreateResourcePropertiesForKeysFromBookmarkData(CFAllocatorRef allocator,
CFArrayRef resourcePropertiesToReturn,
CFDataRef bookmark)
Returns the resource propertyies identified by a specified array of keys contained in specified bookmark data.
|
static org.moe.natj.general.ptr.ConstVoidPtr |
CFURLCreateResourcePropertyForKeyFromBookmarkData(CFAllocatorRef allocator,
CFStringRef resourcePropertyKey,
CFDataRef bookmark)
Returns the resource property identified by a given resource key contained in specified bookmark data.
|
static CFStringRef |
CFURLCreateStringByAddingPercentEscapes(CFAllocatorRef allocator,
CFStringRef originalString,
CFStringRef charactersToLeaveUnescaped,
CFStringRef legalURLCharactersToBeEscaped,
int encoding)
Deprecated.
|
static CFStringRef |
CFURLCreateStringByReplacingPercentEscapes(CFAllocatorRef allocator,
CFStringRef originalString,
CFStringRef charactersToLeaveEscaped)
Returns a string with any percent-escape sequences that do NOT
correspond to characters in charactersToLeaveEscaped with their
equivalent.
|
static CFStringRef |
CFURLCreateStringByReplacingPercentEscapesUsingEncoding(CFAllocatorRef allocator,
CFStringRef origString,
CFStringRef charsToLeaveEscaped,
int encoding)
Deprecated.
|
static CFURLRef |
CFURLCreateWithBytes(CFAllocatorRef allocator,
java.lang.String URLBytes,
long length,
int encoding,
CFURLRef baseURL)
encoding will be used both to interpret the bytes of URLBytes, and to
interpret any percent-escapes within the bytes.
|
static CFURLRef |
CFURLCreateWithFileSystemPath(CFAllocatorRef allocator,
CFStringRef filePath,
long pathStyle,
byte isDirectory)
filePath should be the URL's path expressed as a path of the type
fsType.
|
static CFURLRef |
CFURLCreateWithFileSystemPathRelativeToBase(CFAllocatorRef allocator,
CFStringRef filePath,
long pathStyle,
byte isDirectory,
CFURLRef baseURL)
The path style of the baseURL must match the path style of the relative
url or the results are undefined.
|
static CFURLRef |
CFURLCreateWithString(CFAllocatorRef allocator,
CFStringRef URLString,
CFURLRef baseURL)
Any percent-escape sequences in URLString will be interpreted via UTF-8.
|
static byte |
CFURLDestroyResource(CFURLRef url,
org.moe.natj.general.ptr.IntPtr errorCode)
Deprecated.
|
static CFURLEnumeratorRef |
CFURLEnumeratorCreateForDirectoryURL(CFAllocatorRef alloc,
CFURLRef directoryURL,
long option,
CFArrayRef propertyKeys)
CFURLEnumeratorCreateForDirectoryURL - Creates a directory enumerator, flat or recursive.
|
static CFURLEnumeratorRef |
CFURLEnumeratorCreateForMountedVolumes(CFAllocatorRef alloc,
long option,
CFArrayRef propertyKeys)
CFURLEnumeratorCreateForMountedVolumes - Creates an enumerator for mounted filesystem volumes.
|
static long |
CFURLEnumeratorGetDescendentLevel(CFURLEnumeratorRef enumerator)
CFURLEnumeratorGetDescendentLevel - Returns the number of levels a directory enumerator has descended down into the directory hierarchy from the starting directory.
|
static long |
CFURLEnumeratorGetNextURL(CFURLEnumeratorRef enumerator,
org.moe.natj.general.ptr.Ptr<CFURLRef> url,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
CFURLEnumeratorGetNextURL - Advances the enumerator.
|
static byte |
CFURLEnumeratorGetSourceDidChange(CFURLEnumeratorRef enumerator)
Deprecated.
|
static long |
CFURLEnumeratorGetTypeID()
CFURLEnumeratorGetTypeID - Returns the CFURLEnumerator CFTypeID.
|
static void |
CFURLEnumeratorSkipDescendents(CFURLEnumeratorRef enumerator)
CFURLEnumeratorSkipDescendents - Tells a recursive CFURLEnumerator not to descend into the directory of the last CFURLRef returned by CFURLEnumeratorGetNextURL.
|
static CFURLRef |
CFURLGetBaseURL(CFURLRef anURL)
Returns the base URL if it exists
|
static CFRange |
CFURLGetByteRangeForComponent(CFURLRef url,
long component,
CFRange rangeIncludingSeparators)
Gets the range of the requested component in the bytes of url, as
returned by CFURLGetBytes().
|
static long |
CFURLGetBytes(CFURLRef url,
org.moe.natj.general.ptr.BytePtr buffer,
long bufferLength)
Fills buffer with the bytes for url, returning the number of bytes
filled.
|
static byte |
CFURLGetFileSystemRepresentation(CFURLRef url,
byte resolveAgainstBase,
org.moe.natj.general.ptr.BytePtr buffer,
long maxBufLen)
Fills buffer with the file system's native representation of
url's path.
|
static byte |
CFURLGetFSRef(CFURLRef url,
org.moe.natj.general.ptr.VoidPtr fsRef)
Deprecated.
|
static int |
CFURLGetPortNumber(CFURLRef anURL) |
static CFStringRef |
CFURLGetString(CFURLRef anURL)
Returns the URL's string.
|
static long |
CFURLGetTypeID()
CFURLs are composed of two fundamental pieces - their string, and a
(possibly NULL) base URL.
|
static byte |
CFURLHasDirectoryPath(CFURLRef anURL)
Returns whether anURL's path represents a directory
(true returned) or a simple file (false returned)
|
static byte |
CFURLIsFileReferenceURL(CFURLRef url)
CFURLIsFileReferenceURL
|
static byte |
CFURLResourceIsReachable(CFURLRef url,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
CFURLResourceIsReachable
|
static byte |
CFURLSetResourcePropertiesForKeys(CFURLRef url,
CFDictionaryRef keyedPropertyValues,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
CFURLSetResourcePropertiesForKeys
|
static byte |
CFURLSetResourcePropertyForKey(CFURLRef url,
CFStringRef key,
org.moe.natj.general.ptr.ConstVoidPtr propertyValue,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
CFURLSetResourcePropertyForKey
|
static void |
CFURLSetTemporaryResourcePropertyForKey(CFURLRef url,
CFStringRef key,
org.moe.natj.general.ptr.ConstVoidPtr propertyValue)
CFURLSetTemporaryResourcePropertyForKey
|
static byte |
CFURLStartAccessingSecurityScopedResource(CFURLRef url)
Given a CFURLRef created by resolving a bookmark data created with security scope, make the resource referenced by the url accessible to the process.
|
static void |
CFURLStopAccessingSecurityScopedResource(CFURLRef url)
Revokes the access granted to the url by a prior successful call to CFURLStartAccessingSecurityScopedResource().
|
static byte |
CFURLWriteBookmarkDataToFile(CFDataRef bookmarkRef,
CFURLRef fileURL,
long options,
org.moe.natj.general.ptr.Ptr<CFErrorRef> errorRef)
Creates an alias file on disk at a specified location with specified bookmark data.
|
static byte |
CFURLWriteDataAndPropertiesToResource(CFURLRef url,
CFDataRef dataToWrite,
CFDictionaryRef propertiesToWrite,
org.moe.natj.general.ptr.IntPtr errorCode)
Deprecated.
|
static CFUUIDRef |
CFUUIDCreate(CFAllocatorRef alloc) |
static CFUUIDRef |
CFUUIDCreateFromString(CFAllocatorRef alloc,
CFStringRef uuidStr)
Create and return an identifier with the given contents.
|
static CFUUIDRef |
CFUUIDCreateFromUUIDBytes(CFAllocatorRef alloc,
CFUUIDBytes bytes) |
static CFStringRef |
CFUUIDCreateString(CFAllocatorRef alloc,
CFUUIDRef uuid)
Converts from a string representation to the UUID.
|
static CFUUIDRef |
CFUUIDCreateWithBytes(CFAllocatorRef alloc,
byte byte0,
byte byte1,
byte byte2,
byte byte3,
byte byte4,
byte byte5,
byte byte6,
byte byte7,
byte byte8,
byte byte9,
byte byte10,
byte byte11,
byte byte12,
byte byte13,
byte byte14,
byte byte15)
Create and return a brand new unique identifier
|
static CFUUIDRef |
CFUUIDGetConstantUUIDWithBytes(CFAllocatorRef alloc,
byte byte0,
byte byte1,
byte byte2,
byte byte3,
byte byte4,
byte byte5,
byte byte6,
byte byte7,
byte byte8,
byte byte9,
byte byte10,
byte byte11,
byte byte12,
byte byte13,
byte byte14,
byte byte15)
Converts from a UUID to its string representation.
|
static long |
CFUUIDGetTypeID()
The CFUUIDBytes struct is a 128-bit struct that contains the
raw UUID.
|
static CFUUIDBytes |
CFUUIDGetUUIDBytes(CFUUIDRef uuid)
This returns an immortal CFUUIDRef that should not be released.
|
static byte |
CFWriteStreamCanAcceptBytes(CFWriteStreamRef stream)
Whether the stream can currently be written to without blocking;
returns TRUE if it's impossible to tell without trying
|
static void |
CFWriteStreamClose(CFWriteStreamRef stream) |
static NSObject |
CFWriteStreamCopyDispatchQueue(CFWriteStreamRef stream) |
static CFErrorRef |
CFWriteStreamCopyError(CFWriteStreamRef stream) |
static org.moe.natj.general.ptr.ConstVoidPtr |
CFWriteStreamCopyProperty(CFWriteStreamRef stream,
CFStringRef propertyName) |
static CFWriteStreamRef |
CFWriteStreamCreateWithAllocatedBuffers(CFAllocatorRef alloc,
CFAllocatorRef bufferAllocator)
New buffers are allocated from bufferAllocator as bytes are written to the stream.
|
static CFWriteStreamRef |
CFWriteStreamCreateWithBuffer(CFAllocatorRef alloc,
org.moe.natj.general.ptr.BytePtr buffer,
long bufferCapacity)
The stream writes into the buffer given; when bufferCapacity is exhausted, the stream is exhausted (status becomes kCFStreamStatusAtEnd)
|
static CFWriteStreamRef |
CFWriteStreamCreateWithFile(CFAllocatorRef alloc,
CFURLRef fileURL) |
static CFStreamError |
CFWriteStreamGetError(CFWriteStreamRef stream) |
static long |
CFWriteStreamGetStatus(CFWriteStreamRef stream) |
static long |
CFWriteStreamGetTypeID() |
static byte |
CFWriteStreamOpen(CFWriteStreamRef stream) |
static void |
CFWriteStreamScheduleWithRunLoop(CFWriteStreamRef stream,
CFRunLoopRef runLoop,
CFStringRef runLoopMode) |
static byte |
CFWriteStreamSetClient(CFWriteStreamRef stream,
long streamEvents,
CoreFoundation.Function_CFWriteStreamSetClient clientCB,
CFStreamClientContext clientContext) |
static void |
CFWriteStreamSetDispatchQueue(CFWriteStreamRef stream,
NSObject q) |
static byte |
CFWriteStreamSetProperty(CFWriteStreamRef stream,
CFStringRef propertyName,
org.moe.natj.general.ptr.ConstVoidPtr propertyValue) |
static void |
CFWriteStreamUnscheduleFromRunLoop(CFWriteStreamRef stream,
CFRunLoopRef runLoop,
CFStringRef runLoopMode) |
static long |
CFWriteStreamWrite(CFWriteStreamRef stream,
java.lang.String buffer,
long bufferLength)
Returns the number of bytes successfully written, -1 if an error has
occurred, or 0 if the stream has been filled to capacity (for fixed-length
streams).
|
static double |
kCFAbsoluteTimeIntervalSince1904() |
static double |
kCFAbsoluteTimeIntervalSince1970() |
static CFAllocatorRef |
kCFAllocatorDefault()
This is a synonym for NULL, if you'd rather use a named constant.
|
static CFAllocatorRef |
kCFAllocatorMalloc()
This allocator uses malloc(), realloc(), and free().
|
static CFAllocatorRef |
kCFAllocatorMallocZone()
This allocator explicitly uses the default malloc zone, returned by
malloc_default_zone().
|
static CFAllocatorRef |
kCFAllocatorNull()
Null allocator which does nothing and allocates no memory.
|
static CFAllocatorRef |
kCFAllocatorSystemDefault()
Default system allocator; you rarely need to use this.
|
static CFAllocatorRef |
kCFAllocatorUseContext()
Special allocator argument to CFAllocatorCreate() which means
"use the functions given in the context to allocate the allocator
itself as well".
|
static CFBooleanRef |
kCFBooleanFalse() |
static CFBooleanRef |
kCFBooleanTrue() |
static CFStringRef |
kCFBuddhistCalendar() |
static CFStringRef |
kCFBundleDevelopmentRegionKey()
The version number of the bundle.
|
static CFStringRef |
kCFBundleExecutableKey()
The version of the Info.plist format
|
static CFStringRef |
kCFBundleIdentifierKey()
The name of the executable in this bundle, if any
|
static CFStringRef |
kCFBundleInfoDictionaryVersionKey()
===================== Standard Info.plist keys =====================
|
static CFStringRef |
kCFBundleLocalizationsKey()
The human-readable name of the bundle.
|
static CFStringRef |
kCFBundleNameKey()
The name of the development language of the bundle.
|
static CFStringRef |
kCFBundleVersionKey()
The bundle identifier (for CFBundleGetBundleWithIdentifier())
|
static CFStringRef |
kCFChineseCalendar() |
static CFBagCallBacks |
kCFCopyStringBagCallBacks() |
static CFDictionaryKeyCallBacks |
kCFCopyStringDictionaryKeyCallBacks()
[@constant] kCFCopyStringDictionaryKeyCallBacks
Predefined CFDictionaryKeyCallBacks structure containing a
set of callbacks appropriate for use when the keys of a
CFDictionary are all CFStrings, which may be mutable and
need to be copied in order to serve as constant keys for
the values in the dictionary.
|
static CFSetCallBacks |
kCFCopyStringSetCallBacks()
[@constant] kCFCopyStringSetCallBacks
Predefined CFSetCallBacks structure containing a set of callbacks
appropriate for use when the values in a CFSet should be copies
of a CFString.
|
static double |
kCFCoreFoundationVersionNumber() |
static CFStringRef |
kCFDateFormatterAMSymbol()
CFString
|
static CFStringRef |
kCFDateFormatterCalendar()
CFCalendar
|
static CFStringRef |
kCFDateFormatterCalendarName()
CFString
|
static CFStringRef |
kCFDateFormatterDefaultDate()
CFDate
|
static CFStringRef |
kCFDateFormatterDefaultFormat()
CFString
|
static CFStringRef |
kCFDateFormatterDoesRelativeDateFormattingKey()
CFBoolean
|
static CFStringRef |
kCFDateFormatterEraSymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterGregorianStartDate()
CFDate
|
static CFStringRef |
kCFDateFormatterIsLenient()
CFBoolean
|
static CFStringRef |
kCFDateFormatterLongEraSymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterMonthSymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterPMSymbol()
CFString
|
static CFStringRef |
kCFDateFormatterQuarterSymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterShortMonthSymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterShortQuarterSymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterShortStandaloneMonthSymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterShortStandaloneQuarterSymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterShortStandaloneWeekdaySymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterShortWeekdaySymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterStandaloneMonthSymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterStandaloneQuarterSymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterStandaloneWeekdaySymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterTimeZone()
CFTimeZone
|
static CFStringRef |
kCFDateFormatterTwoDigitStartDate()
CFDate
|
static CFStringRef |
kCFDateFormatterVeryShortMonthSymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterVeryShortStandaloneMonthSymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterVeryShortStandaloneWeekdaySymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterVeryShortWeekdaySymbols()
CFArray of CFString
|
static CFStringRef |
kCFDateFormatterWeekdaySymbols()
CFArray of CFString
|
static CFStringRef |
kCFErrorDescriptionKey()
Key to identify the description in the userInfo dictionary.
|
static CFStringRef |
kCFErrorDomainCocoa() |
static CFStringRef |
kCFErrorDomainMach() |
static CFStringRef |
kCFErrorDomainOSStatus() |
static CFStringRef |
kCFErrorDomainPOSIX()
Predefined domains; value of "code" will correspond to preexisting values in these domains.
|
static CFStringRef |
kCFErrorFilePathKey()
Key to identify associated file path in userInfo.
|
static CFStringRef |
kCFErrorLocalizedDescriptionKey()
Key to identify the end user-presentable description in userInfo.
|
static CFStringRef |
kCFErrorLocalizedFailureKey()
Key to identify the end user-presentable failing operation ("what failed") description in userInfo.
|
static CFStringRef |
kCFErrorLocalizedFailureReasonKey()
Key to identify the end user-presentable failure reason ("why it failed") description in userInfo.
|
static CFStringRef |
kCFErrorLocalizedRecoverySuggestionKey()
Key to identify the end user-presentable recovery suggestion in userInfo.
|
static CFStringRef |
kCFErrorUnderlyingErrorKey()
Key to identify the underlying error in userInfo.
|
static CFStringRef |
kCFErrorURLKey()
Key to identify associated URL in userInfo.
|
static CFStringRef |
kCFGregorianCalendar() |
static CFStringRef |
kCFHebrewCalendar() |
static CFStringRef |
kCFIndianCalendar() |
static CFStringRef |
kCFIslamicCalendar() |
static CFStringRef |
kCFIslamicCivilCalendar() |
static CFStringRef |
kCFIslamicTabularCalendar() |
static CFStringRef |
kCFIslamicUmmAlQuraCalendar() |
static CFStringRef |
kCFISO8601Calendar() |
static CFStringRef |
kCFJapaneseCalendar() |
static CFStringRef |
kCFLocaleAlternateQuotationBeginDelimiterKey() |
static CFStringRef |
kCFLocaleAlternateQuotationEndDelimiterKey() |
static CFStringRef |
kCFLocaleCalendar() |
static CFStringRef |
kCFLocaleCalendarIdentifier() |
static CFStringRef |
kCFLocaleCollationIdentifier() |
static CFStringRef |
kCFLocaleCollatorIdentifier() |
static CFStringRef |
kCFLocaleCountryCode() |
static CFStringRef |
kCFLocaleCurrencyCode()
ISO 3-letter currency code
|
static CFStringRef |
kCFLocaleCurrencySymbol() |
static CFStringRef |
kCFLocaleCurrentLocaleDidChangeNotification()
Returns the display name for the given value.
|
static CFStringRef |
kCFLocaleDecimalSeparator() |
static CFStringRef |
kCFLocaleExemplarCharacterSet() |
static CFStringRef |
kCFLocaleGroupingSeparator() |
static CFStringRef |
kCFLocaleIdentifier()
Locale Keys
|
static CFStringRef |
kCFLocaleLanguageCode() |
static CFStringRef |
kCFLocaleMeasurementSystem()
"Metric", "U.S." or "U.K."
|
static CFStringRef |
kCFLocaleQuotationBeginDelimiterKey() |
static CFStringRef |
kCFLocaleQuotationEndDelimiterKey() |
static CFStringRef |
kCFLocaleScriptCode() |
static CFStringRef |
kCFLocaleUsesMetricSystem() |
static CFStringRef |
kCFLocaleVariantCode() |
static CFNullRef |
kCFNull()
the singleton null instance
|
static CFStringRef |
kCFNumberFormatterAlwaysShowDecimalSeparator()
CFBoolean
|
static CFStringRef |
kCFNumberFormatterCurrencyCode()
CFString
|
static CFStringRef |
kCFNumberFormatterCurrencyDecimalSeparator()
CFString
|
static CFStringRef |
kCFNumberFormatterCurrencyGroupingSeparator()
CFString
|
static CFStringRef |
kCFNumberFormatterCurrencySymbol()
CFString
|
static CFStringRef |
kCFNumberFormatterDecimalSeparator()
CFString
|
static CFStringRef |
kCFNumberFormatterDefaultFormat()
CFString
|
static CFStringRef |
kCFNumberFormatterExponentSymbol()
CFString
|
static CFStringRef |
kCFNumberFormatterFormatWidth()
CFNumber
|
static CFStringRef |
kCFNumberFormatterGroupingSeparator()
CFString
|
static CFStringRef |
kCFNumberFormatterGroupingSize()
CFNumber
|
static CFStringRef |
kCFNumberFormatterInfinitySymbol()
CFString
|
static CFStringRef |
kCFNumberFormatterInternationalCurrencySymbol()
CFString
|
static CFStringRef |
kCFNumberFormatterIsLenient()
CFBoolean
|
static CFStringRef |
kCFNumberFormatterMaxFractionDigits()
CFNumber
|
static CFStringRef |
kCFNumberFormatterMaxIntegerDigits()
CFNumber
|
static CFStringRef |
kCFNumberFormatterMaxSignificantDigits()
CFNumber
|
static CFStringRef |
kCFNumberFormatterMinFractionDigits()
CFNumber
|
static CFStringRef |
kCFNumberFormatterMinIntegerDigits()
CFNumber
|
static CFStringRef |
kCFNumberFormatterMinSignificantDigits()
CFNumber
|
static CFStringRef |
kCFNumberFormatterMinusSign()
CFString
|
static CFStringRef |
kCFNumberFormatterMultiplier()
CFNumber
|
static CFStringRef |
kCFNumberFormatterNaNSymbol()
CFString
|
static CFStringRef |
kCFNumberFormatterNegativePrefix()
CFString
|
static CFStringRef |
kCFNumberFormatterNegativeSuffix()
CFString
|
static CFStringRef |
kCFNumberFormatterPaddingCharacter()
CFString
|
static CFStringRef |
kCFNumberFormatterPaddingPosition()
CFNumber
|
static CFStringRef |
kCFNumberFormatterPercentSymbol()
CFString
|
static CFStringRef |
kCFNumberFormatterPerMillSymbol()
CFString
|
static CFStringRef |
kCFNumberFormatterPlusSign()
CFString
|
static CFStringRef |
kCFNumberFormatterPositivePrefix()
CFString
|
static CFStringRef |
kCFNumberFormatterPositiveSuffix()
CFString
|
static CFStringRef |
kCFNumberFormatterRoundingIncrement()
CFNumber
|
static CFStringRef |
kCFNumberFormatterRoundingMode()
CFNumber
|
static CFStringRef |
kCFNumberFormatterSecondaryGroupingSize()
CFNumber
|
static CFStringRef |
kCFNumberFormatterUseGroupingSeparator()
CFBoolean
|
static CFStringRef |
kCFNumberFormatterUseSignificantDigits()
CFBoolean
|
static CFStringRef |
kCFNumberFormatterZeroSymbol()
CFString
|
static CFNumberRef |
kCFNumberNaN() |
static CFNumberRef |
kCFNumberNegativeInfinity() |
static CFNumberRef |
kCFNumberPositiveInfinity() |
static CFStringRef |
kCFPersianCalendar() |
static CFStringRef |
kCFPlugInDynamicRegisterFunctionKey() |
static CFStringRef |
kCFPlugInDynamicRegistrationKey()
================ Standard Info.plist keys for plugIns ================
|
static CFStringRef |
kCFPlugInFactoriesKey() |
static CFStringRef |
kCFPlugInTypesKey() |
static CFStringRef |
kCFPlugInUnloadFunctionKey() |
static CFStringRef |
kCFPreferencesAnyApplication() |
static CFStringRef |
kCFPreferencesAnyHost() |
static CFStringRef |
kCFPreferencesAnyUser() |
static CFStringRef |
kCFPreferencesCurrentApplication() |
static CFStringRef |
kCFPreferencesCurrentHost() |
static CFStringRef |
kCFPreferencesCurrentUser() |
static CFStringRef |
kCFRepublicOfChinaCalendar() |
static CFStringRef |
kCFRunLoopCommonModes() |
static CFStringRef |
kCFRunLoopDefaultMode() |
static CFStringRef |
kCFSocketCommandKey()
Constants used in name registry server communications
|
static CFStringRef |
kCFSocketErrorKey() |
static CFStringRef |
kCFSocketNameKey() |
static CFStringRef |
kCFSocketRegisterCommand() |
static CFStringRef |
kCFSocketResultKey() |
static CFStringRef |
kCFSocketRetrieveCommand() |
static CFStringRef |
kCFSocketValueKey() |
static int |
kCFStreamErrorDomainSOCKS()
kCFStreamErrorDomainSOCKS
|
static int |
kCFStreamErrorDomainSSL()
kCFStreamErrorDomainSSL
|
static CFStringRef |
kCFStreamPropertyAppendToFile()
Property for file write streams; value should be a CFBoolean.
|
static CFStringRef |
kCFStreamPropertyDataWritten()
Value will be a CFData containing all bytes thusfar written; used to recover the data written to a memory write stream.
|
static CFStringRef |
kCFStreamPropertyFileCurrentOffset()
Value is a CFNumber
|
static CFStringRef |
kCFStreamPropertyShouldCloseNativeSocket()
kCFStreamPropertyShouldCloseNativeSocket
|
static CFStringRef |
kCFStreamPropertySocketNativeHandle()
Value will be a CFData containing the native handle
|
static CFStringRef |
kCFStreamPropertySocketRemoteHostName()
Value will be a CFString, or NULL if unknown
|
static CFStringRef |
kCFStreamPropertySocketRemotePortNumber()
Value will be a CFNumber, or NULL if unknown
|
static CFStringRef |
kCFStreamPropertySocketSecurityLevel()
kCFStreamPropertySocketSecurityLevel
|
static CFStringRef |
kCFStreamPropertySOCKSPassword()
kCFStreamPropertySOCKSPassword
|
static CFStringRef |
kCFStreamPropertySOCKSProxy()
kCFStreamPropertySOCKSProxy
|
static CFStringRef |
kCFStreamPropertySOCKSProxyHost()
kCFStreamPropertySOCKSProxyHost
|
static CFStringRef |
kCFStreamPropertySOCKSProxyPort()
kCFStreamPropertySOCKSProxyPort
|
static CFStringRef |
kCFStreamPropertySOCKSUser()
kCFStreamPropertySOCKSUser
|
static CFStringRef |
kCFStreamPropertySOCKSVersion()
kCFStreamPropertySOCKSVersion
|
static CFStringRef |
kCFStreamSocketSecurityLevelNegotiatedSSL()
kCFStreamSocketSecurityLevelNegotiatedSSL
|
static CFStringRef |
kCFStreamSocketSecurityLevelNone()
kCFStreamSocketSecurityLevelNone
|
static CFStringRef |
kCFStreamSocketSecurityLevelSSLv2()
kCFStreamSocketSecurityLevelSSLv2
|
static CFStringRef |
kCFStreamSocketSecurityLevelSSLv3()
kCFStreamSocketSecurityLevelSSLv3
|
static CFStringRef |
kCFStreamSocketSecurityLevelTLSv1()
kCFStreamSocketSecurityLevelTLSv1
|
static CFStringRef |
kCFStreamSocketSOCKSVersion4()
kCFStreamSocketSOCKSVersion4
|
static CFStringRef |
kCFStreamSocketSOCKSVersion5()
kCFStreamSocketSOCKSVersion5
|
static CFBinaryHeapCallBacks |
kCFStringBinaryHeapCallBacks()
[@constant] kCFStringBinaryHeapCallBacks
Predefined CFBinaryHeapCallBacks structure containing a set
of callbacks appropriate for use when the values in a CFBinaryHeap
are all CFString types.
|
static CFStringRef |
kCFStringTransformFullwidthHalfwidth() |
static CFStringRef |
kCFStringTransformHiraganaKatakana() |
static CFStringRef |
kCFStringTransformLatinArabic() |
static CFStringRef |
kCFStringTransformLatinCyrillic() |
static CFStringRef |
kCFStringTransformLatinGreek() |
static CFStringRef |
kCFStringTransformLatinHangul() |
static CFStringRef |
kCFStringTransformLatinHebrew() |
static CFStringRef |
kCFStringTransformLatinHiragana() |
static CFStringRef |
kCFStringTransformLatinKatakana() |
static CFStringRef |
kCFStringTransformLatinThai() |
static CFStringRef |
kCFStringTransformMandarinLatin() |
static CFStringRef |
kCFStringTransformStripCombiningMarks()
Transform identifiers for CFStringTransform()
|
static CFStringRef |
kCFStringTransformStripDiacritics() |
static CFStringRef |
kCFStringTransformToLatin() |
static CFStringRef |
kCFStringTransformToUnicodeName() |
static CFStringRef |
kCFStringTransformToXMLHex() |
static CFStringRef |
kCFTimeZoneSystemTimeZoneDidChangeNotification() |
static CFArrayCallBacks |
kCFTypeArrayCallBacks()
[@constant] kCFTypeArrayCallBacks
Predefined CFArrayCallBacks structure containing a set of callbacks
appropriate for use when the values in a CFArray are all CFTypes.
|
static CFBagCallBacks |
kCFTypeBagCallBacks() |
static CFDictionaryKeyCallBacks |
kCFTypeDictionaryKeyCallBacks()
[@constant] kCFTypeDictionaryKeyCallBacks
Predefined CFDictionaryKeyCallBacks structure containing a
set of callbacks appropriate for use when the keys of a
CFDictionary are all CFTypes.
|
static CFDictionaryValueCallBacks |
kCFTypeDictionaryValueCallBacks()
[@constant] kCFTypeDictionaryValueCallBacks
Predefined CFDictionaryValueCallBacks structure containing a set
of callbacks appropriate for use when the values in a CFDictionary
are all CFTypes.
|
static CFSetCallBacks |
kCFTypeSetCallBacks()
[@constant] kCFTypeSetCallBacks
Predefined CFSetCallBacks structure containing a set of callbacks
appropriate for use when the values in a CFSet are all CFTypes.
|
static CFStringRef |
kCFURLAddedToDirectoryDateKey()
The document identifier -- a value assigned by the kernel to a document (which can be either a file or directory) and is used to identify the document regardless of where it gets moved on a volume.
|
static CFStringRef |
kCFURLAttributeModificationDateKey()
The time the resource content was last modified (Read-write, value type CFDate)
|
static CFStringRef |
kCFURLCanonicalPathKey()
the URL's path as a file system path (Read-only, value type CFString)
|
static CFStringRef |
kCFURLContentAccessDateKey()
The date the resource was created (Read-write, value type CFDate)
|
static CFStringRef |
kCFURLContentModificationDateKey()
The date the resource was last accessed (Read-write, value type CFDate)
|
static CFStringRef |
kCFURLCreationDateKey()
True for resources whose filename extension is removed from the localized name property (Read-write, value type CFBoolean)
|
static CFStringRef |
kCFURLCustomIconKey()
not implemented
|
static CFStringRef |
kCFURLDocumentIdentifierKey()
An opaque generation identifier which can be compared using CFEqual() to determine if the data in a document has been modified.
|
static CFStringRef |
kCFURLEffectiveIconKey()
The user-visible label text (Read-only, value type CFString)
|
static CFStringRef |
kCFURLFileAllocatedSizeKey()
Total file size in bytes (Read-only, value type CFNumber)
|
static CFStringRef |
kCFURLFileContentIdentifierKey()
The time the resource's attributes were last modified (Read-only, value type CFDate)
|
static CFStringRef |
kCFURLFileDirectoryContents()
Deprecated.
|
static CFStringRef |
kCFURLFileExists()
Deprecated.
|
static CFStringRef |
kCFURLFileLastModificationTime()
Deprecated.
|
static CFStringRef |
kCFURLFileLength()
Deprecated.
|
static CFStringRef |
kCFURLFileOwnerID()
Deprecated.
|
static CFStringRef |
kCFURLFilePOSIXMode()
Deprecated.
|
static CFStringRef |
kCFURLFileProtectionComplete()
The file is stored in an encrypted format on disk and cannot be read from or written to while the device is locked or booting.
|
static CFStringRef |
kCFURLFileProtectionCompleteUnlessOpen()
The file is stored in an encrypted format on disk.
|
static CFStringRef |
kCFURLFileProtectionCompleteUntilFirstUserAuthentication()
The file is stored in an encrypted format on disk and cannot be accessed until after the device has booted.
|
static CFStringRef |
kCFURLFileProtectionKey()
true if the resource is a Finder alias file or a symlink, false otherwise ( Read-only, value type CFBooleanRef)
|
static CFStringRef |
kCFURLFileProtectionNone()
The file has no special protections associated with it.
|
static CFStringRef |
kCFURLFileResourceIdentifierKey()
not implemented
|
static CFStringRef |
kCFURLFileResourceTypeBlockSpecial() |
static CFStringRef |
kCFURLFileResourceTypeCharacterSpecial() |
static CFStringRef |
kCFURLFileResourceTypeDirectory() |
static CFStringRef |
kCFURLFileResourceTypeKey()
The quarantine properties as defined in LSQuarantine.h.
|
static CFStringRef |
kCFURLFileResourceTypeNamedPipe()
The file system object type values returned for the kCFURLFileResourceTypeKey
|
static CFStringRef |
kCFURLFileResourceTypeRegular() |
static CFStringRef |
kCFURLFileResourceTypeSocket() |
static CFStringRef |
kCFURLFileResourceTypeSymbolicLink() |
static CFStringRef |
kCFURLFileResourceTypeUnknown() |
static CFStringRef |
kCFURLFileSecurityKey()
true if this process (as determined by EUID) can execute a file resource or search a directory resource.
|
static CFStringRef |
kCFURLFileSizeKey()
File Properties
|
static CFStringRef |
kCFURLGenerationIdentifierKey()
true if this URL is a file system trigger directory.
|
static CFStringRef |
kCFURLHasHiddenExtensionKey()
True for resources normally not displayed to users (Read-write, value type CFBoolean).
|
static CFStringRef |
kCFURLHTTPStatusCode()
Deprecated.
|
static CFStringRef |
kCFURLHTTPStatusLine()
Deprecated.
|
static CFStringRef |
kCFURLIsAliasFileKey()
Total allocated size of the file in bytes (this may include space used by metadata), or NULL if not available.
|
static CFStringRef |
kCFURLIsApplicationKey()
True for packaged directories (Read-only 10_6 and 10_7, read-write 10_8, value type CFBoolean).
|
static CFStringRef |
kCFURLIsDirectoryKey()
True for regular files (Read-only, value type CFBoolean)
|
static CFStringRef |
kCFURLIsExcludedFromBackupKey()
The file system object's security information encapsulated in a CFFileSecurity object.
|
static CFStringRef |
kCFURLIsExecutableKey()
true if this process (as determined by EUID) can write to the resource.
|
static CFStringRef |
kCFURLIsHiddenKey()
True for user-immutable resources (Read-write, value type CFBoolean)
|
static CFStringRef |
kCFURLIsMountTriggerKey()
the URL's path as a canonical absolute file system path (Read-only, value type CFString)
|
static CFStringRef |
kCFURLIsPackageKey()
True for the root directory of a volume (Read-only, value type CFBoolean)
|
static CFStringRef |
kCFURLIsPurgeableKey()
True if the file has extended attributes.
|
static CFStringRef |
kCFURLIsReadableKey()
The optimal block size when reading or writing this file's data, or NULL if not available.
|
static CFStringRef |
kCFURLIsRegularFileKey()
Localized or extension-hidden name as displayed to users (Read-only, value type CFString)
|
static CFStringRef |
kCFURLIsSparseKey()
True if the file can be deleted by the file system when asked to free space.
|
static CFStringRef |
kCFURLIsSymbolicLinkKey()
True for directories (Read-only, CFBoolean)
|
static CFStringRef |
kCFURLIsSystemImmutableKey()
True if the resource is scriptable.
|
static CFStringRef |
kCFURLIsUbiquitousItemKey()
UbiquitousItem Properties
|
static CFStringRef |
kCFURLIsUserImmutableKey()
True for system-immutable resources (Read-write, value type CFBoolean)
|
static CFStringRef |
kCFURLIsVolumeKey()
True for symlinks (Read-only, value type CFBoolean)
|
static CFStringRef |
kCFURLIsWritableKey()
true if this process (as determined by EUID) can read the resource.
|
static CFStringRef |
kCFURLKeysOfUnsetValuesKey() |
static CFStringRef |
kCFURLLabelColorKey()
The label number assigned to the resource (Read-write, value type CFNumber)
|
static CFStringRef |
kCFURLLabelNumberKey()
User-visible type or "kind" description (Read-only, value type CFString)
|
static CFStringRef |
kCFURLLinkCountKey()
True if the file has sparse regions.
|
static CFStringRef |
kCFURLLocalizedLabelKey()
not implemented
|
static CFStringRef |
kCFURLLocalizedNameKey()
The resource name provided by the file system (Read-write, value type CFString)
|
static CFStringRef |
kCFURLLocalizedTypeDescriptionKey()
Uniform type identifier (UTI) for the resource (Read-only, value type CFString)
|
static CFStringRef |
kCFURLMayHaveExtendedAttributesKey()
True for cloned files and their originals that may share all, some, or no data blocks.
|
static CFStringRef |
kCFURLMayShareFileContentKey()
A 64-bit value assigned by APFS that identifies a file's content data stream.
|
static CFStringRef |
kCFURLNameKey()
Properties of File System Resources
|
static CFStringRef |
kCFURLParentDirectoryURLKey()
Number of hard links to the resource (Read-only, value type CFNumber)
|
static CFStringRef |
kCFURLPathKey()
The array of Tag names (Read-write, value type CFArray of CFString)
|
static CFStringRef |
kCFURLPreferredIOBlockSizeKey()
An identifier that can be used to identify the volume the file system object is on.
|
static CFStringRef |
kCFURLTotalFileAllocatedSizeKey()
Total displayable size of the file in bytes (this may include space used by metadata), or NULL if not available.
|
static CFStringRef |
kCFURLTotalFileSizeKey()
Total size allocated on disk for the file in bytes (number of blocks times block size) (Read-only, value type CFNumber)
|
static CFStringRef |
kCFURLTypeIdentifierKey()
URL of the volume on which the resource is stored (Read-only, value type CFURL)
|
static CFStringRef |
kCFURLUbiquitousItemDownloadingErrorKey()
Returns the download status of this item.
|
static CFStringRef |
kCFURLUbiquitousItemDownloadingStatusCurrent()
there is a local version of this item available.
|
static CFStringRef |
kCFURLUbiquitousItemDownloadingStatusDownloaded()
this item has not been downloaded yet.
|
static CFStringRef |
kCFURLUbiquitousItemDownloadingStatusKey()
Use NSMetadataQuery and NSMetadataUbiquitousItemPercentUploadedKey on NSMetadataItem instead
|
static CFStringRef |
kCFURLUbiquitousItemDownloadingStatusNotDownloaded()
The values returned for kCFURLUbiquitousItemDownloadingStatusKey
|
static CFStringRef |
kCFURLUbiquitousItemHasUnresolvedConflictsKey()
true if this item is synced to the cloud, false if it is only a local file.
|
static CFStringRef |
kCFURLUbiquitousItemIsDownloadedKey()
Deprecated.
|
static CFStringRef |
kCFURLUbiquitousItemIsDownloadingKey()
Equivalent to NSURLUbiquitousItemDownloadingStatusKey == NSURLUbiquitousItemDownloadingStatusCurrent.
|
static CFStringRef |
kCFURLUbiquitousItemIsExcludedFromSyncKey()
returns the error when uploading the item to iCloud failed.
|
static CFStringRef |
kCFURLUbiquitousItemIsUploadedKey()
true if data is being downloaded for this item.
|
static CFStringRef |
kCFURLUbiquitousItemIsUploadingKey()
true if there is data present in the cloud for this item.
|
static CFStringRef |
kCFURLUbiquitousItemPercentDownloadedKey()
Deprecated.
|
static CFStringRef |
kCFURLUbiquitousItemPercentUploadedKey()
Deprecated.
|
static CFStringRef |
kCFURLUbiquitousItemUploadingErrorKey()
returns the error when downloading the item from iCloud failed.
|
static CFStringRef |
kCFURLVolumeAvailableCapacityForImportantUsageKey()
Total free space in bytes (Read-only, value type CFNumber)
|
static CFStringRef |
kCFURLVolumeAvailableCapacityForOpportunisticUsageKey()
Total available capacity in bytes for "Important" resources, including space expected to be cleared by purging non-essential and cached resources.
|
static CFStringRef |
kCFURLVolumeAvailableCapacityKey()
Total volume capacity in bytes (Read-only, value type CFNumber)
|
static CFStringRef |
kCFURLVolumeCreationDateKey()
true if the volume is read-only.
|
static CFStringRef |
kCFURLVolumeIdentifierKey()
An identifier which can be used to compare two file system objects for equality using CFEqual (i.e, two object identifiers are equal if they have the same file system path or if the paths are linked to same inode on the same file system).
|
static CFStringRef |
kCFURLVolumeIsAutomountedKey()
true if the volume's device is connected to an internal bus, false if connected to an external bus, or NULL if not available.
|
static CFStringRef |
kCFURLVolumeIsBrowsableKey()
true if the volume implements extended security (ACLs).
|
static CFStringRef |
kCFURLVolumeIsEjectableKey()
The largest file size (in bytes) supported by this file system, or NULL if this cannot be determined.
|
static CFStringRef |
kCFURLVolumeIsEncryptedKey()
The user-presentable name of the volume (Read-only, value type CFString)
|
static CFStringRef |
kCFURLVolumeIsInternalKey()
true if the volume's media is removable from the drive mechanism.
|
static CFStringRef |
kCFURLVolumeIsJournalingKey()
true if the volume format supports a journal used to speed recovery in case of unplanned restart (such as a power outage or crash).
|
static CFStringRef |
kCFURLVolumeIsLocalKey()
true if the volume is automounted.
|
static CFStringRef |
kCFURLVolumeIsReadOnlyKey()
true if the volume is stored on a local device.
|
static CFStringRef |
kCFURLVolumeIsRemovableKey()
true if the volume's media is ejectable from the drive mechanism under software control.
|
static CFStringRef |
kCFURLVolumeIsRootFileSystemKey()
true if the volume is encrypted.
|
static CFStringRef |
kCFURLVolumeLocalizedFormatDescriptionKey()
As a convenience, volume properties can be requested from any file system URL.
|
static CFStringRef |
kCFURLVolumeLocalizedNameKey()
The name of the volume (Read-write, settable if kCFURLVolumeSupportsRenamingKey is true and permissions allow, value type CFString)
|
static CFStringRef |
kCFURLVolumeMaximumFileSizeKey()
true if the volume should be visible via the GUI (i.e., appear on the Desktop as a separate volume).
|
static CFStringRef |
kCFURLVolumeNameKey()
The volume's persistent UUID as a string, or NULL if a persistent UUID is not available for the volume.
|
static CFStringRef |
kCFURLVolumeResourceCountKey()
Total available capacity in bytes for "Opportunistic" resources, including space expected to be cleared by purging non-essential and cached resources.
|
static CFStringRef |
kCFURLVolumeSupportsAccessPermissionsKey()
true if the volume supports making files immutable with the kCFURLIsUserImmutableKey or kCFURLIsSystemImmutableKey properties (Read-only, value type CFBoolean)
|
static CFStringRef |
kCFURLVolumeSupportsAdvisoryFileLockingKey()
true if the volume can be renamed.
|
static CFStringRef |
kCFURLVolumeSupportsCasePreservedNamesKey()
true if the volume format treats upper and lower case characters in file and directory names as different.
|
static CFStringRef |
kCFURLVolumeSupportsCaseSensitiveNamesKey()
For security reasons, parts of a file (runs) that have never been written to must appear to contain zeroes.
|
static CFStringRef |
kCFURLVolumeSupportsCompressionKey()
true if the volume is the root filesystem.
|
static CFStringRef |
kCFURLVolumeSupportsExclusiveRenamingKey()
true if the volume supports renamex_np(2)'s RENAME_SWAP option (Read-only, value type CFBoolean)
|
static CFStringRef |
kCFURLVolumeSupportsExtendedSecurityKey()
true if the volume implements whole-file flock(2) style advisory locks, and the O_EXLOCK and O_SHLOCK flags of the open(2) call.
|
static CFStringRef |
kCFURLVolumeSupportsFileCloningKey()
true if the volume supports transparent decompression of compressed files using decmpfs.
|
static CFStringRef |
kCFURLVolumeSupportsFileProtectionKey()
true if the volume supports setting POSIX access permissions with the kCFURLFileSecurityKey property (Read-only, value type CFBoolean)
|
static CFStringRef |
kCFURLVolumeSupportsHardLinksKey()
true if the volume format supports symbolic links (Read-only, value type CFBoolean)
|
static CFStringRef |
kCFURLVolumeSupportsImmutableFilesKey()
true if the volume supports renamex_np(2)'s RENAME_EXCL option (Read-only, value type CFBoolean)
|
static CFStringRef |
kCFURLVolumeSupportsJournalingKey()
true if the volume format supports hard links (Read-only, value type CFBoolean)
|
static CFStringRef |
kCFURLVolumeSupportsPersistentIDsKey()
Total number of resources on the volume (Read-only, value type CFNumber)
|
static CFStringRef |
kCFURLVolumeSupportsRenamingKey()
true if the volume supports returning volume size values (kCFURLVolumeTotalCapacityKey and kCFURLVolumeAvailableCapacityKey).
|
static CFStringRef |
kCFURLVolumeSupportsRootDirectoryDatesKey()
true if the volume format preserves the case of file and directory names.
|
static CFStringRef |
kCFURLVolumeSupportsSparseFilesKey()
true if the volume is currently using a journal for speedy recovery after an unplanned restart.
|
static CFStringRef |
kCFURLVolumeSupportsSwapRenamingKey()
true if the volume supports clonefile(2) (Read-only, value type CFBoolean)
|
static CFStringRef |
kCFURLVolumeSupportsSymbolicLinksKey()
true if the volume format supports persistent object identifiers and can look up file system objects by their IDs (Read-only, value type CFBoolean)
|
static CFStringRef |
kCFURLVolumeSupportsVolumeSizesKey()
true if the volume supports reliable storage of times for the root directory.
|
static CFStringRef |
kCFURLVolumeSupportsZeroRunsKey()
true if the volume format supports sparse files, that is, files which can have 'holes' that have never been written to, and thus do not consume space on disk.
|
static CFStringRef |
kCFURLVolumeTotalCapacityKey()
The user-visible volume format (Read-only, value type CFString)
|
static CFStringRef |
kCFURLVolumeURLForRemountingKey()
The volume's creation date, or NULL if this cannot be determined.
|
static CFStringRef |
kCFURLVolumeURLKey()
The resource's parent directory, if any (Read-only, value type CFURL)
|
static CFStringRef |
kCFURLVolumeUUIDStringKey()
The CFURL needed to remount a network volume, or NULL if not available.
|
public static final long kCFNotFound
public static CFRange CFRangeMake(long loc, long len)
public static CFRange __CFRangeMake(long loc, long len)
public static long CFNullGetTypeID()
public static long CFAllocatorGetTypeID()
public static void CFAllocatorSetDefault(CFAllocatorRef allocator)
An allocator set as the default will never be released, even if later another allocator replaces it as the default. Not only is it impractical for it to be released (as there might be caches created under the covers that refer to the allocator), in general it's also safer and more efficient to keep it around.
If you wish to use a custom allocator in a context, it's best to provide it as the argument to the various creation functions rather than setting it as the default. Setting the default allocator is not encouraged.
If you do set an allocator as the default, either do it for all time in your app, or do it in a nested fashion (by restoring the previous allocator when you exit your context). The latter might be appropriate for plug-ins or libraries that wish to set the default allocator.
public static CFAllocatorRef CFAllocatorGetDefault()
public static CFAllocatorRef CFAllocatorCreate(CFAllocatorRef allocator, CFAllocatorContext context)
public static org.moe.natj.general.ptr.VoidPtr CFAllocatorAllocate(CFAllocatorRef allocator, long size, long hint)
public static org.moe.natj.general.ptr.VoidPtr CFAllocatorReallocate(CFAllocatorRef allocator, org.moe.natj.general.ptr.VoidPtr ptr, long newsize, long hint)
public static void CFAllocatorDeallocate(CFAllocatorRef allocator, org.moe.natj.general.ptr.VoidPtr ptr)
public static long CFAllocatorGetPreferredSizeForSize(CFAllocatorRef allocator, long size, long hint)
public static void CFAllocatorGetContext(CFAllocatorRef allocator, CFAllocatorContext context)
public static long CFGetTypeID(org.moe.natj.general.ptr.ConstVoidPtr cf)
public static CFStringRef CFCopyTypeIDDescription(long type_id)
public static org.moe.natj.general.ptr.ConstVoidPtr CFRetain(org.moe.natj.general.ptr.ConstVoidPtr cf)
public static void CFRelease(org.moe.natj.general.ptr.ConstVoidPtr cf)
public static org.moe.natj.general.ptr.ConstVoidPtr CFAutorelease(org.moe.natj.general.ptr.ConstVoidPtr arg)
public static long CFGetRetainCount(org.moe.natj.general.ptr.ConstVoidPtr cf)
public static byte CFEqual(org.moe.natj.general.ptr.ConstVoidPtr cf1,
org.moe.natj.general.ptr.ConstVoidPtr cf2)
public static long CFHash(org.moe.natj.general.ptr.ConstVoidPtr cf)
public static CFStringRef CFCopyDescription(org.moe.natj.general.ptr.ConstVoidPtr cf)
public static CFAllocatorRef CFGetAllocator(org.moe.natj.general.ptr.ConstVoidPtr cf)
public static long CFDictionaryGetTypeID()
public static CFDictionaryRef CFDictionaryCreate(CFAllocatorRef allocator, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> keys, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values, long numValues, CFDictionaryKeyCallBacks keyCallBacks, CFDictionaryValueCallBacks valueCallBacks)
allocator - The CFAllocator which should be used to allocate
memory for the dictionary and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.keys - A C array of the pointer-sized keys to be used for
the parallel C array of values to be put into the dictionary.
This parameter may be NULL if the numValues parameter is 0.
This C array is not changed or freed by this function. If
this parameter is not a valid pointer to a C array of at
least numValues pointers, the behavior is undefined.values - A C array of the pointer-sized values to be in the
dictionary. This parameter may be NULL if the numValues
parameter is 0. This C array is not changed or freed by
this function. If this parameter is not a valid pointer to
a C array of at least numValues pointers, the behavior is
undefined.numValues - The number of values to copy from the keys and
values C arrays into the CFDictionary. This number will be
the count of the dictionary. If this parameter is
negative, or greater than the number of values actually
in the keys or values C arrays, the behavior is undefined.keyCallBacks - A pointer to a CFDictionaryKeyCallBacks structure
initialized with the callbacks for the dictionary to use on
each key in the dictionary. The retain callback will be used
within this function, for example, to retain all of the new
keys from the keys C array. A copy of the contents of the
callbacks structure is made, so that a pointer to a structure
on the stack can be passed in, or can be reused for multiple
dictionary creations. If the version field of this
callbacks structure is not one of the defined ones for
CFDictionary, the behavior is undefined. The retain field may
be NULL, in which case the CFDictionary will do nothing to add
a retain to the keys of the contained values. The release field
may be NULL, in which case the CFDictionary will do nothing
to remove the dictionary's retain (if any) on the keys when the
dictionary is destroyed or a key-value pair is removed. If the
copyDescription field is NULL, the dictionary will create a
simple description for a key. If the equal field is NULL, the
dictionary will use pointer equality to test for equality of
keys. If the hash field is NULL, a key will be converted from
a pointer to an integer to compute the hash code. This callbacks
parameter itself may be NULL, which is treated as if a valid
structure of version 0 with all fields NULL had been passed in.
Otherwise, if any of the fields are not valid pointers to
functions of the correct type, or this parameter is not a
valid pointer to a CFDictionaryKeyCallBacks callbacks structure,
the behavior is undefined. If any of the keys put into the
dictionary is not one understood by one of the callback functions
the behavior when that callback function is used is undefined.valueCallBacks - A pointer to a CFDictionaryValueCallBacks structure
initialized with the callbacks for the dictionary to use on
each value in the dictionary. The retain callback will be used
within this function, for example, to retain all of the new
values from the values C array. A copy of the contents of the
callbacks structure is made, so that a pointer to a structure
on the stack can be passed in, or can be reused for multiple
dictionary creations. If the version field of this callbacks
structure is not one of the defined ones for CFDictionary, the
behavior is undefined. The retain field may be NULL, in which
case the CFDictionary will do nothing to add a retain to values
as they are put into the dictionary. The release field may be
NULL, in which case the CFDictionary will do nothing to remove
the dictionary's retain (if any) on the values when the
dictionary is destroyed or a key-value pair is removed. If the
copyDescription field is NULL, the dictionary will create a
simple description for a value. If the equal field is NULL, the
dictionary will use pointer equality to test for equality of
values. This callbacks parameter itself may be NULL, which is
treated as if a valid structure of version 0 with all fields
NULL had been passed in. Otherwise,
if any of the fields are not valid pointers to functions
of the correct type, or this parameter is not a valid
pointer to a CFDictionaryValueCallBacks callbacks structure,
the behavior is undefined. If any of the values put into the
dictionary is not one understood by one of the callback functions
the behavior when that callback function is used is undefined.public static CFDictionaryRef CFDictionaryCreateCopy(CFAllocatorRef allocator, CFDictionaryRef theDict)
allocator - The CFAllocator which should be used to allocate
memory for the dictionary and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.theDict - The dictionary which is to be copied. The keys and values
from the dictionary are copied as pointers into the new
dictionary (that is, the values themselves are copied, not
that which the values point to, if anything). However, the
keys and values are also retained by the new dictionary using
the retain function of the original dictionary.
The count of the new dictionary will be the same as the
given dictionary. The new dictionary uses the same callbacks
as the dictionary to be copied. If this parameter is
not a valid CFDictionary, the behavior is undefined.public static CFMutableDictionaryRef CFDictionaryCreateMutable(CFAllocatorRef allocator, long capacity, CFDictionaryKeyCallBacks keyCallBacks, CFDictionaryValueCallBacks valueCallBacks)
allocator - The CFAllocator which should be used to allocate
memory for the dictionary and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.capacity - A hint about the number of values that will be held
by the CFDictionary. Pass 0 for no hint. The implementation may
ignore this hint, or may use it to optimize various
operations. A dictionary's actual capacity is only limited by
address space and available memory constraints). If this
parameter is negative, the behavior is undefined.keyCallBacks - A pointer to a CFDictionaryKeyCallBacks structure
initialized with the callbacks for the dictionary to use on
each key in the dictionary. A copy of the contents of the
callbacks structure is made, so that a pointer to a structure
on the stack can be passed in, or can be reused for multiple
dictionary creations. If the version field of this
callbacks structure is not one of the defined ones for
CFDictionary, the behavior is undefined. The retain field may
be NULL, in which case the CFDictionary will do nothing to add
a retain to the keys of the contained values. The release field
may be NULL, in which case the CFDictionary will do nothing
to remove the dictionary's retain (if any) on the keys when the
dictionary is destroyed or a key-value pair is removed. If the
copyDescription field is NULL, the dictionary will create a
simple description for a key. If the equal field is NULL, the
dictionary will use pointer equality to test for equality of
keys. If the hash field is NULL, a key will be converted from
a pointer to an integer to compute the hash code. This callbacks
parameter itself may be NULL, which is treated as if a valid
structure of version 0 with all fields NULL had been passed in.
Otherwise, if any of the fields are not valid pointers to
functions of the correct type, or this parameter is not a
valid pointer to a CFDictionaryKeyCallBacks callbacks structure,
the behavior is undefined. If any of the keys put into the
dictionary is not one understood by one of the callback functions
the behavior when that callback function is used is undefined.valueCallBacks - A pointer to a CFDictionaryValueCallBacks structure
initialized with the callbacks for the dictionary to use on
each value in the dictionary. The retain callback will be used
within this function, for example, to retain all of the new
values from the values C array. A copy of the contents of the
callbacks structure is made, so that a pointer to a structure
on the stack can be passed in, or can be reused for multiple
dictionary creations. If the version field of this callbacks
structure is not one of the defined ones for CFDictionary, the
behavior is undefined. The retain field may be NULL, in which
case the CFDictionary will do nothing to add a retain to values
as they are put into the dictionary. The release field may be
NULL, in which case the CFDictionary will do nothing to remove
the dictionary's retain (if any) on the values when the
dictionary is destroyed or a key-value pair is removed. If the
copyDescription field is NULL, the dictionary will create a
simple description for a value. If the equal field is NULL, the
dictionary will use pointer equality to test for equality of
values. This callbacks parameter itself may be NULL, which is
treated as if a valid structure of version 0 with all fields
NULL had been passed in. Otherwise,
if any of the fields are not valid pointers to functions
of the correct type, or this parameter is not a valid
pointer to a CFDictionaryValueCallBacks callbacks structure,
the behavior is undefined. If any of the values put into the
dictionary is not one understood by one of the callback functions
the behavior when that callback function is used is undefined.public static CFMutableDictionaryRef CFDictionaryCreateMutableCopy(CFAllocatorRef allocator, long capacity, CFDictionaryRef theDict)
allocator - The CFAllocator which should be used to allocate
memory for the dictionary and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.capacity - A hint about the number of values that will be held
by the CFDictionary. Pass 0 for no hint. The implementation may
ignore this hint, or may use it to optimize various
operations. A dictionary's actual capacity is only limited by
address space and available memory constraints).
This parameter must be greater than or equal
to the count of the dictionary which is to be copied, or the
behavior is undefined. If this parameter is negative, the
behavior is undefined.theDict - The dictionary which is to be copied. The keys and values
from the dictionary are copied as pointers into the new
dictionary (that is, the values themselves are copied, not
that which the values point to, if anything). However, the
keys and values are also retained by the new dictionary using
the retain function of the original dictionary.
The count of the new dictionary will be the same as the
given dictionary. The new dictionary uses the same callbacks
as the dictionary to be copied. If this parameter is
not a valid CFDictionary, the behavior is undefined.public static long CFDictionaryGetCount(CFDictionaryRef theDict)
theDict - The dictionary to be queried. If this parameter is
not a valid CFDictionary, the behavior is undefined.public static long CFDictionaryGetCountOfKey(CFDictionaryRef theDict, org.moe.natj.general.ptr.ConstVoidPtr key)
theDict - The dictionary to be searched. If this parameter is
not a valid CFDictionary, the behavior is undefined.key - The key for which to find matches in the dictionary. The
hash() and equal() key callbacks provided when the dictionary
was created are used to compare. If the hash() key callback
was NULL, the key is treated as a pointer and converted to
an integer. If the equal() key callback was NULL, pointer
equality (in C, ==) is used. If key, or any of the keys in
the dictionary, are not understood by the equal() callback,
the behavior is undefined.public static long CFDictionaryGetCountOfValue(CFDictionaryRef theDict, org.moe.natj.general.ptr.ConstVoidPtr value)
theDict - The dictionary to be searched. If this parameter is
not a valid CFDictionary, the behavior is undefined.value - The value for which to find matches in the dictionary. The
equal() callback provided when the dictionary was created is
used to compare. If the equal() value callback was NULL, pointer
equality (in C, ==) is used. If value, or any of the values in
the dictionary, are not understood by the equal() callback,
the behavior is undefined.public static byte CFDictionaryContainsKey(CFDictionaryRef theDict, org.moe.natj.general.ptr.ConstVoidPtr key)
theDict - The dictionary to be searched. If this parameter is
not a valid CFDictionary, the behavior is undefined.key - The key for which to find matches in the dictionary. The
hash() and equal() key callbacks provided when the dictionary
was created are used to compare. If the hash() key callback
was NULL, the key is treated as a pointer and converted to
an integer. If the equal() key callback was NULL, pointer
equality (in C, ==) is used. If key, or any of the keys in
the dictionary, are not understood by the equal() callback,
the behavior is undefined.public static byte CFDictionaryContainsValue(CFDictionaryRef theDict, org.moe.natj.general.ptr.ConstVoidPtr value)
theDict - The dictionary to be searched. If this parameter is
not a valid CFDictionary, the behavior is undefined.value - The value for which to find matches in the dictionary. The
equal() callback provided when the dictionary was created is
used to compare. If the equal() callback was NULL, pointer
equality (in C, ==) is used. If value, or any of the values
in the dictionary, are not understood by the equal() callback,
the behavior is undefined.public static org.moe.natj.general.ptr.ConstVoidPtr CFDictionaryGetValue(CFDictionaryRef theDict, org.moe.natj.general.ptr.ConstVoidPtr key)
theDict - The dictionary to be queried. If this parameter is
not a valid CFDictionary, the behavior is undefined.key - The key for which to find a match in the dictionary. The
hash() and equal() key callbacks provided when the dictionary
was created are used to compare. If the hash() key callback
was NULL, the key is treated as a pointer and converted to
an integer. If the equal() key callback was NULL, pointer
equality (in C, ==) is used. If key, or any of the keys in
the dictionary, are not understood by the equal() callback,
the behavior is undefined.public static byte CFDictionaryGetValueIfPresent(CFDictionaryRef theDict, org.moe.natj.general.ptr.ConstVoidPtr key, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> value)
theDict - The dictionary to be queried. If this parameter is
not a valid CFDictionary, the behavior is undefined.key - The key for which to find a match in the dictionary. The
hash() and equal() key callbacks provided when the dictionary
was created are used to compare. If the hash() key callback
was NULL, the key is treated as a pointer and converted to
an integer. If the equal() key callback was NULL, pointer
equality (in C, ==) is used. If key, or any of the keys in
the dictionary, are not understood by the equal() callback,
the behavior is undefined.value - A pointer to memory which should be filled with the
pointer-sized value if a matching key is found. If no key
match is found, the contents of the storage pointed to by
this parameter are undefined. This parameter may be NULL,
in which case the value from the dictionary is not returned
(but the return value of this function still indicates
whether or not the key-value pair was present).public static void CFDictionaryGetKeysAndValues(CFDictionaryRef theDict, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> keys, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values)
theDict - The dictionary to be queried. If this parameter is
not a valid CFDictionary, the behavior is undefined.keys - A C array of pointer-sized values to be filled with keys
from the dictionary. The keys and values C arrays are parallel
to each other (that is, the items at the same indices form a
key-value pair from the dictionary). This parameter may be NULL
if the keys are not desired. If this parameter is not a valid
pointer to a C array of at least CFDictionaryGetCount() pointers,
or NULL, the behavior is undefined.values - A C array of pointer-sized values to be filled with values
from the dictionary. The keys and values C arrays are parallel
to each other (that is, the items at the same indices form a
key-value pair from the dictionary). This parameter may be NULL
if the values are not desired. If this parameter is not a valid
pointer to a C array of at least CFDictionaryGetCount() pointers,
or NULL, the behavior is undefined.public static void CFDictionaryApplyFunction(CFDictionaryRef theDict, CoreFoundation.Function_CFDictionaryApplyFunction applier, org.moe.natj.general.ptr.VoidPtr context)
theDict - The dictionary to be queried. If this parameter is
not a valid CFDictionary, the behavior is undefined.applier - The callback function to call once for each value in
the dictionary. If this parameter is not a
pointer to a function of the correct prototype, the behavior
is undefined. If there are keys or values which the
applier function does not expect or cannot properly apply
to, the behavior is undefined.context - A pointer-sized user-defined value, which is passed
as the third parameter to the applier function, but is
otherwise unused by this function. If the context is not
what is expected by the applier function, the behavior is
undefined.public static void CFDictionaryAddValue(CFMutableDictionaryRef theDict, org.moe.natj.general.ptr.ConstVoidPtr key, org.moe.natj.general.ptr.ConstVoidPtr value)
theDict - The dictionary to which the value is to be added. If this
parameter is not a valid mutable CFDictionary, the behavior is
undefined.key - The key of the value to add to the dictionary. The key is
retained by the dictionary using the retain callback provided
when the dictionary was created. If the key is not of the sort
expected by the retain callback, the behavior is undefined. If
a key which matches this key is already present in the dictionary,
this function does nothing ("add if absent").value - The value to add to the dictionary. The value is retained
by the dictionary using the retain callback provided when the
dictionary was created. If the value is not of the sort expected
by the retain callback, the behavior is undefined.public static void CFDictionarySetValue(CFMutableDictionaryRef theDict, org.moe.natj.general.ptr.ConstVoidPtr key, org.moe.natj.general.ptr.ConstVoidPtr value)
theDict - The dictionary to which the value is to be set. If this
parameter is not a valid mutable CFDictionary, the behavior is
undefined.key - The key of the value to set into the dictionary. If a key
which matches this key is already present in the dictionary, only
the value is changed ("add if absent, replace if present"). If
no key matches the given key, the key-value pair is added to the
dictionary. If added, the key is retained by the dictionary,
using the retain callback provided
when the dictionary was created. If the key is not of the sort
expected by the key retain callback, the behavior is undefined.value - The value to add to or replace into the dictionary. The value
is retained by the dictionary using the retain callback provided
when the dictionary was created, and the previous value if any is
released. If the value is not of the sort expected by the
retain or release callbacks, the behavior is undefined.public static void CFDictionaryReplaceValue(CFMutableDictionaryRef theDict, org.moe.natj.general.ptr.ConstVoidPtr key, org.moe.natj.general.ptr.ConstVoidPtr value)
theDict - The dictionary to which the value is to be replaced. If this
parameter is not a valid mutable CFDictionary, the behavior is
undefined.key - The key of the value to replace in the dictionary. If a key
which matches this key is present in the dictionary, the value
is changed to the given value, otherwise this function does
nothing ("replace if present").value - The value to replace into the dictionary. The value
is retained by the dictionary using the retain callback provided
when the dictionary was created, and the previous value is
released. If the value is not of the sort expected by the
retain or release callbacks, the behavior is undefined.public static void CFDictionaryRemoveValue(CFMutableDictionaryRef theDict, org.moe.natj.general.ptr.ConstVoidPtr key)
theDict - The dictionary from which the value is to be removed. If this
parameter is not a valid mutable CFDictionary, the behavior is
undefined.key - The key of the value to remove from the dictionary. If a key
which matches this key is present in the dictionary, the key-value
pair is removed from the dictionary, otherwise this function does
nothing ("remove if present").public static void CFDictionaryRemoveAllValues(CFMutableDictionaryRef theDict)
theDict - The dictionary from which all of the values are to be
removed. If this parameter is not a valid mutable
CFDictionary, the behavior is undefined.public static long CFDataGetTypeID()
public static CFDataRef CFDataCreate(CFAllocatorRef allocator, java.lang.String bytes, long length)
public static CFDataRef CFDataCreateWithBytesNoCopy(CFAllocatorRef allocator, java.lang.String bytes, long length, CFAllocatorRef bytesDeallocator)
public static CFDataRef CFDataCreateCopy(CFAllocatorRef allocator, CFDataRef theData)
public static CFMutableDataRef CFDataCreateMutable(CFAllocatorRef allocator, long capacity)
public static CFMutableDataRef CFDataCreateMutableCopy(CFAllocatorRef allocator, long capacity, CFDataRef theData)
public static long CFDataGetLength(CFDataRef theData)
public static java.lang.String CFDataGetBytePtr(CFDataRef theData)
public static org.moe.natj.general.ptr.BytePtr CFDataGetMutableBytePtr(CFMutableDataRef theData)
public static void CFDataGetBytes(CFDataRef theData, CFRange range, org.moe.natj.general.ptr.BytePtr buffer)
public static void CFDataSetLength(CFMutableDataRef theData, long length)
public static void CFDataIncreaseLength(CFMutableDataRef theData, long extraLength)
public static void CFDataAppendBytes(CFMutableDataRef theData, java.lang.String bytes, long length)
public static void CFDataReplaceBytes(CFMutableDataRef theData, CFRange range, java.lang.String newBytes, long newLength)
public static void CFDataDeleteBytes(CFMutableDataRef theData, CFRange range)
public static CFRange CFDataFind(CFDataRef theData, CFDataRef dataToFind, CFRange searchRange, long compareOptions)
public static long CFArrayGetTypeID()
public static CFArrayRef CFArrayCreate(CFAllocatorRef allocator, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values, long numValues, CFArrayCallBacks callBacks)
allocator - The CFAllocator which should be used to allocate
memory for the array and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.values - A C array of the pointer-sized values to be in the
array. The values in the array are ordered in the same order
in which they appear in this C array. This parameter may be
NULL if the numValues parameter is 0. This C array is not
changed or freed by this function. If this parameter is not
a valid pointer to a C array of at least numValues pointers,
the behavior is undefined.numValues - The number of values to copy from the values C
array into the CFArray. This number will be the count of the
array.
If this parameter is negative, or greater than the number of
values actually in the value's C array, the behavior is
undefined.callBacks - A pointer to a CFArrayCallBacks structure
initialized with the callbacks for the array to use on each
value in the array. The retain callback will be used within
this function, for example, to retain all of the new values
from the values C array. A copy of the contents of the
callbacks structure is made, so that a pointer to a
structure on the stack can be passed in, or can be reused
for multiple array creations. If the version field of this
callbacks structure is not one of the defined ones for
CFArray, the behavior is undefined. The retain field may be
NULL, in which case the CFArray will do nothing to add a
retain to the contained values for the array. The release
field may be NULL, in which case the CFArray will do nothing
to remove the array's retain (if any) on the values when the
array is destroyed. If the copyDescription field is NULL,
the array will create a simple description for the value. If
the equal field is NULL, the array will use pointer equality
to test for equality of values. This callbacks parameter
itself may be NULL, which is treated as if a valid structure
of version 0 with all fields NULL had been passed in.
Otherwise, if any of the fields are not valid pointers to
functions of the correct type, or this parameter is not a
valid pointer to a CFArrayCallBacks callbacks structure,
the behavior is undefined. If any of the values put into the
array is not one understood by one of the callback functions
the behavior when that callback function is used is
undefined.public static CFArrayRef CFArrayCreateCopy(CFAllocatorRef allocator, CFArrayRef theArray)
allocator - The CFAllocator which should be used to allocate
memory for the array and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.theArray - The array which is to be copied. The values from the
array are copied as pointers into the new array (that is,
the values themselves are copied, not that which the values
point to, if anything). However, the values are also
retained by the new array. The count of the new array will
be the same as the given array. The new array uses the same
callbacks as the array to be copied. If this parameter is
not a valid CFArray, the behavior is undefined.public static CFMutableArrayRef CFArrayCreateMutable(CFAllocatorRef allocator, long capacity, CFArrayCallBacks callBacks)
allocator - The CFAllocator which should be used to allocate
memory for the array and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.capacity - A hint about the number of values that will be held
by the CFArray. Pass 0 for no hint. The implementation may
ignore this hint, or may use it to optimize various
operations. An array's actual capacity is only limited by
address space and available memory constraints). If this
parameter is negative, the behavior is undefined.callBacks - A pointer to a CFArrayCallBacks structure
initialized with the callbacks for the array to use on each
value in the array. A copy of the contents of the
callbacks structure is made, so that a pointer to a
structure on the stack can be passed in, or can be reused
for multiple array creations. If the version field of this
callbacks structure is not one of the defined ones for
CFArray, the behavior is undefined. The retain field may be
NULL, in which case the CFArray will do nothing to add a
retain to the contained values for the array. The release
field may be NULL, in which case the CFArray will do nothing
to remove the array's retain (if any) on the values when the
array is destroyed. If the copyDescription field is NULL,
the array will create a simple description for the value. If
the equal field is NULL, the array will use pointer equality
to test for equality of values. This callbacks parameter
itself may be NULL, which is treated as if a valid structure
of version 0 with all fields NULL had been passed in.
Otherwise, if any of the fields are not valid pointers to
functions of the correct type, or this parameter is not a
valid pointer to a CFArrayCallBacks callbacks structure,
the behavior is undefined. If any of the values put into the
array is not one understood by one of the callback functions
the behavior when that callback function is used is
undefined.public static CFMutableArrayRef CFArrayCreateMutableCopy(CFAllocatorRef allocator, long capacity, CFArrayRef theArray)
allocator - The CFAllocator which should be used to allocate
memory for the array and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.capacity - A hint about the number of values that will be held
by the CFArray. Pass 0 for no hint. The implementation may
ignore this hint, or may use it to optimize various
operations. An array's actual capacity is only limited by
address space and available memory constraints).
This parameter must be greater than or equal
to the count of the array which is to be copied, or the
behavior is undefined. If this parameter is negative, the
behavior is undefined.theArray - The array which is to be copied. The values from the
array are copied as pointers into the new array (that is,
the values themselves are copied, not that which the values
point to, if anything). However, the values are also
retained by the new array. The count of the new array will
be the same as the given array. The new array uses the same
callbacks as the array to be copied. If this parameter is
not a valid CFArray, the behavior is undefined.public static long CFArrayGetCount(CFArrayRef theArray)
theArray - The array to be queried. If this parameter is not a valid
CFArray, the behavior is undefined.public static long CFArrayGetCountOfValue(CFArrayRef theArray, CFRange range, org.moe.natj.general.ptr.ConstVoidPtr value)
theArray - The array to be searched. If this parameter is not a
valid CFArray, the behavior is undefined.range - The range within the array to search. If the range
location or end point (defined by the location plus length
minus 1) is outside the index space of the array (0 to
N-1 inclusive, where N is the count of the array), the
behavior is undefined. If the range length is negative, the
behavior is undefined. The range may be empty (length 0).value - The value for which to find matches in the array. The
equal() callback provided when the array was created is
used to compare. If the equal() callback was NULL, pointer
equality (in C, ==) is used. If value, or any of the values
in the array, are not understood by the equal() callback,
the behavior is undefined.public static byte CFArrayContainsValue(CFArrayRef theArray, CFRange range, org.moe.natj.general.ptr.ConstVoidPtr value)
theArray - The array to be searched. If this parameter is not a
valid CFArray, the behavior is undefined.range - The range within the array to search. If the range
location or end point (defined by the location plus length
minus 1) is outside the index space of the array (0 to
N-1 inclusive, where N is the count of the array), the
behavior is undefined. If the range length is negative, the
behavior is undefined. The range may be empty (length 0).value - The value for which to find matches in the array. The
equal() callback provided when the array was created is
used to compare. If the equal() callback was NULL, pointer
equality (in C, ==) is used. If value, or any of the values
in the array, are not understood by the equal() callback,
the behavior is undefined.public static org.moe.natj.general.ptr.ConstVoidPtr CFArrayGetValueAtIndex(CFArrayRef theArray, long idx)
theArray - The array to be queried. If this parameter is not a
valid CFArray, the behavior is undefined.idx - The index of the value to retrieve. If the index is
outside the index space of the array (0 to N-1 inclusive,
where N is the count of the array), the behavior is
undefined.public static void CFArrayGetValues(CFArrayRef theArray, CFRange range, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values)
theArray - The array to be queried. If this parameter is not a
valid CFArray, the behavior is undefined.range - The range of values within the array to retrieve. If
the range location or end point (defined by the location
plus length minus 1) is outside the index space of the
array (0 to N-1 inclusive, where N is the count of the
array), the behavior is undefined. If the range length is
negative, the behavior is undefined. The range may be empty
(length 0), in which case no values are put into the buffer.values - A C array of pointer-sized values to be filled with
values from the array. The values in the C array are ordered
in the same order in which they appear in the array. If this
parameter is not a valid pointer to a C array of at least
range.length pointers, the behavior is undefined.public static void CFArrayApplyFunction(CFArrayRef theArray, CFRange range, CoreFoundation.Function_CFArrayApplyFunction applier, org.moe.natj.general.ptr.VoidPtr context)
theArray - The array to be operated upon. If this parameter is not
a valid CFArray, the behavior is undefined.range - The range of values within the array to which to apply
the function. If the range location or end point (defined by
the location plus length minus 1) is outside the index
space of the array (0 to N-1 inclusive, where N is the count
of the array), the behavior is undefined. If the range
length is negative, the behavior is undefined. The range may
be empty (length 0).applier - The callback function to call once for each value in
the given range in the array. If this parameter is not a
pointer to a function of the correct prototype, the behavior
is undefined. If there are values in the range which the
applier function does not expect or cannot properly apply
to, the behavior is undefined.context - A pointer-sized user-defined value, which is passed
as the second parameter to the applier function, but is
otherwise unused by this function. If the context is not
what is expected by the applier function, the behavior is
undefined.public static long CFArrayGetFirstIndexOfValue(CFArrayRef theArray, CFRange range, org.moe.natj.general.ptr.ConstVoidPtr value)
theArray - The array to be searched. If this parameter is not a
valid CFArray, the behavior is undefined.range - The range within the array to search. If the range
location or end point (defined by the location plus length
minus 1) is outside the index space of the array (0 to
N-1 inclusive, where N is the count of the array), the
behavior is undefined. If the range length is negative, the
behavior is undefined. The range may be empty (length 0).
The search progresses from the smallest index defined by
the range to the largest.value - The value for which to find a match in the array. The
equal() callback provided when the array was created is
used to compare. If the equal() callback was NULL, pointer
equality (in C, ==) is used. If value, or any of the values
in the array, are not understood by the equal() callback,
the behavior is undefined.public static long CFArrayGetLastIndexOfValue(CFArrayRef theArray, CFRange range, org.moe.natj.general.ptr.ConstVoidPtr value)
theArray - The array to be searched. If this parameter is not a
valid CFArray, the behavior is undefined.range - The range within the array to search. If the range
location or end point (defined by the location plus length
minus 1) is outside the index space of the array (0 to
N-1 inclusive, where N is the count of the array), the
behavior is undefined. If the range length is negative, the
behavior is undefined. The range may be empty (length 0).
The search progresses from the largest index defined by the
range to the smallest.value - The value for which to find a match in the array. The
equal() callback provided when the array was created is
used to compare. If the equal() callback was NULL, pointer
equality (in C, ==) is used. If value, or any of the values
in the array, are not understood by the equal() callback,
the behavior is undefined.public static long CFArrayBSearchValues(CFArrayRef theArray, CFRange range, org.moe.natj.general.ptr.ConstVoidPtr value, CoreFoundation.Function_CFArrayBSearchValues comparator, org.moe.natj.general.ptr.VoidPtr context)
theArray - The array to be searched. If this parameter is not a
valid CFArray, the behavior is undefined. If the array is
not sorted from least to greatest according to the
comparator function, the behavior is undefined.range - The range within the array to search. If the range
location or end point (defined by the location plus length
minus 1) is outside the index space of the array (0 to
N-1 inclusive, where N is the count of the array), the
behavior is undefined. If the range length is negative, the
behavior is undefined. The range may be empty (length 0).value - The value for which to find a match in the array. If
value, or any of the values in the array, are not understood
by the comparator callback, the behavior is undefined.comparator - The function with the comparator function type
signature which is used in the binary search operation to
compare values in the array with the given value. If this
parameter is not a pointer to a function of the correct
prototype, the behavior is undefined. If there are values
in the range which the comparator function does not expect
or cannot properly compare, the behavior is undefined.context - A pointer-sized user-defined value, which is passed
as the third parameter to the comparator function, but is
otherwise unused by this function. If the context is not
what is expected by the comparator function, the behavior is
undefined.public static void CFArrayAppendValue(CFMutableArrayRef theArray, org.moe.natj.general.ptr.ConstVoidPtr value)
theArray - The array to which the value is to be added. If this
parameter is not a valid mutable CFArray, the behavior is
undefined.value - The value to add to the array. The value is retained by
the array using the retain callback provided when the array
was created. If the value is not of the sort expected by the
retain callback, the behavior is undefined. The value is
assigned to the index one larger than the previous largest
index, and the count of the array is increased by one.public static void CFArrayInsertValueAtIndex(CFMutableArrayRef theArray, long idx, org.moe.natj.general.ptr.ConstVoidPtr value)
theArray - The array to which the value is to be added. If this
parameter is not a valid mutable CFArray, the behavior is
undefined.idx - The index to which to add the new value. If the index is
outside the index space of the array (0 to N inclusive,
where N is the count of the array before the operation), the
behavior is undefined. If the index is the same as N, this
function has the same effect as CFArrayAppendValue().value - The value to add to the array. The value is retained by
the array using the retain callback provided when the array
was created. If the value is not of the sort expected by the
retain callback, the behavior is undefined. The value is
assigned to the given index, and all values with equal and
larger indices have their indexes increased by one.public static void CFArraySetValueAtIndex(CFMutableArrayRef theArray, long idx, org.moe.natj.general.ptr.ConstVoidPtr value)
theArray - The array in which the value is to be changed. If this
parameter is not a valid mutable CFArray, the behavior is
undefined.idx - The index to which to set the new value. If the index is
outside the index space of the array (0 to N inclusive,
where N is the count of the array before the operation), the
behavior is undefined. If the index is the same as N, this
function has the same effect as CFArrayAppendValue().value - The value to set in the array. The value is retained by
the array using the retain callback provided when the array
was created, and the previous value with that index is
released. If the value is not of the sort expected by the
retain callback, the behavior is undefined. The indices of
other values is not affected.public static void CFArrayRemoveValueAtIndex(CFMutableArrayRef theArray, long idx)
theArray - The array from which the value is to be removed. If
this parameter is not a valid mutable CFArray, the behavior
is undefined.idx - The index from which to remove the value. If the index is
outside the index space of the array (0 to N-1 inclusive,
where N is the count of the array before the operation), the
behavior is undefined.public static void CFArrayRemoveAllValues(CFMutableArrayRef theArray)
theArray - The array from which all of the values are to be
removed. If this parameter is not a valid mutable CFArray,
the behavior is undefined.public static void CFArrayReplaceValues(CFMutableArrayRef theArray, CFRange range, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> newValues, long newCount)
theArray - The array from which all of the values are to be
removed. If this parameter is not a valid mutable CFArray,
the behavior is undefined.range - The range of values within the array to replace. If the
range location or end point (defined by the location plus
length minus 1) is outside the index space of the array (0
to N inclusive, where N is the count of the array), the
behavior is undefined. If the range length is negative, the
behavior is undefined. The range may be empty (length 0),
in which case the new values are merely inserted at the
range location.newValues - A C array of the pointer-sized values to be placed
into the array. The new values in the array are ordered in
the same order in which they appear in this C array. This
parameter may be NULL if the newCount parameter is 0. This
C array is not changed or freed by this function. If this
parameter is not a valid pointer to a C array of at least
newCount pointers, the behavior is undefined.newCount - The number of values to copy from the values C
array into the CFArray. If this parameter is different than
the range length, the excess newCount values will be
inserted after the range, or the excess range values will be
deleted. This parameter may be 0, in which case no new
values are replaced into the array and the values in the
range are simply removed. If this parameter is negative, or
greater than the number of values actually in the newValues
C array, the behavior is undefined.public static void CFArrayExchangeValuesAtIndices(CFMutableArrayRef theArray, long idx1, long idx2)
theArray - The array of which the values are to be swapped. If
this parameter is not a valid mutable CFArray, the behavior
is undefined.idx1 - The first index whose values should be swapped. If the
index is outside the index space of the array (0 to N-1
inclusive, where N is the count of the array before the
operation), the behavior is undefined.idx2 - The second index whose values should be swapped. If the
index is outside the index space of the array (0 to N-1
inclusive, where N is the count of the array before the
operation), the behavior is undefined.public static void CFArraySortValues(CFMutableArrayRef theArray, CFRange range, CoreFoundation.Function_CFArraySortValues comparator, org.moe.natj.general.ptr.VoidPtr context)
theArray - The array whose values are to be sorted. If this
parameter is not a valid mutable CFArray, the behavior is
undefined.range - The range of values within the array to sort. If the
range location or end point (defined by the location plus
length minus 1) is outside the index space of the array (0
to N-1 inclusive, where N is the count of the array), the
behavior is undefined. If the range length is negative, the
behavior is undefined. The range may be empty (length 0).comparator - The function with the comparator function type
signature which is used in the sort operation to compare
values in the array with the given value. If this parameter
is not a pointer to a function of the correct prototype, the
the behavior is undefined. If there are values in the array
which the comparator function does not expect or cannot
properly compare, the behavior is undefined. The values in
the range are sorted from least to greatest according to
this function.context - A pointer-sized user-defined value, which is passed
as the third parameter to the comparator function, but is
otherwise unused by this function. If the context is not
what is expected by the comparator function, the behavior is
undefined.public static void CFArrayAppendArray(CFMutableArrayRef theArray, CFArrayRef otherArray, CFRange otherRange)
theArray - The array to which values from the otherArray are to
be added. If this parameter is not a valid mutable CFArray,
the behavior is undefined.otherArray - The array providing the values to be added to the
array. If this parameter is not a valid CFArray, the
behavior is undefined.otherRange - The range within the otherArray from which to add
the values to the array. If the range location or end point
(defined by the location plus length minus 1) is outside
the index space of the otherArray (0 to N-1 inclusive, where
N is the count of the otherArray), the behavior is
undefined. The new values are retained by the array using
the retain callback provided when the array was created. If
the values are not of the sort expected by the retain
callback, the behavior is undefined. The values are assigned
to the indices one larger than the previous largest index
in the array, and beyond, and the count of the array is
increased by range.length. The values are assigned new
indices in the array from smallest to largest index in the
order in which they appear in the otherArray.public static long CFCharacterSetGetTypeID()
public static CFCharacterSetRef CFCharacterSetGetPredefined(long theSetIdentifier)
theSetIdentifier - The CFCharacterSetPredefinedSet selector
which specifies the predefined character set. If the
value is not in CFCharacterSetPredefinedSet, the behavior
is undefined.public static CFCharacterSetRef CFCharacterSetCreateWithCharactersInRange(CFAllocatorRef alloc, CFRange theRange)
alloc - The CFAllocator which should be used to allocate
memory for the array and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.theRange - The CFRange which should be used to specify the
Unicode range the character set is filled with. It
accepts the range in 32-bit in the UTF-32 format. The
valid character point range is from 0x00000 to 0x10FFFF.
If the range is outside of the valid Unicode character
point, the behavior is undefined.public static CFCharacterSetRef CFCharacterSetCreateWithCharactersInString(CFAllocatorRef alloc, CFStringRef theString)
alloc - The CFAllocator which should be used to allocate
memory for the array and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.theString - The CFString which should be used to specify
the Unicode characters the character set is filled with.
If this parameter is not a valid CFString, the behavior
is undefined.public static CFCharacterSetRef CFCharacterSetCreateWithBitmapRepresentation(CFAllocatorRef alloc, CFDataRef theData)
alloc - The CFAllocator which should be used to allocate
memory for the array and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.theData - The CFData which should be used to specify the
bitmap representation of the Unicode character points
the character set is filled with. The bitmap
representation could contain all the Unicode character
range starting from BMP to Plane 16. The first 8192 bytes
of the data represent the BMP range. The BMP range 8192
bytes can be followed by zero to sixteen 8192 byte
bitmaps, each one with the plane index byte prepended.
For example, the bitmap representing the BMP and Plane 2
has the size of 16385 bytes (8192 bytes for BMP, 1 byte
index + 8192 bytes bitmap for Plane 2). The plane index
byte, in this case, contains the integer value two. If
this parameter is not a valid CFData or it contains a
Plane index byte outside of the valid Plane range
(1 to 16), the behavior is undefined.public static CFCharacterSetRef CFCharacterSetCreateInvertedSet(CFAllocatorRef alloc, CFCharacterSetRef theSet)
alloc - The CFAllocator which should be used to allocate
memory for the array and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.theSet - The CFCharacterSet which is to be inverted. If this
parameter is not a valid CFCharacterSet, the behavior is
undefined.public static byte CFCharacterSetIsSupersetOfSet(CFCharacterSetRef theSet, CFCharacterSetRef theOtherset)
theSet - The character set to be checked for the membership of theOtherSet.
If this parameter is not a valid CFCharacterSet, the behavior is undefined.theOtherset - The character set to be checked whether or not it is a subset of theSet.
If this parameter is not a valid CFCharacterSet, the behavior is undefined.public static byte CFCharacterSetHasMemberInPlane(CFCharacterSetRef theSet, long thePlane)
theSet - The character set to be checked for the membership. If this
parameter is not a valid CFCharacterSet, the behavior is undefined.thePlane - The plane number to be checked for the membership.
The valid value range is from 0 to 16. If the value is outside of the valid
plane number range, the behavior is undefined.public static CFMutableCharacterSetRef CFCharacterSetCreateMutable(CFAllocatorRef alloc)
alloc - The CFAllocator which should be used to allocate
memory for the array and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.public static CFCharacterSetRef CFCharacterSetCreateCopy(CFAllocatorRef alloc, CFCharacterSetRef theSet)
alloc - The CFAllocator which should be used to allocate
memory for the array and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.theSet - The CFCharacterSet which is to be copied. If this
parameter is not a valid CFCharacterSet, the behavior is
undefined.public static CFMutableCharacterSetRef CFCharacterSetCreateMutableCopy(CFAllocatorRef alloc, CFCharacterSetRef theSet)
alloc - The CFAllocator which should be used to allocate
memory for the array and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.theSet - The CFCharacterSet which is to be copied. If this
parameter is not a valid CFCharacterSet, the behavior is
undefined.public static byte CFCharacterSetIsCharacterMember(CFCharacterSetRef theSet, char theChar)
theSet - The character set to be searched. If this parameter
is not a valid CFCharacterSet, the behavior is undefined.theChar - The Unicode character for which to test against the
character set. Note that this function takes 16-bit Unicode
character value; hence, it does not support access to the
non-BMP planes.public static byte CFCharacterSetIsLongCharacterMember(CFCharacterSetRef theSet, int theChar)
theSet - The character set to be searched. If this parameter
is not a valid CFCharacterSet, the behavior is undefined.theChar - The UTF-32 character for which to test against the
character set.public static CFDataRef CFCharacterSetCreateBitmapRepresentation(CFAllocatorRef alloc, CFCharacterSetRef theSet)
alloc - The CFAllocator which should be used to allocate
memory for the array and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.theSet - The CFCharacterSet which is to be used create the
bitmap representation from. Refer to the comments for
CFCharacterSetCreateWithBitmapRepresentation for the
detailed discussion of the bitmap representation format.
If this parameter is not a valid CFCharacterSet, the
behavior is undefined.public static void CFCharacterSetAddCharactersInRange(CFMutableCharacterSetRef theSet, CFRange theRange)
theSet - The character set to which the range is to be added.
If this parameter is not a valid mutable CFCharacterSet,
the behavior is undefined.theRange - The range to add to the character set. It accepts
the range in 32-bit in the UTF-32 format. The valid
character point range is from 0x00000 to 0x10FFFF. If the
range is outside of the valid Unicode character point,
the behavior is undefined.public static void CFCharacterSetRemoveCharactersInRange(CFMutableCharacterSetRef theSet, CFRange theRange)
theSet - The character set from which the range is to be
removed. If this parameter is not a valid mutable
CFCharacterSet, the behavior is undefined.theRange - The range to remove from the character set.
It accepts the range in 32-bit in the UTF-32 format.
The valid character point range is from 0x00000 to 0x10FFFF.
If the range is outside of the valid Unicode character point,
the behavior is undefined.public static void CFCharacterSetAddCharactersInString(CFMutableCharacterSetRef theSet, CFStringRef theString)
theSet - The character set to which the characters in the
string are to be added. If this parameter is not a
valid mutable CFCharacterSet, the behavior is undefined.theString - The string to add to the character set.
If this parameter is not a valid CFString, the behavior
is undefined.public static void CFCharacterSetRemoveCharactersInString(CFMutableCharacterSetRef theSet, CFStringRef theString)
theSet - The character set from which the characters in the
string are to be remove. If this parameter is not a
valid mutable CFCharacterSet, the behavior is undefined.theString - The string to remove from the character set.
If this parameter is not a valid CFString, the behavior
is undefined.public static void CFCharacterSetUnion(CFMutableCharacterSetRef theSet, CFCharacterSetRef theOtherSet)
theSet - The destination character set into which the
union of the two character sets is stored. If this
parameter is not a valid mutable CFCharacterSet, the
behavior is undefined.theOtherSet - The character set with which the union is
formed. If this parameter is not a valid CFCharacterSet,
the behavior is undefined.public static void CFCharacterSetIntersect(CFMutableCharacterSetRef theSet, CFCharacterSetRef theOtherSet)
theSet - The destination character set into which the
intersection of the two character sets is stored.
If this parameter is not a valid mutable CFCharacterSet,
the behavior is undefined.theOtherSet - The character set with which the intersection
is formed. If this parameter is not a valid CFCharacterSet,
the behavior is undefined.public static void CFCharacterSetInvert(CFMutableCharacterSetRef theSet)
theSet - The character set to be inverted.
If this parameter is not a valid mutable CFCharacterSet,
the behavior is undefined.public static long CFNotificationCenterGetTypeID()
public static CFNotificationCenterRef CFNotificationCenterGetLocalCenter()
public static CFNotificationCenterRef CFNotificationCenterGetDarwinNotifyCenter()
public static void CFNotificationCenterAddObserver(CFNotificationCenterRef center, org.moe.natj.general.ptr.ConstVoidPtr observer, CoreFoundation.Function_CFNotificationCenterAddObserver callBack, CFStringRef name, org.moe.natj.general.ptr.ConstVoidPtr object, long suspensionBehavior)
public static void CFNotificationCenterRemoveObserver(CFNotificationCenterRef center, org.moe.natj.general.ptr.ConstVoidPtr observer, CFStringRef name, org.moe.natj.general.ptr.ConstVoidPtr object)
public static void CFNotificationCenterRemoveEveryObserver(CFNotificationCenterRef center, org.moe.natj.general.ptr.ConstVoidPtr observer)
public static void CFNotificationCenterPostNotification(CFNotificationCenterRef center, CFStringRef name, org.moe.natj.general.ptr.ConstVoidPtr object, CFDictionaryRef userInfo, byte deliverImmediately)
public static void CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterRef center, CFStringRef name, org.moe.natj.general.ptr.ConstVoidPtr object, CFDictionaryRef userInfo, long options)
public static long CFLocaleGetTypeID()
public static CFLocaleRef CFLocaleGetSystem()
public static CFLocaleRef CFLocaleCopyCurrent()
public static CFArrayRef CFLocaleCopyAvailableLocaleIdentifiers()
public static CFArrayRef CFLocaleCopyISOLanguageCodes()
public static CFArrayRef CFLocaleCopyISOCountryCodes()
public static CFArrayRef CFLocaleCopyISOCurrencyCodes()
public static CFArrayRef CFLocaleCopyCommonISOCurrencyCodes()
public static CFArrayRef CFLocaleCopyPreferredLanguages()
public static CFStringRef CFLocaleCreateCanonicalLanguageIdentifierFromString(CFAllocatorRef allocator, CFStringRef localeIdentifier)
public static CFStringRef CFLocaleCreateCanonicalLocaleIdentifierFromString(CFAllocatorRef allocator, CFStringRef localeIdentifier)
public static CFStringRef CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes(CFAllocatorRef allocator, short lcode, short rcode)
public static CFStringRef CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode(CFAllocatorRef allocator, int lcid)
public static int CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier(CFStringRef localeIdentifier)
public static long CFLocaleGetLanguageCharacterDirection(CFStringRef isoLangCode)
public static long CFLocaleGetLanguageLineDirection(CFStringRef isoLangCode)
public static CFDictionaryRef CFLocaleCreateComponentsFromLocaleIdentifier(CFAllocatorRef allocator, CFStringRef localeID)
public static CFStringRef CFLocaleCreateLocaleIdentifierFromComponents(CFAllocatorRef allocator, CFDictionaryRef dictionary)
public static CFLocaleRef CFLocaleCreate(CFAllocatorRef allocator, CFStringRef localeIdentifier)
public static CFLocaleRef CFLocaleCreateCopy(CFAllocatorRef allocator, CFLocaleRef locale)
public static CFStringRef CFLocaleGetIdentifier(CFLocaleRef locale)
public static org.moe.natj.general.ptr.ConstVoidPtr CFLocaleGetValue(CFLocaleRef locale, CFStringRef key)
public static CFStringRef CFLocaleCopyDisplayNameForPropertyValue(CFLocaleRef displayLocale, CFStringRef key, CFStringRef value)
public static long CFStringGetTypeID()
public static CFStringRef CFStringCreateWithPascalString(CFAllocatorRef alloc, java.lang.String pStr, int encoding)
public static CFStringRef CFStringCreateWithCString(CFAllocatorRef alloc, java.lang.String cStr, int encoding)
public static CFStringRef CFStringCreateWithBytes(CFAllocatorRef alloc, java.lang.String bytes, long numBytes, int encoding, byte isExternalRepresentation)
public static CFStringRef CFStringCreateWithCharacters(CFAllocatorRef alloc, org.moe.natj.general.ptr.ConstCharPtr chars, long numChars)
public static CFStringRef CFStringCreateWithPascalStringNoCopy(CFAllocatorRef alloc, java.lang.String pStr, int encoding, CFAllocatorRef contentsDeallocator)
NOTE: Do not count on these buffers as being used by the string; in some cases the CFString might free the buffer and use something else (for instance if it decides to always use Unicode encoding internally).
NOTE: If you are not transferring ownership of the buffer to the CFString (for instance, you supplied contentsDeallocator = kCFAllocatorNull), it is your responsibility to assure the buffer does not go away during the lifetime of the string. If the string is retained or copied, its lifetime might extend in ways you cannot predict. So, for strings created with buffers whose lifetimes you cannot guarantee, you need to be extremely careful --- do not hand it out to any APIs which might retain or copy the strings.
public static CFStringRef CFStringCreateWithCStringNoCopy(CFAllocatorRef alloc, java.lang.String cStr, int encoding, CFAllocatorRef contentsDeallocator)
public static CFStringRef CFStringCreateWithBytesNoCopy(CFAllocatorRef alloc, java.lang.String bytes, long numBytes, int encoding, byte isExternalRepresentation, CFAllocatorRef contentsDeallocator)
public static CFStringRef CFStringCreateWithCharactersNoCopy(CFAllocatorRef alloc, org.moe.natj.general.ptr.ConstCharPtr chars, long numChars, CFAllocatorRef contentsDeallocator)
public static CFStringRef CFStringCreateWithSubstring(CFAllocatorRef alloc, CFStringRef str, CFRange range)
public static CFStringRef CFStringCreateCopy(CFAllocatorRef alloc, CFStringRef theString)
public static CFStringRef CFStringCreateWithFormat(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef format, java.lang.Object... varargs)
public static CFStringRef CFStringCreateWithFormatAndArguments(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef format, org.moe.natj.general.ptr.BytePtr arguments)
public static CFMutableStringRef CFStringCreateMutable(CFAllocatorRef alloc, long maxLength)
public static CFMutableStringRef CFStringCreateMutableCopy(CFAllocatorRef alloc, long maxLength, CFStringRef theString)
public static CFMutableStringRef CFStringCreateMutableWithExternalCharactersNoCopy(CFAllocatorRef alloc, org.moe.natj.general.ptr.CharPtr chars, long numChars, long capacity, CFAllocatorRef externalCharactersAllocator)
public static long CFStringGetLength(CFStringRef theString)
public static char CFStringGetCharacterAtIndex(CFStringRef theString, long idx)
public static void CFStringGetCharacters(CFStringRef theString, CFRange range, org.moe.natj.general.ptr.CharPtr buffer)
public static byte CFStringGetPascalString(CFStringRef theString, org.moe.natj.general.ptr.BytePtr buffer, long bufferSize, int encoding)
public static byte CFStringGetCString(CFStringRef theString, org.moe.natj.general.ptr.BytePtr buffer, long bufferSize, int encoding)
public static java.lang.String CFStringGetPascalStringPtr(CFStringRef theString, int encoding)
public static java.lang.String CFStringGetCStringPtr(CFStringRef theString, int encoding)
public static org.moe.natj.general.ptr.ConstCharPtr CFStringGetCharactersPtr(CFStringRef theString)
public static long CFStringGetBytes(CFStringRef theString, CFRange range, int encoding, byte lossByte, byte isExternalRepresentation, org.moe.natj.general.ptr.BytePtr buffer, long maxBufLen, org.moe.natj.general.ptr.NIntPtr usedBufLen)
public static CFStringRef CFStringCreateFromExternalRepresentation(CFAllocatorRef alloc, CFDataRef data, int encoding)
public static CFDataRef CFStringCreateExternalRepresentation(CFAllocatorRef alloc, CFStringRef theString, int encoding, byte lossByte)
public static int CFStringGetSmallestEncoding(CFStringRef theString)
public static int CFStringGetFastestEncoding(CFStringRef theString)
public static int CFStringGetSystemEncoding()
public static long CFStringGetMaximumSizeForEncoding(long length,
int encoding)
public static byte CFStringGetFileSystemRepresentation(CFStringRef string, org.moe.natj.general.ptr.BytePtr buffer, long maxBufLen)
public static long CFStringGetMaximumSizeOfFileSystemRepresentation(CFStringRef string)
public static CFStringRef CFStringCreateWithFileSystemRepresentation(CFAllocatorRef alloc, java.lang.String buffer)
public static long CFStringCompareWithOptionsAndLocale(CFStringRef theString1, CFStringRef theString2, CFRange rangeToCompare, long compareOptions, CFLocaleRef locale)
public static long CFStringCompareWithOptions(CFStringRef theString1, CFStringRef theString2, CFRange rangeToCompare, long compareOptions)
public static long CFStringCompare(CFStringRef theString1, CFStringRef theString2, long compareOptions)
public static byte CFStringFindWithOptionsAndLocale(CFStringRef theString, CFStringRef stringToFind, CFRange rangeToSearch, long searchOptions, CFLocaleRef locale, CFRange result)
public static byte CFStringFindWithOptions(CFStringRef theString, CFStringRef stringToFind, CFRange rangeToSearch, long searchOptions, CFRange result)
public static CFArrayRef CFStringCreateArrayWithFindResults(CFAllocatorRef alloc, CFStringRef theString, CFStringRef stringToFind, CFRange rangeToSearch, long compareOptions)
public static CFRange CFStringFind(CFStringRef theString, CFStringRef stringToFind, long compareOptions)
public static byte CFStringHasPrefix(CFStringRef theString, CFStringRef prefix)
public static byte CFStringHasSuffix(CFStringRef theString, CFStringRef suffix)
public static CFRange CFStringGetRangeOfComposedCharactersAtIndex(CFStringRef theString, long theIndex)
theString - The CFString which is to be searched. If this
parameter is not a valid CFString, the behavior is
undefined.theIndex - The index of the character contained in the
composed character sequence. If the index is
outside the index space of the string (0 to N-1 inclusive,
where N is the length of the string), the behavior is
undefined.public static byte CFStringFindCharacterFromSet(CFStringRef theString, CFCharacterSetRef theSet, CFRange rangeToSearch, long searchOptions, CFRange result)
theString - The CFString which is to be searched. If this
parameter is not a valid CFString, the behavior is
undefined.theSet - The CFCharacterSet against which the membership
of characters is checked. If this parameter is not a valid
CFCharacterSet, the behavior is undefined.rangeToSearch - The range of characters within the string to search. If
the range location or end point (defined by the location
plus length minus 1) are outside the index space of the
string (0 to N-1 inclusive, where N is the length of the
string), the behavior is undefined. If the range length is
negative, the behavior is undefined. The range may be empty
(length 0), in which case no search is performed.searchOptions - The bitwise-or'ed option flags to control
the search behavior. The supported options are
kCFCompareBackwards andkCFCompareAnchored.
If other option flags are specified, the behavior
is undefined.result - The pointer to a CFRange supplied by the caller in
which the search result is stored. Note that the length
of this range can be more than 1, if for instance the
result is a composed character. If a pointer to an invalid
memory is specified, the behavior is undefined.public static void CFStringGetLineBounds(CFStringRef theString, CFRange range, org.moe.natj.general.ptr.NIntPtr lineBeginIndex, org.moe.natj.general.ptr.NIntPtr lineEndIndex, org.moe.natj.general.ptr.NIntPtr contentsEndIndex)
public static void CFStringGetParagraphBounds(CFStringRef string, CFRange range, org.moe.natj.general.ptr.NIntPtr parBeginIndex, org.moe.natj.general.ptr.NIntPtr parEndIndex, org.moe.natj.general.ptr.NIntPtr contentsEndIndex)
public static long CFStringGetHyphenationLocationBeforeIndex(CFStringRef string, long location, CFRange limitRange, long options, CFLocaleRef locale, org.moe.natj.general.ptr.IntPtr character)
string - The CFString which is to be hyphenated. If this
parameter is not a valid CFString, the behavior is
undefined.location - An index in the string. If a valid hyphen index is returned, it
will be before this index.limitRange - The range of characters within the string to search. If
the range location or end point (defined by the location
plus length minus 1) are outside the index space of the
string (0 to N-1 inclusive, where N is the length of the
string), the behavior is undefined. If the range length is
negative, the behavior is undefined. The range may be empty
(length 0), in which case no hyphen location is generated.options - Reserved for future use.locale - Specifies which language's hyphenation conventions to use.
This must be a valid locale. Hyphenation data is not available
for all locales. You can use CFStringIsHyphenationAvailableForLocale
to test for availability of hyphenation data.character - The suggested hyphen character to insert. Pass NULL if you
do not need this information.public static byte CFStringIsHyphenationAvailableForLocale(CFLocaleRef locale)
public static CFStringRef CFStringCreateByCombiningStrings(CFAllocatorRef alloc, CFArrayRef theArray, CFStringRef separatorString)
public static CFArrayRef CFStringCreateArrayBySeparatingStrings(CFAllocatorRef alloc, CFStringRef theString, CFStringRef separatorString)
public static int CFStringGetIntValue(CFStringRef str)
public static double CFStringGetDoubleValue(CFStringRef str)
public static void CFStringAppend(CFMutableStringRef theString, CFStringRef appendedString)
public static void CFStringAppendCharacters(CFMutableStringRef theString, org.moe.natj.general.ptr.ConstCharPtr chars, long numChars)
public static void CFStringAppendPascalString(CFMutableStringRef theString, java.lang.String pStr, int encoding)
public static void CFStringAppendCString(CFMutableStringRef theString, java.lang.String cStr, int encoding)
public static void CFStringAppendFormat(CFMutableStringRef theString, CFDictionaryRef formatOptions, CFStringRef format, java.lang.Object... varargs)
public static void CFStringAppendFormatAndArguments(CFMutableStringRef theString, CFDictionaryRef formatOptions, CFStringRef format, org.moe.natj.general.ptr.BytePtr arguments)
public static void CFStringInsert(CFMutableStringRef str, long idx, CFStringRef insertedStr)
public static void CFStringDelete(CFMutableStringRef theString, CFRange range)
public static void CFStringReplace(CFMutableStringRef theString, CFRange range, CFStringRef replacement)
public static void CFStringReplaceAll(CFMutableStringRef theString, CFStringRef replacement)
public static long CFStringFindAndReplace(CFMutableStringRef theString, CFStringRef stringToFind, CFStringRef replacementString, CFRange rangeToSearch, long compareOptions)
public static void CFStringSetExternalCharactersNoCopy(CFMutableStringRef theString, org.moe.natj.general.ptr.CharPtr chars, long length, long capacity)
public static void CFStringPad(CFMutableStringRef theString, CFStringRef padString, long length, long indexIntoPad)
CFStringTrim() will trim the specified string from both ends of the string. CFStringTrimWhitespace() will do the same with white space characters (tab, newline, etc) CFStringTrim(" abc ", " ") -> "abc" CFStringTrim("* * * *abc * ", "* ") -> "*abc "
public static void CFStringTrim(CFMutableStringRef theString, CFStringRef trimString)
public static void CFStringTrimWhitespace(CFMutableStringRef theString)
public static void CFStringLowercase(CFMutableStringRef theString, CFLocaleRef locale)
public static void CFStringUppercase(CFMutableStringRef theString, CFLocaleRef locale)
public static void CFStringCapitalize(CFMutableStringRef theString, CFLocaleRef locale)
public static void CFStringNormalize(CFMutableStringRef theString, long theForm)
theString - The string which is to be normalized. If this
parameter is not a valid mutable CFString, the behavior is
undefined.theForm - The form into which the string is to be normalized.
If this parameter is not a valid CFStringNormalizationForm value,
the behavior is undefined.public static void CFStringFold(CFMutableStringRef theString, long theFlags, CFLocaleRef theLocale)
theString - The string which is to be folded. If this parameter is not
a valid mutable CFString, the behavior is undefined.theFlags - The equivalency flags which describes the character folding form.
Only those flags containing the word "insensitive" are recognized here; other flags are ignored.
Folding with kCFCompareCaseInsensitive removes case distinctions in accordance with the mapping
specified by ftp://ftp.unicode.org/Public/UNIDATA/CaseFolding.txt. Folding with
kCFCompareDiacriticInsensitive removes distinctions of accents and other diacritics. Folding
with kCFCompareWidthInsensitive removes character width distinctions by mapping characters in
the range U+FF00-U+FFEF to their ordinary equivalents.theLocale - The locale tailoring the character folding behavior. If NULL,
it's considered to be the system locale returned from CFLocaleGetSystem().
If non-NULL and not a valid CFLocale object, the behavior is undefined.public static byte CFStringTransform(CFMutableStringRef string, CFRange range, CFStringRef transform, byte reverse)
You can pass one of the predefined transforms below, or any valid ICU transform ID as defined in the ICU User Guide. Note that we do not support arbitrary set of ICU transform rules.
public static byte CFStringIsEncodingAvailable(int encoding)
public static org.moe.natj.general.ptr.ConstIntPtr CFStringGetListOfAvailableEncodings()
public static CFStringRef CFStringGetNameOfEncoding(int encoding)
public static long CFStringConvertEncodingToNSStringEncoding(int encoding)
public static int CFStringConvertNSStringEncodingToEncoding(long encoding)
public static int CFStringConvertEncodingToWindowsCodepage(int encoding)
public static int CFStringConvertWindowsCodepageToEncoding(int codepage)
public static int CFStringConvertIANACharSetNameToEncoding(CFStringRef theString)
public static CFStringRef CFStringConvertEncodingToIANACharSetName(int encoding)
public static int CFStringGetMostCompatibleMacStringEncoding(int encoding)
public static void CFStringInitInlineBuffer(CFStringRef str, CFStringInlineBuffer buf, CFRange range)
public static char CFStringGetCharacterFromInlineBuffer(CFStringInlineBuffer buf, long idx)
public static byte CFStringIsSurrogateHighCharacter(char character)
public static byte CFStringIsSurrogateLowCharacter(char character)
public static int CFStringGetLongCharacterForSurrogatePair(char surrogateHigh,
char surrogateLow)
public static byte CFStringGetSurrogatePairForLongCharacter(int character,
org.moe.natj.general.ptr.CharPtr surrogates)
public static void CFShow(org.moe.natj.general.ptr.ConstVoidPtr obj)
public static void CFShowStr(CFStringRef str)
public static CFStringRef __CFStringMakeConstantString(java.lang.String cStr)
public static long CFErrorGetTypeID()
public static CFErrorRef CFErrorCreate(CFAllocatorRef allocator, CFStringRef domain, long code, CFDictionaryRef userInfo)
Creates a new CFError.
allocator - The CFAllocator which should be used to allocate memory for the error. This parameter may be NULL in which case the
current default CFAllocator is used. If this reference is not a valid CFAllocator, the behavior is undefined.domain - A CFString identifying the error domain. If this reference is NULL or is otherwise not a valid CFString, the behavior is undefined.code - A CFIndex identifying the error code. The code is interpreted within the context of the error domain.userInfo - A CFDictionary created with kCFCopyStringDictionaryKeyCallBacks and kCFTypeDictionaryValueCallBacks. It will be copied with CFDictionaryCreateCopy().
If no userInfo dictionary is desired, NULL may be passed in as a convenience, in which case an empty userInfo dictionary will be assigned.public static CFErrorRef CFErrorCreateWithUserInfoKeysAndValues(CFAllocatorRef allocator, CFStringRef domain, long code, org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.ConstVoidPtr> userInfoKeys, org.moe.natj.general.ptr.ConstPtr<org.moe.natj.general.ptr.ConstVoidPtr> userInfoValues, long numUserInfoValues)
Creates a new CFError without having to create an intermediate userInfo dictionary.
allocator - The CFAllocator which should be used to allocate memory for the error. This parameter may be NULL in which case the
current default CFAllocator is used. If this reference is not a valid CFAllocator, the behavior is undefined.domain - A CFString identifying the error domain. If this reference is NULL or is otherwise not a valid CFString, the behavior is undefined.code - A CFIndex identifying the error code. The code is interpreted within the context of the error domain.userInfoKeys - An array of numUserInfoValues CFStrings used as keys in creating the userInfo dictionary. NULL is valid only if numUserInfoValues is 0.userInfoValues - An array of numUserInfoValues CF types used as values in creating the userInfo dictionary. NULL is valid only if numUserInfoValues is 0.numUserInfoValues - CFIndex representing the number of keys and values in the userInfoKeys and userInfoValues arrays.public static CFStringRef CFErrorGetDomain(CFErrorRef err)
Returns the error domain the CFError was created with.
err - The CFError whose error domain is to be returned. If this reference is not a valid CFError, the behavior is undefined.public static long CFErrorGetCode(CFErrorRef err)
Returns the error code the CFError was created with.
err - The CFError whose error code is to be returned. If this reference is not a valid CFError, the behavior is undefined.public static CFDictionaryRef CFErrorCopyUserInfo(CFErrorRef err)
Returns CFError userInfo dictionary.
Returns a dictionary containing the same keys and values as in the userInfo dictionary the CFError was created with. Returns an empty dictionary if NULL was supplied to CFErrorCreate().
err - The CFError whose error user info is to be returned. If this reference is not a valid CFError, the behavior is undefined.public static CFStringRef CFErrorCopyDescription(CFErrorRef err)
Returns a human-presentable description for the error. CFError creators should strive to make sure the return value is human-presentable and localized by providing a value for kCFErrorLocalizedDescriptionKey at the time of CFError creation.
This is a complete sentence or two which says what failed and why it failed. Please refer to header comments for -[NSError localizedDescription] for details on the steps used to compute this; but roughly: - Use value of kCFErrorLocalizedDescriptionKey as-is if provided. - Use value of kCFErrorLocalizedFailureKey if provided, optionally followed by kCFErrorLocalizedFailureReasonKey if available. - Use value of kCFErrorLocalizedFailureReasonKey, combining with a generic failure message such as: "Operation code not be completed. " + kCFErrorLocalizedFailureReasonKey. - If all of the above fail, generate a semi-user presentable string from kCFErrorDescriptionKey, the domain, and code. Something like: "Operation could not be completed. Error domain/code occurred. " or "Operation could not be completed. " + kCFErrorDescriptionKey + " (Error domain/code)" Toll-free bridged NSError instances might provide additional behaviors for manufacturing a description string. Do not count on the exact contents or format of the returned string, it might change.
err - The CFError whose description is to be returned. If this reference is not a valid CFError, the behavior is undefined.public static CFStringRef CFErrorCopyFailureReason(CFErrorRef err)
Returns a human-presentable failure reason for the error. May return NULL. CFError creators should strive to make sure the return value is human-presentable and localized by providing a value for kCFErrorLocalizedFailureReasonKey at the time of CFError creation.
This is a complete sentence which describes why the operation failed. In many cases this will be just the "because" part of the description (but as a complete sentence, which makes localization easier). By default this looks for kCFErrorLocalizedFailureReasonKey in the user info. Toll-free bridged NSError instances might provide additional behaviors for manufacturing this value. If no user-presentable string is available, returns NULL. Example Description: "Could not save file 'Letter' in folder 'Documents' because the volume 'MyDisk' doesn't have enough space." Corresponding FailureReason: "The volume 'MyDisk' doesn't have enough space."
err - The CFError whose failure reason is to be returned. If this reference is not a valid CFError, the behavior is undefined.public static CFStringRef CFErrorCopyRecoverySuggestion(CFErrorRef err)
Returns a human presentable recovery suggestion for the error. May return NULL. CFError creators should strive to make sure the return value is human-presentable and localized by providing a value for kCFErrorLocalizedRecoverySuggestionKey at the time of CFError creation.
This is the string that can be displayed as the "informative" (aka "secondary") message on an alert panel. By default this looks for kCFErrorLocalizedRecoverySuggestionKey in the user info. Toll-free bridged NSError instances might provide additional behaviors for manufacturing this value. If no user-presentable string is available, returns NULL. Example Description: "Could not save file 'Letter' in folder 'Documents' because the volume 'MyDisk' doesn't have enough space." Corresponding RecoverySuggestion: "Remove some files from the volume and try again."
err - The CFError whose recovery suggestion is to be returned. If this reference is not a valid CFError, the behavior is undefined.public static long CFURLGetTypeID()
public static CFURLRef CFURLCreateWithBytes(CFAllocatorRef allocator, java.lang.String URLBytes, long length, int encoding, CFURLRef baseURL)
public static CFDataRef CFURLCreateData(CFAllocatorRef allocator, CFURLRef url, int encoding, byte escapeWhitespace)
public static CFURLRef CFURLCreateWithString(CFAllocatorRef allocator, CFStringRef URLString, CFURLRef baseURL)
public static CFURLRef CFURLCreateAbsoluteURLWithBytes(CFAllocatorRef alloc, java.lang.String relativeURLBytes, long length, int encoding, CFURLRef baseURL, byte useCompatibilityMode)
public static CFURLRef CFURLCreateWithFileSystemPath(CFAllocatorRef allocator, CFStringRef filePath, long pathStyle, byte isDirectory)
public static CFURLRef CFURLCreateFromFileSystemRepresentation(CFAllocatorRef allocator, java.lang.String buffer, long bufLen, byte isDirectory)
public static CFURLRef CFURLCreateWithFileSystemPathRelativeToBase(CFAllocatorRef allocator, CFStringRef filePath, long pathStyle, byte isDirectory, CFURLRef baseURL)
public static CFURLRef CFURLCreateFromFileSystemRepresentationRelativeToBase(CFAllocatorRef allocator, java.lang.String buffer, long bufLen, byte isDirectory, CFURLRef baseURL)
public static byte CFURLGetFileSystemRepresentation(CFURLRef url, byte resolveAgainstBase, org.moe.natj.general.ptr.BytePtr buffer, long maxBufLen)
public static CFURLRef CFURLCopyAbsoluteURL(CFURLRef relativeURL)
public static CFStringRef CFURLGetString(CFURLRef anURL)
public static CFURLRef CFURLGetBaseURL(CFURLRef anURL)
public static byte CFURLCanBeDecomposed(CFURLRef anURL)
public static CFStringRef CFURLCopyScheme(CFURLRef anURL)
public static CFStringRef CFURLCopyNetLocation(CFURLRef anURL)
public static CFStringRef CFURLCopyPath(CFURLRef anURL)
public static CFStringRef CFURLCopyStrictPath(CFURLRef anURL, org.moe.natj.general.ptr.BytePtr isAbsolute)
public static CFStringRef CFURLCopyFileSystemPath(CFURLRef anURL, long pathStyle)
public static byte CFURLHasDirectoryPath(CFURLRef anURL)
public static CFStringRef CFURLCopyResourceSpecifier(CFURLRef anURL)
public static CFStringRef CFURLCopyHostName(CFURLRef anURL)
public static int CFURLGetPortNumber(CFURLRef anURL)
public static CFStringRef CFURLCopyUserName(CFURLRef anURL)
public static CFStringRef CFURLCopyPassword(CFURLRef anURL)
public static CFStringRef CFURLCopyParameterString(CFURLRef anURL, CFStringRef charactersToLeaveEscaped)
public static CFStringRef CFURLCopyQueryString(CFURLRef anURL, CFStringRef charactersToLeaveEscaped)
public static CFStringRef CFURLCopyFragment(CFURLRef anURL, CFStringRef charactersToLeaveEscaped)
public static CFStringRef CFURLCopyLastPathComponent(CFURLRef url)
public static CFStringRef CFURLCopyPathExtension(CFURLRef url)
public static CFURLRef CFURLCreateCopyAppendingPathComponent(CFAllocatorRef allocator, CFURLRef url, CFStringRef pathComponent, byte isDirectory)
public static CFURLRef CFURLCreateCopyDeletingLastPathComponent(CFAllocatorRef allocator, CFURLRef url)
public static CFURLRef CFURLCreateCopyAppendingPathExtension(CFAllocatorRef allocator, CFURLRef url, CFStringRef extension)
public static CFURLRef CFURLCreateCopyDeletingPathExtension(CFAllocatorRef allocator, CFURLRef url)
public static long CFURLGetBytes(CFURLRef url, org.moe.natj.general.ptr.BytePtr buffer, long bufferLength)
public static CFRange CFURLGetByteRangeForComponent(CFURLRef url, long component, CFRange rangeIncludingSeparators)
If non-NULL, rangeIncludingSeparators gives the range of component including the sequences that separate component from the previous and next components. If there is no previous or next component, that end of rangeIncludingSeparators will match the range of the component itself. If url does not contain the given component type, (kCFNotFound, 0) is returned, and rangeIncludingSeparators is set to the location where the component would be inserted. Some examples -
For the URL http://www.apple.com/hotnews/
Component returned range rangeIncludingSeparators scheme (0, 4) (0, 7) net location (7, 13) (4, 16) path (20, 9) (20, 9) resource specifier (kCFNotFound, 0) (29, 0) user (kCFNotFound, 0) (7, 0) password (kCFNotFound, 0) (7, 0) user info (kCFNotFound, 0) (7, 0) host (7, 13) (4, 16) port (kCFNotFound, 0) (20, 0) parameter (kCFNotFound, 0) (29, 0) query (kCFNotFound, 0) (29, 0) fragment (kCFNotFound, 0) (29, 0)
For the URL ./relPath/file.html#fragment
Component returned range rangeIncludingSeparators scheme (kCFNotFound, 0) (0, 0) net location (kCFNotFound, 0) (0, 0) path (0, 19) (0, 20) resource specifier (20, 8) (19, 9) user (kCFNotFound, 0) (0, 0) password (kCFNotFound, 0) (0, 0) user info (kCFNotFound, 0) (0, 0) host (kCFNotFound, 0) (0, 0) port (kCFNotFound, 0) (0, 0) parameter (kCFNotFound, 0) (19, 0) query (kCFNotFound, 0) (19, 0) fragment (20, 8) (19, 9)
For the URL scheme://user:pass@host:1/path/path2/file.html;params?query#fragment
Component returned range rangeIncludingSeparators scheme (0, 6) (0, 9) net location (9, 16) (6, 19) path (25, 21) (25, 22) resource specifier (47, 21) (46, 22) user (9, 4) (6, 8) password (14, 4) (13, 6) user info (9, 9) (6, 13) host (19, 4) (18, 6) port (24, 1) (23, 2) parameter (47, 6) (46, 8) query (54, 5) (53, 7) fragment (60, 8) (59, 9)
public static CFStringRef CFURLCreateStringByReplacingPercentEscapes(CFAllocatorRef allocator, CFStringRef originalString, CFStringRef charactersToLeaveEscaped)
@Deprecated public static CFStringRef CFURLCreateStringByReplacingPercentEscapesUsingEncoding(CFAllocatorRef allocator, CFStringRef origString, CFStringRef charsToLeaveEscaped, int encoding)
@Deprecated public static CFStringRef CFURLCreateStringByAddingPercentEscapes(CFAllocatorRef allocator, CFStringRef originalString, CFStringRef charactersToLeaveUnescaped, CFStringRef legalURLCharactersToBeEscaped, int encoding)
public static byte CFURLIsFileReferenceURL(CFURLRef url)
Returns whether the URL is a file reference URL.
Parameters url The URL specifying the resource.
public static CFURLRef CFURLCreateFileReferenceURL(CFAllocatorRef allocator, CFURLRef url, org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
Returns a new file reference URL that refers to the same resource as a specified URL.
Parameters allocator The memory allocator for creating the new URL. url The file URL specifying the resource. error On output when the result is NULL, the error that occurred. This parameter is optional; if you do not wish the error returned, pass NULL here. The caller is responsible for releasing a valid output error.
Return Value The new file reference URL, or NULL if an error occurs.
Discussion File reference URLs use a URL path syntax that identifies a file system object by reference, not by path. This form of file URL remains valid when the file system path of the URL’s underlying resource changes. An error will occur if the url parameter is not a file URL. File reference URLs cannot be created to file system objects which do not exist or are not reachable. In some areas of the file system hierarchy, file reference URLs cannot be generated to the leaf node of the URL path. A file reference URL's path should never be persistently stored because is not valid across system restarts, and across remounts of volumes -- if you want to create a persistent reference to a file system object, use a bookmark (see CFURLCreateBookmarkData). If this function returns NULL, the optional error is populated. This function is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation.
public static CFURLRef CFURLCreateFilePathURL(CFAllocatorRef allocator, CFURLRef url, org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
Returns a new file path URL that refers to the same resource as a specified URL.
Parameters allocator The memory allocator for creating the new URL. url The file URL specifying the resource. error On output when the result is NULL, the error that occurred. This parameter is optional; if you do not wish the error returned, pass NULL here. The caller is responsible for releasing a valid output error.
Return Value The new file path URL, or NULL if an error occurs.
Discussion File path URLs use a file system style path. An error will occur if the url parameter is not a file URL. A file reference URL's resource must exist and be reachable to be converted to a file path URL. If this function returns NULL, the optional error is populated. This function is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation.
@Deprecated public static CFURLRef CFURLCreateFromFSRef(CFAllocatorRef allocator, org.moe.natj.general.ptr.VoidPtr fsRef)
@Deprecated public static byte CFURLGetFSRef(CFURLRef url, org.moe.natj.general.ptr.VoidPtr fsRef)
public static byte CFURLCopyResourcePropertyForKey(CFURLRef url, CFStringRef key, org.moe.natj.general.ptr.VoidPtr propertyValueTypeRefPtr, org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
Returns the resource value identified by a given resource key.
Parameters url The URL specifying the resource. key The resource key that identifies the resource property. propertyValueTypeRefPtr On output when the result is true, the resource value or NULL. error On output when the result is false, the error that occurred. This parameter is optional; if you do not wish the error returned, pass NULL here. The caller is responsible for releasing a valid output error.
Return Value true if propertyValueTypeRefPtr is successfully populated; false if an error occurs.
Discussion CFURLCopyResourcePropertyForKey first checks if the URL object already caches the resource value. If so, it returns the cached resource value to the caller. If not, then CFURLCopyResourcePropertyForKey synchronously obtains the resource value from the backing store, adds the resource value to the URL object's cache, and returns the resource value to the caller. The type of the resource value varies by resource property (see resource key definitions). If this function returns true and propertyValueTypeRefPtr is populated with NULL, it means the resource property is not available for the specified resource and no errors occurred when determining the resource property was not available. If this function returns false, the optional error is populated. This function is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation.
public static CFDictionaryRef CFURLCopyResourcePropertiesForKeys(CFURLRef url, CFArrayRef keys, org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
Returns the resource values identified by specified array of resource keys.
Parameters url The URL specifying the resource. keys An array of resource keys that identify the resource properties. error On output when the result is NULL, the error that occurred. This parameter is optional; if you do not wish the error returned, pass NULL here. The caller is responsible for releasing a valid output error.
Return Value A dictionary of resource values indexed by resource key; NULL if an error occurs.
Discussion CFURLCopyResourcePropertiesForKeys first checks if the URL object already caches the resource values. If so, it returns the cached resource values to the caller. If not, then CFURLCopyResourcePropertyForKey synchronously obtains the resource values from the backing store, adds the resource values to the URL object's cache, and returns the resource values to the caller. The type of the resource values vary by property (see resource key definitions). If the result dictionary does not contain a resource value for one or more of the requested resource keys, it means those resource properties are not available for the specified resource and no errors occurred when determining those resource properties were not available. If this function returns NULL, the optional error is populated. This function is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation.
public static byte CFURLSetResourcePropertyForKey(CFURLRef url, CFStringRef key, org.moe.natj.general.ptr.ConstVoidPtr propertyValue, org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
Sets the resource value identified by a given resource key.
Parameters url The URL specifying the resource. key The resource key that identifies the resource property. propertyValue The resource value. error On output when the result is false, the error that occurred. This parameter is optional; if you do not wish the error returned, pass NULL here. The caller is responsible for releasing a valid output error.
Return Value true if the attempt to set the resource value completed with no errors; otherwise, false.
Discussion CFURLSetResourcePropertyForKey writes the new resource value out to the backing store. Attempts to set a read-only resource property or to set a resource property not supported by the resource are ignored and are not considered errors. If this function returns false, the optional error is populated. This function is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation.
public static byte CFURLSetResourcePropertiesForKeys(CFURLRef url, CFDictionaryRef keyedPropertyValues, org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
Sets any number of resource values of a URL's resource.
Parameters url The URL specifying the resource. keyedPropertyValues A dictionary of resource values indexed by resource keys. error On output when the result is false, the error that occurred. This parameter is optional; if you do not wish the error returned, pass NULL here. The caller is responsible for releasing a valid output error.
Return Value true if the attempt to set the resource values completed with no errors; otherwise, false.
Discussion CFURLSetResourcePropertiesForKeys writes the new resource values out to the backing store. Attempts to set read-only resource properties or to set resource properties not supported by the resource are ignored and are not considered errors. If an error occurs after some resource properties have been successfully changed, the userInfo dictionary in the returned error contains an array of resource keys that were not set with the key kCFURLKeysOfUnsetValuesKey. The order in which the resource values are set is not defined. If you need to guarantee the order resource values are set, you should make multiple requests to CFURLSetResourcePropertiesForKeys or CFURLSetResourcePropertyForKey to guarantee the order. If this function returns false, the optional error is populated. This function is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation.
public static void CFURLClearResourcePropertyCacheForKey(CFURLRef url, CFStringRef key)
Discards a cached resource value of a URL.
Parameters url The URL specifying the resource. key The resource key that identifies the resource property.
Discussion Discarding a cached resource value may discard other cached resource values, because some resource values are cached as a set of values and because some resource values depend on other resource values (temporary properties have no dependencies). This function is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation.
public static void CFURLClearResourcePropertyCache(CFURLRef url)
Discards all cached resource values of a URL.
Parameters url The URL specifying the resource.
Discussion All temporary properties are also cleared from the URL object's cache. This function is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation.
public static void CFURLSetTemporaryResourcePropertyForKey(CFURLRef url, CFStringRef key, org.moe.natj.general.ptr.ConstVoidPtr propertyValue)
Sets a temporary resource value on the URL object.
Parameters url The URL object. key The resource key that identifies the temporary resource property. propertyValue The resource value.
Discussion Temporary properties are for client use. Temporary properties exist only in memory and are never written to the resource's backing store. Once set, a temporary value can be copied from the URL object with CFURLCopyResourcePropertyForKey and CFURLCopyResourcePropertiesForKeys. To remove a temporary value from the URL object, use CFURLClearResourcePropertyCacheForKey. Temporary values must be valid Core Foundation types, and will be retained by CFURLSetTemporaryResourcePropertyForKey. Care should be taken to ensure the key that identifies a temporary resource property is unique and does not conflict with system defined keys (using reverse domain name notation in your temporary resource property keys is recommended). This function is currently applicable only to URLs for file system resources. Symbol is present in iOS 4, but performs no operation.
public static byte CFURLResourceIsReachable(CFURLRef url, org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
Returns whether the URL's resource exists and is reachable.
Parameters url The URL object. error On output when the result is false, the error that occurred. This parameter is optional; if you do not wish the error returned, pass NULL here. The caller is responsible for releasing a valid output error.
Return Value true if the resource is reachable; otherwise, false.
Discussion CFURLResourceIsReachable synchronously checks if the resource's backing store is reachable. Checking reachability is appropriate when making decisions that do not require other immediate operations on the resource, e.g. periodic maintenance of UI state that depends on the existence of a specific document. When performing operations such as opening a file or copying resource properties, it is more efficient to simply try the operation and handle failures. This function is currently applicable only to URLs for file system resources. If this function returns false, the optional error is populated. For other URL types, false is returned. Symbol is present in iOS 4, but performs no operation.
public static CFDataRef CFURLCreateBookmarkData(CFAllocatorRef allocator, CFURLRef url, long options, CFArrayRef resourcePropertiesToInclude, CFURLRef relativeToURL, org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
public static CFURLRef CFURLCreateByResolvingBookmarkData(CFAllocatorRef allocator, CFDataRef bookmark, long options, CFURLRef relativeToURL, CFArrayRef resourcePropertiesToInclude, org.moe.natj.general.ptr.BytePtr isStale, org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
public static CFDictionaryRef CFURLCreateResourcePropertiesForKeysFromBookmarkData(CFAllocatorRef allocator, CFArrayRef resourcePropertiesToReturn, CFDataRef bookmark)
public static org.moe.natj.general.ptr.ConstVoidPtr CFURLCreateResourcePropertyForKeyFromBookmarkData(CFAllocatorRef allocator, CFStringRef resourcePropertyKey, CFDataRef bookmark)
public static CFDataRef CFURLCreateBookmarkDataFromFile(CFAllocatorRef allocator, CFURLRef fileURL, org.moe.natj.general.ptr.Ptr<CFErrorRef> errorRef)
public static byte CFURLWriteBookmarkDataToFile(CFDataRef bookmarkRef, CFURLRef fileURL, long options, org.moe.natj.general.ptr.Ptr<CFErrorRef> errorRef)
public static byte CFURLStartAccessingSecurityScopedResource(CFURLRef url)
public static void CFURLStopAccessingSecurityScopedResource(CFURLRef url)
public static double CFAbsoluteTimeGetCurrent()
public static long CFDateGetTypeID()
public static CFDateRef CFDateCreate(CFAllocatorRef allocator, double at)
public static double CFDateGetAbsoluteTime(CFDateRef theDate)
public static double CFDateGetTimeIntervalSinceDate(CFDateRef theDate, CFDateRef otherDate)
public static long CFDateCompare(CFDateRef theDate, CFDateRef otherDate, org.moe.natj.general.ptr.VoidPtr context)
@Deprecated public static byte CFGregorianDateIsValid(CFGregorianDate gdate, long unitFlags)
@Deprecated public static double CFGregorianDateGetAbsoluteTime(CFGregorianDate gdate, CFTimeZoneRef tz)
@Deprecated public static CFGregorianDate CFAbsoluteTimeGetGregorianDate(double at, CFTimeZoneRef tz)
@Deprecated
public static double CFAbsoluteTimeAddGregorianUnits(double at,
CFTimeZoneRef tz,
CFGregorianUnits units)
@Deprecated public static CFGregorianUnits CFAbsoluteTimeGetDifferenceAsGregorianUnits(double at1, double at2, CFTimeZoneRef tz, long unitFlags)
@Deprecated
public static int CFAbsoluteTimeGetDayOfWeek(double at,
CFTimeZoneRef tz)
@Deprecated
public static int CFAbsoluteTimeGetDayOfYear(double at,
CFTimeZoneRef tz)
@Deprecated
public static int CFAbsoluteTimeGetWeekOfYear(double at,
CFTimeZoneRef tz)
public static long CFBagGetTypeID()
public static CFBagRef CFBagCreate(CFAllocatorRef allocator, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values, long numValues, CFBagCallBacks callBacks)
public static CFBagRef CFBagCreateCopy(CFAllocatorRef allocator, CFBagRef theBag)
public static CFMutableBagRef CFBagCreateMutable(CFAllocatorRef allocator, long capacity, CFBagCallBacks callBacks)
public static CFMutableBagRef CFBagCreateMutableCopy(CFAllocatorRef allocator, long capacity, CFBagRef theBag)
public static long CFBagGetCount(CFBagRef theBag)
public static long CFBagGetCountOfValue(CFBagRef theBag, org.moe.natj.general.ptr.ConstVoidPtr value)
public static byte CFBagContainsValue(CFBagRef theBag, org.moe.natj.general.ptr.ConstVoidPtr value)
public static org.moe.natj.general.ptr.ConstVoidPtr CFBagGetValue(CFBagRef theBag, org.moe.natj.general.ptr.ConstVoidPtr value)
public static byte CFBagGetValueIfPresent(CFBagRef theBag, org.moe.natj.general.ptr.ConstVoidPtr candidate, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> value)
public static void CFBagGetValues(CFBagRef theBag, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values)
public static void CFBagApplyFunction(CFBagRef theBag, CoreFoundation.Function_CFBagApplyFunction applier, org.moe.natj.general.ptr.VoidPtr context)
public static void CFBagAddValue(CFMutableBagRef theBag, org.moe.natj.general.ptr.ConstVoidPtr value)
public static void CFBagReplaceValue(CFMutableBagRef theBag, org.moe.natj.general.ptr.ConstVoidPtr value)
public static void CFBagSetValue(CFMutableBagRef theBag, org.moe.natj.general.ptr.ConstVoidPtr value)
public static void CFBagRemoveValue(CFMutableBagRef theBag, org.moe.natj.general.ptr.ConstVoidPtr value)
public static void CFBagRemoveAllValues(CFMutableBagRef theBag)
public static long CFBinaryHeapGetTypeID()
public static CFBinaryHeapRef CFBinaryHeapCreate(CFAllocatorRef allocator, long capacity, CFBinaryHeapCallBacks callBacks, CFBinaryHeapCompareContext compareContext)
allocator - The CFAllocator which should be used to allocate
memory for the binary heap and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.capacity - A hint about the number of values that will be held
by the CFBinaryHeap. Pass 0 for no hint. The implementation may
ignore this hint, or may use it to optimize various
operations. A heap's actual capacity is only limited by
address space and available memory constraints). If this
parameter is negative, the behavior is undefined.callBacks - A pointer to a CFBinaryHeapCallBacks structure
initialized with the callbacks for the binary heap to use on
each value in the binary heap. A copy of the contents of the
callbacks structure is made, so that a pointer to a structure
on the stack can be passed in, or can be reused for multiple
binary heap creations. If the version field of this callbacks
structure is not one of the defined ones for CFBinaryHeap, the
behavior is undefined. The retain field may be NULL, in which
case the CFBinaryHeap will do nothing to add a retain to values
as they are put into the binary heap. The release field may be
NULL, in which case the CFBinaryHeap will do nothing to remove
the binary heap's retain (if any) on the values when the
heap is destroyed or a key-value pair is removed. If the
copyDescription field is NULL, the binary heap will create a
simple description for a value. If the equal field is NULL, the
binary heap will use pointer equality to test for equality of
values. This callbacks parameter itself may be NULL, which is
treated as if a valid structure of version 0 with all fields
NULL had been passed in. Otherwise,
if any of the fields are not valid pointers to functions
of the correct type, or this parameter is not a valid
pointer to a CFBinaryHeapCallBacks callbacks structure,
the behavior is undefined. If any of the values put into the
binary heap is not one understood by one of the callback functions
the behavior when that callback function is used is undefined.compareContext - A pointer to a CFBinaryHeapCompareContext structure.public static CFBinaryHeapRef CFBinaryHeapCreateCopy(CFAllocatorRef allocator, long capacity, CFBinaryHeapRef heap)
allocator - The CFAllocator which should be used to allocate
memory for the binary heap and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.capacity - A hint about the number of values that will be held
by the CFBinaryHeap. Pass 0 for no hint. The implementation may
ignore this hint, or may use it to optimize various
operations. A heap's actual capacity is only limited by
address space and available memory constraints).
This parameter must be greater than or equal
to the count of the heap which is to be copied, or the
behavior is undefined. If this parameter is negative, the
behavior is undefined.heap - The binary heap which is to be copied. The values from the
binary heap are copied as pointers into the new binary heap (that is,
the values themselves are copied, not that which the values
point to, if anything). However, the values are also
retained by the new binary heap. The count of the new binary will
be the same as the given binary heap. The new binary heap uses the same
callbacks as the binary heap to be copied. If this parameter is
not a valid CFBinaryHeap, the behavior is undefined.public static long CFBinaryHeapGetCount(CFBinaryHeapRef heap)
heap - The binary heap to be queried. If this parameter is not a valid
CFBinaryHeap, the behavior is undefined.public static long CFBinaryHeapGetCountOfValue(CFBinaryHeapRef heap, org.moe.natj.general.ptr.ConstVoidPtr value)
heap - The binary heap to be searched. If this parameter is not a
valid CFBinaryHeap, the behavior is undefined.value - The value for which to find matches in the binary heap. The
compare() callback provided when the binary heap was created is
used to compare. If the compare() callback was NULL, pointer
equality (in C, ==) is used. If value, or any of the values
in the binary heap, are not understood by the compare() callback,
the behavior is undefined.public static byte CFBinaryHeapContainsValue(CFBinaryHeapRef heap, org.moe.natj.general.ptr.ConstVoidPtr value)
heap - The binary heap to be searched. If this parameter is not a
valid CFBinaryHeap, the behavior is undefined.value - The value for which to find matches in the binary heap. The
compare() callback provided when the binary heap was created is
used to compare. If the compare() callback was NULL, pointer
equality (in C, ==) is used. If value, or any of the values
in the binary heap, are not understood by the compare() callback,
the behavior is undefined.public static org.moe.natj.general.ptr.ConstVoidPtr CFBinaryHeapGetMinimum(CFBinaryHeapRef heap)
heap - The binary heap to be searched. If this parameter is not a
valid CFBinaryHeap, the behavior is undefined.public static byte CFBinaryHeapGetMinimumIfPresent(CFBinaryHeapRef heap, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> value)
heap - The binary heap to be searched. If this parameter is not a
valid CFBinaryHeap, the behavior is undefined.value - A C pointer to pointer-sized storage to be filled with the minimum value in
the binary heap. If this value is not a valid C pointer to a pointer-sized block
of storage, the result is undefined. If the result of the function is false, the value
stored at this address is undefined.public static void CFBinaryHeapGetValues(CFBinaryHeapRef heap, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values)
heap - The binary heap to be queried. If this parameter is not a
valid CFBinaryHeap, the behavior is undefined.values - A C array of pointer-sized values to be filled with
values from the binary heap. The values in the C array are ordered
from least to greatest. If this parameter is not a valid pointer to a
C array of at least CFBinaryHeapGetCount() pointers, the behavior is undefined.public static void CFBinaryHeapApplyFunction(CFBinaryHeapRef heap, CoreFoundation.Function_CFBinaryHeapApplyFunction applier, org.moe.natj.general.ptr.VoidPtr context)
heap - The binary heap to be operated upon. If this parameter is not a
valid CFBinaryHeap, the behavior is undefined.applier - The callback function to call once for each value in
the given binary heap. If this parameter is not a
pointer to a function of the correct prototype, the behavior
is undefined. If there are values in the binary heap which the
applier function does not expect or cannot properly apply
to, the behavior is undefined.context - A pointer-sized user-defined value, which is passed
as the second parameter to the applier function, but is
otherwise unused by this function. If the context is not
what is expected by the applier function, the behavior is
undefined.public static void CFBinaryHeapAddValue(CFBinaryHeapRef heap, org.moe.natj.general.ptr.ConstVoidPtr value)
heap - The binary heap to which the value is to be added. If this parameter is not a
valid mutable CFBinaryHeap, the behavior is undefined.value - The value to add to the binary heap. The value is retained by
the binary heap using the retain callback provided when the binary heap
was created. If the value is not of the sort expected by the
retain callback, the behavior is undefined.public static void CFBinaryHeapRemoveMinimumValue(CFBinaryHeapRef heap)
heap - The binary heap from which the minimum value is to be removed. If this
parameter is not a valid mutable CFBinaryHeap, the behavior is undefined.public static void CFBinaryHeapRemoveAllValues(CFBinaryHeapRef heap)
heap - The binary heap from which all of the values are to be
removed. If this parameter is not a valid mutable CFBinaryHeap,
the behavior is undefined.public static long CFBitVectorGetTypeID()
public static CFBitVectorRef CFBitVectorCreate(CFAllocatorRef allocator, java.lang.String bytes, long numBits)
public static CFBitVectorRef CFBitVectorCreateCopy(CFAllocatorRef allocator, CFBitVectorRef bv)
public static CFMutableBitVectorRef CFBitVectorCreateMutable(CFAllocatorRef allocator, long capacity)
public static CFMutableBitVectorRef CFBitVectorCreateMutableCopy(CFAllocatorRef allocator, long capacity, CFBitVectorRef bv)
public static long CFBitVectorGetCount(CFBitVectorRef bv)
public static long CFBitVectorGetCountOfBit(CFBitVectorRef bv, CFRange range, int value)
public static byte CFBitVectorContainsBit(CFBitVectorRef bv, CFRange range, int value)
public static int CFBitVectorGetBitAtIndex(CFBitVectorRef bv, long idx)
public static void CFBitVectorGetBits(CFBitVectorRef bv, CFRange range, org.moe.natj.general.ptr.BytePtr bytes)
public static long CFBitVectorGetFirstIndexOfBit(CFBitVectorRef bv, CFRange range, int value)
public static long CFBitVectorGetLastIndexOfBit(CFBitVectorRef bv, CFRange range, int value)
public static void CFBitVectorSetCount(CFMutableBitVectorRef bv, long count)
public static void CFBitVectorFlipBitAtIndex(CFMutableBitVectorRef bv, long idx)
public static void CFBitVectorFlipBits(CFMutableBitVectorRef bv, CFRange range)
public static void CFBitVectorSetBitAtIndex(CFMutableBitVectorRef bv, long idx, int value)
public static void CFBitVectorSetBits(CFMutableBitVectorRef bv, CFRange range, int value)
public static void CFBitVectorSetAllBits(CFMutableBitVectorRef bv, int value)
public static long CFByteOrderGetCurrent()
public static char CFSwapInt16(char arg)
public static int CFSwapInt32(int arg)
public static long CFSwapInt64(long arg)
public static char CFSwapInt16BigToHost(char arg)
public static int CFSwapInt32BigToHost(int arg)
public static long CFSwapInt64BigToHost(long arg)
public static char CFSwapInt16HostToBig(char arg)
public static int CFSwapInt32HostToBig(int arg)
public static long CFSwapInt64HostToBig(long arg)
public static char CFSwapInt16LittleToHost(char arg)
public static int CFSwapInt32LittleToHost(int arg)
public static long CFSwapInt64LittleToHost(long arg)
public static char CFSwapInt16HostToLittle(char arg)
public static int CFSwapInt32HostToLittle(int arg)
public static long CFSwapInt64HostToLittle(long arg)
public static CFSwappedFloat32 CFConvertFloat32HostToSwapped(float arg)
public static float CFConvertFloat32SwappedToHost(CFSwappedFloat32 arg)
public static CFSwappedFloat64 CFConvertFloat64HostToSwapped(double arg)
public static double CFConvertFloat64SwappedToHost(CFSwappedFloat64 arg)
public static CFSwappedFloat32 CFConvertFloatHostToSwapped(float arg)
public static float CFConvertFloatSwappedToHost(CFSwappedFloat32 arg)
public static CFSwappedFloat64 CFConvertDoubleHostToSwapped(double arg)
public static double CFConvertDoubleSwappedToHost(CFSwappedFloat64 arg)
public static long CFTimeZoneGetTypeID()
public static CFTimeZoneRef CFTimeZoneCopySystem()
public static void CFTimeZoneResetSystem()
public static CFTimeZoneRef CFTimeZoneCopyDefault()
public static void CFTimeZoneSetDefault(CFTimeZoneRef tz)
public static CFArrayRef CFTimeZoneCopyKnownNames()
public static CFDictionaryRef CFTimeZoneCopyAbbreviationDictionary()
public static void CFTimeZoneSetAbbreviationDictionary(CFDictionaryRef dict)
public static CFTimeZoneRef CFTimeZoneCreate(CFAllocatorRef allocator, CFStringRef name, CFDataRef data)
public static CFTimeZoneRef CFTimeZoneCreateWithTimeIntervalFromGMT(CFAllocatorRef allocator, double ti)
public static CFTimeZoneRef CFTimeZoneCreateWithName(CFAllocatorRef allocator, CFStringRef name, byte tryAbbrev)
public static CFStringRef CFTimeZoneGetName(CFTimeZoneRef tz)
public static CFDataRef CFTimeZoneGetData(CFTimeZoneRef tz)
public static double CFTimeZoneGetSecondsFromGMT(CFTimeZoneRef tz, double at)
public static CFStringRef CFTimeZoneCopyAbbreviation(CFTimeZoneRef tz, double at)
public static byte CFTimeZoneIsDaylightSavingTime(CFTimeZoneRef tz, double at)
public static double CFTimeZoneGetDaylightSavingTimeOffset(CFTimeZoneRef tz, double at)
public static double CFTimeZoneGetNextDaylightSavingTimeTransition(CFTimeZoneRef tz, double at)
public static CFStringRef CFTimeZoneCopyLocalizedName(CFTimeZoneRef tz, long style, CFLocaleRef locale)
public static long CFCalendarGetTypeID()
public static CFCalendarRef CFCalendarCopyCurrent()
public static CFCalendarRef CFCalendarCreateWithIdentifier(CFAllocatorRef allocator, CFStringRef identifier)
public static CFStringRef CFCalendarGetIdentifier(CFCalendarRef calendar)
public static CFLocaleRef CFCalendarCopyLocale(CFCalendarRef calendar)
public static void CFCalendarSetLocale(CFCalendarRef calendar, CFLocaleRef locale)
public static CFTimeZoneRef CFCalendarCopyTimeZone(CFCalendarRef calendar)
public static void CFCalendarSetTimeZone(CFCalendarRef calendar, CFTimeZoneRef tz)
public static long CFCalendarGetFirstWeekday(CFCalendarRef calendar)
public static void CFCalendarSetFirstWeekday(CFCalendarRef calendar, long wkdy)
public static long CFCalendarGetMinimumDaysInFirstWeek(CFCalendarRef calendar)
public static void CFCalendarSetMinimumDaysInFirstWeek(CFCalendarRef calendar, long mwd)
public static CFRange CFCalendarGetMinimumRangeOfUnit(CFCalendarRef calendar, long unit)
public static CFRange CFCalendarGetMaximumRangeOfUnit(CFCalendarRef calendar, long unit)
public static CFRange CFCalendarGetRangeOfUnit(CFCalendarRef calendar, long smallerUnit, long biggerUnit, double at)
public static long CFCalendarGetOrdinalityOfUnit(CFCalendarRef calendar, long smallerUnit, long biggerUnit, double at)
public static byte CFCalendarGetTimeRangeOfUnit(CFCalendarRef calendar, long unit, double at, org.moe.natj.general.ptr.DoublePtr startp, org.moe.natj.general.ptr.DoublePtr tip)
public static byte CFCalendarComposeAbsoluteTime(CFCalendarRef calendar, org.moe.natj.general.ptr.DoublePtr at, java.lang.String componentDesc, java.lang.Object... varargs)
public static byte CFCalendarDecomposeAbsoluteTime(CFCalendarRef calendar, double at, java.lang.String componentDesc, java.lang.Object... varargs)
public static byte CFCalendarAddComponents(CFCalendarRef calendar, org.moe.natj.general.ptr.DoublePtr at, long options, java.lang.String componentDesc, java.lang.Object... varargs)
public static byte CFCalendarGetComponentDifference(CFCalendarRef calendar, double startingAT, double resultAT, long options, java.lang.String componentDesc, java.lang.Object... varargs)
public static CFStringRef CFDateFormatterCreateDateFormatFromTemplate(CFAllocatorRef allocator, CFStringRef tmplate, long options, CFLocaleRef locale)
public static long CFDateFormatterGetTypeID()
public static CFDateFormatterRef CFDateFormatterCreateISO8601Formatter(CFAllocatorRef allocator, long formatOptions)
public static CFDateFormatterRef CFDateFormatterCreate(CFAllocatorRef allocator, CFLocaleRef locale, long dateStyle, long timeStyle)
public static CFLocaleRef CFDateFormatterGetLocale(CFDateFormatterRef formatter)
public static long CFDateFormatterGetDateStyle(CFDateFormatterRef formatter)
public static long CFDateFormatterGetTimeStyle(CFDateFormatterRef formatter)
public static CFStringRef CFDateFormatterGetFormat(CFDateFormatterRef formatter)
public static void CFDateFormatterSetFormat(CFDateFormatterRef formatter, CFStringRef formatString)
public static CFStringRef CFDateFormatterCreateStringWithDate(CFAllocatorRef allocator, CFDateFormatterRef formatter, CFDateRef date)
public static CFStringRef CFDateFormatterCreateStringWithAbsoluteTime(CFAllocatorRef allocator, CFDateFormatterRef formatter, double at)
public static CFDateRef CFDateFormatterCreateDateFromString(CFAllocatorRef allocator, CFDateFormatterRef formatter, CFStringRef string, CFRange rangep)
public static byte CFDateFormatterGetAbsoluteTimeFromString(CFDateFormatterRef formatter, CFStringRef string, CFRange rangep, org.moe.natj.general.ptr.DoublePtr atp)
public static void CFDateFormatterSetProperty(CFDateFormatterRef formatter, CFStringRef key, org.moe.natj.general.ptr.ConstVoidPtr value)
public static org.moe.natj.general.ptr.ConstVoidPtr CFDateFormatterCopyProperty(CFDateFormatterRef formatter, CFStringRef key)
public static long CFBooleanGetTypeID()
public static byte CFBooleanGetValue(CFBooleanRef boolean_)
public static long CFNumberGetTypeID()
public static CFNumberRef CFNumberCreate(CFAllocatorRef allocator, long theType, org.moe.natj.general.ptr.ConstVoidPtr valuePtr)
public static long CFNumberGetType(CFNumberRef number)
public static long CFNumberGetByteSize(CFNumberRef number)
public static byte CFNumberIsFloatType(CFNumberRef number)
public static byte CFNumberGetValue(CFNumberRef number, long theType, org.moe.natj.general.ptr.VoidPtr valuePtr)
public static long CFNumberCompare(CFNumberRef number, CFNumberRef otherNumber, org.moe.natj.general.ptr.VoidPtr context)
public static long CFNumberFormatterGetTypeID()
public static CFNumberFormatterRef CFNumberFormatterCreate(CFAllocatorRef allocator, CFLocaleRef locale, long style)
public static CFLocaleRef CFNumberFormatterGetLocale(CFNumberFormatterRef formatter)
public static long CFNumberFormatterGetStyle(CFNumberFormatterRef formatter)
public static CFStringRef CFNumberFormatterGetFormat(CFNumberFormatterRef formatter)
public static void CFNumberFormatterSetFormat(CFNumberFormatterRef formatter, CFStringRef formatString)
public static CFStringRef CFNumberFormatterCreateStringWithNumber(CFAllocatorRef allocator, CFNumberFormatterRef formatter, CFNumberRef number)
public static CFStringRef CFNumberFormatterCreateStringWithValue(CFAllocatorRef allocator, CFNumberFormatterRef formatter, long numberType, org.moe.natj.general.ptr.ConstVoidPtr valuePtr)
public static CFNumberRef CFNumberFormatterCreateNumberFromString(CFAllocatorRef allocator, CFNumberFormatterRef formatter, CFStringRef string, CFRange rangep, long options)
public static byte CFNumberFormatterGetValueFromString(CFNumberFormatterRef formatter, CFStringRef string, CFRange rangep, long numberType, org.moe.natj.general.ptr.VoidPtr valuePtr)
public static void CFNumberFormatterSetProperty(CFNumberFormatterRef formatter, CFStringRef key, org.moe.natj.general.ptr.ConstVoidPtr value)
public static org.moe.natj.general.ptr.ConstVoidPtr CFNumberFormatterCopyProperty(CFNumberFormatterRef formatter, CFStringRef key)
public static byte CFNumberFormatterGetDecimalInfoForCurrencyCode(CFStringRef currencyCode, org.moe.natj.general.ptr.IntPtr defaultFractionDigits, org.moe.natj.general.ptr.DoublePtr roundingIncrement)
public static org.moe.natj.general.ptr.ConstVoidPtr CFPreferencesCopyAppValue(CFStringRef key, CFStringRef applicationID)
public static byte CFPreferencesGetAppBooleanValue(CFStringRef key, CFStringRef applicationID, org.moe.natj.general.ptr.BytePtr keyExistsAndHasValidFormat)
public static long CFPreferencesGetAppIntegerValue(CFStringRef key, CFStringRef applicationID, org.moe.natj.general.ptr.BytePtr keyExistsAndHasValidFormat)
public static void CFPreferencesSetAppValue(CFStringRef key, org.moe.natj.general.ptr.ConstVoidPtr value, CFStringRef applicationID)
public static void CFPreferencesAddSuitePreferencesToApp(CFStringRef applicationID, CFStringRef suiteID)
public static void CFPreferencesRemoveSuitePreferencesFromApp(CFStringRef applicationID, CFStringRef suiteID)
public static byte CFPreferencesAppSynchronize(CFStringRef applicationID)
public static org.moe.natj.general.ptr.ConstVoidPtr CFPreferencesCopyValue(CFStringRef key, CFStringRef applicationID, CFStringRef userName, CFStringRef hostName)
public static CFDictionaryRef CFPreferencesCopyMultiple(CFArrayRef keysToFetch, CFStringRef applicationID, CFStringRef userName, CFStringRef hostName)
public static void CFPreferencesSetValue(CFStringRef key, org.moe.natj.general.ptr.ConstVoidPtr value, CFStringRef applicationID, CFStringRef userName, CFStringRef hostName)
public static void CFPreferencesSetMultiple(CFDictionaryRef keysToSet, CFArrayRef keysToRemove, CFStringRef applicationID, CFStringRef userName, CFStringRef hostName)
public static byte CFPreferencesSynchronize(CFStringRef applicationID, CFStringRef userName, CFStringRef hostName)
@Deprecated public static CFArrayRef CFPreferencesCopyApplicationList(CFStringRef userName, CFStringRef hostName)
public static CFArrayRef CFPreferencesCopyKeyList(CFStringRef applicationID, CFStringRef userName, CFStringRef hostName)
public static byte CFPreferencesAppValueIsForced(CFStringRef key, CFStringRef applicationID)
public static long CFRunLoopGetTypeID()
public static CFRunLoopRef CFRunLoopGetCurrent()
public static CFRunLoopRef CFRunLoopGetMain()
public static CFStringRef CFRunLoopCopyCurrentMode(CFRunLoopRef rl)
public static CFArrayRef CFRunLoopCopyAllModes(CFRunLoopRef rl)
public static void CFRunLoopAddCommonMode(CFRunLoopRef rl, CFStringRef mode)
public static double CFRunLoopGetNextTimerFireDate(CFRunLoopRef rl, CFStringRef mode)
public static void CFRunLoopRun()
public static int CFRunLoopRunInMode(CFStringRef mode, double seconds, byte returnAfterSourceHandled)
public static byte CFRunLoopIsWaiting(CFRunLoopRef rl)
public static void CFRunLoopWakeUp(CFRunLoopRef rl)
public static void CFRunLoopStop(CFRunLoopRef rl)
public static void CFRunLoopPerformBlock(CFRunLoopRef rl, org.moe.natj.general.ptr.ConstVoidPtr mode, CoreFoundation.Block_CFRunLoopPerformBlock block)
public static byte CFRunLoopContainsSource(CFRunLoopRef rl, CFRunLoopSourceRef source, CFStringRef mode)
public static void CFRunLoopAddSource(CFRunLoopRef rl, CFRunLoopSourceRef source, CFStringRef mode)
public static void CFRunLoopRemoveSource(CFRunLoopRef rl, CFRunLoopSourceRef source, CFStringRef mode)
public static byte CFRunLoopContainsObserver(CFRunLoopRef rl, CFRunLoopObserverRef observer, CFStringRef mode)
public static void CFRunLoopAddObserver(CFRunLoopRef rl, CFRunLoopObserverRef observer, CFStringRef mode)
public static void CFRunLoopRemoveObserver(CFRunLoopRef rl, CFRunLoopObserverRef observer, CFStringRef mode)
public static byte CFRunLoopContainsTimer(CFRunLoopRef rl, CFRunLoopTimerRef timer, CFStringRef mode)
public static void CFRunLoopAddTimer(CFRunLoopRef rl, CFRunLoopTimerRef timer, CFStringRef mode)
public static void CFRunLoopRemoveTimer(CFRunLoopRef rl, CFRunLoopTimerRef timer, CFStringRef mode)
public static long CFRunLoopSourceGetTypeID()
public static CFRunLoopSourceRef CFRunLoopSourceCreate(CFAllocatorRef allocator, long order, CFRunLoopSourceContext context)
public static long CFRunLoopSourceGetOrder(CFRunLoopSourceRef source)
public static void CFRunLoopSourceInvalidate(CFRunLoopSourceRef source)
public static byte CFRunLoopSourceIsValid(CFRunLoopSourceRef source)
public static void CFRunLoopSourceGetContext(CFRunLoopSourceRef source, CFRunLoopSourceContext context)
public static void CFRunLoopSourceSignal(CFRunLoopSourceRef source)
public static long CFRunLoopObserverGetTypeID()
public static CFRunLoopObserverRef CFRunLoopObserverCreate(CFAllocatorRef allocator, long activities, byte repeats, long order, CoreFoundation.Function_CFRunLoopObserverCreate callout, CFRunLoopObserverContext context)
public static CFRunLoopObserverRef CFRunLoopObserverCreateWithHandler(CFAllocatorRef allocator, long activities, byte repeats, long order, CoreFoundation.Block_CFRunLoopObserverCreateWithHandler block)
public static long CFRunLoopObserverGetActivities(CFRunLoopObserverRef observer)
public static byte CFRunLoopObserverDoesRepeat(CFRunLoopObserverRef observer)
public static long CFRunLoopObserverGetOrder(CFRunLoopObserverRef observer)
public static void CFRunLoopObserverInvalidate(CFRunLoopObserverRef observer)
public static byte CFRunLoopObserverIsValid(CFRunLoopObserverRef observer)
public static void CFRunLoopObserverGetContext(CFRunLoopObserverRef observer, CFRunLoopObserverContext context)
public static long CFRunLoopTimerGetTypeID()
public static CFRunLoopTimerRef CFRunLoopTimerCreate(CFAllocatorRef allocator, double fireDate, double interval, long flags, long order, CoreFoundation.Function_CFRunLoopTimerCreate callout, CFRunLoopTimerContext context)
public static CFRunLoopTimerRef CFRunLoopTimerCreateWithHandler(CFAllocatorRef allocator, double fireDate, double interval, long flags, long order, CoreFoundation.Block_CFRunLoopTimerCreateWithHandler block)
public static double CFRunLoopTimerGetNextFireDate(CFRunLoopTimerRef timer)
public static void CFRunLoopTimerSetNextFireDate(CFRunLoopTimerRef timer, double fireDate)
public static double CFRunLoopTimerGetInterval(CFRunLoopTimerRef timer)
public static byte CFRunLoopTimerDoesRepeat(CFRunLoopTimerRef timer)
public static long CFRunLoopTimerGetOrder(CFRunLoopTimerRef timer)
public static void CFRunLoopTimerInvalidate(CFRunLoopTimerRef timer)
public static byte CFRunLoopTimerIsValid(CFRunLoopTimerRef timer)
public static void CFRunLoopTimerGetContext(CFRunLoopTimerRef timer, CFRunLoopTimerContext context)
public static double CFRunLoopTimerGetTolerance(CFRunLoopTimerRef timer)
public static void CFRunLoopTimerSetTolerance(CFRunLoopTimerRef timer, double tolerance)
public static long CFSocketGetTypeID()
public static CFSocketRef CFSocketCreate(CFAllocatorRef allocator, int protocolFamily, int socketType, int protocol, long callBackTypes, CoreFoundation.Function_CFSocketCreate callout, CFSocketContext context)
public static CFSocketRef CFSocketCreateWithNative(CFAllocatorRef allocator, int sock, long callBackTypes, CoreFoundation.Function_CFSocketCreateWithNative callout, CFSocketContext context)
public static CFSocketRef CFSocketCreateWithSocketSignature(CFAllocatorRef allocator, CFSocketSignature signature, long callBackTypes, CoreFoundation.Function_CFSocketCreateWithSocketSignature callout, CFSocketContext context)
public static CFSocketRef CFSocketCreateConnectedToSocketSignature(CFAllocatorRef allocator, CFSocketSignature signature, long callBackTypes, CoreFoundation.Function_CFSocketCreateConnectedToSocketSignature callout, CFSocketContext context, double timeout)
public static long CFSocketSetAddress(CFSocketRef s, CFDataRef address)
public static long CFSocketConnectToAddress(CFSocketRef s, CFDataRef address, double timeout)
public static void CFSocketInvalidate(CFSocketRef s)
public static byte CFSocketIsValid(CFSocketRef s)
public static CFDataRef CFSocketCopyAddress(CFSocketRef s)
public static CFDataRef CFSocketCopyPeerAddress(CFSocketRef s)
public static void CFSocketGetContext(CFSocketRef s, CFSocketContext context)
public static int CFSocketGetNative(CFSocketRef s)
public static CFRunLoopSourceRef CFSocketCreateRunLoopSource(CFAllocatorRef allocator, CFSocketRef s, long order)
public static long CFSocketGetSocketFlags(CFSocketRef s)
public static void CFSocketSetSocketFlags(CFSocketRef s, long flags)
public static void CFSocketDisableCallBacks(CFSocketRef s, long callBackTypes)
public static void CFSocketEnableCallBacks(CFSocketRef s, long callBackTypes)
public static long CFSocketSendData(CFSocketRef s, CFDataRef address, CFDataRef data, double timeout)
public static long CFSocketRegisterValue(CFSocketSignature nameServerSignature, double timeout, CFStringRef name, org.moe.natj.general.ptr.ConstVoidPtr value)
public static long CFSocketCopyRegisteredValue(CFSocketSignature nameServerSignature, double timeout, CFStringRef name, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> value, org.moe.natj.general.ptr.Ptr<CFDataRef> nameServerAddress)
public static long CFSocketRegisterSocketSignature(CFSocketSignature nameServerSignature, double timeout, CFStringRef name, CFSocketSignature signature)
public static long CFSocketCopyRegisteredSocketSignature(CFSocketSignature nameServerSignature, double timeout, CFStringRef name, CFSocketSignature signature, org.moe.natj.general.ptr.Ptr<CFDataRef> nameServerAddress)
public static long CFSocketUnregister(CFSocketSignature nameServerSignature, double timeout, CFStringRef name)
public static void CFSocketSetDefaultNameRegistryPortNumber(char port)
public static char CFSocketGetDefaultNameRegistryPortNumber()
public static long CFReadStreamGetTypeID()
public static long CFWriteStreamGetTypeID()
public static CFReadStreamRef CFReadStreamCreateWithBytesNoCopy(CFAllocatorRef alloc, java.lang.String bytes, long length, CFAllocatorRef bytesDeallocator)
public static CFWriteStreamRef CFWriteStreamCreateWithBuffer(CFAllocatorRef alloc, org.moe.natj.general.ptr.BytePtr buffer, long bufferCapacity)
public static CFWriteStreamRef CFWriteStreamCreateWithAllocatedBuffers(CFAllocatorRef alloc, CFAllocatorRef bufferAllocator)
public static CFReadStreamRef CFReadStreamCreateWithFile(CFAllocatorRef alloc, CFURLRef fileURL)
public static CFWriteStreamRef CFWriteStreamCreateWithFile(CFAllocatorRef alloc, CFURLRef fileURL)
public static void CFStreamCreateBoundPair(CFAllocatorRef alloc, org.moe.natj.general.ptr.Ptr<CFReadStreamRef> readStream, org.moe.natj.general.ptr.Ptr<CFWriteStreamRef> writeStream, long transferBufferSize)
public static void CFStreamCreatePairWithSocket(CFAllocatorRef alloc, int sock, org.moe.natj.general.ptr.Ptr<CFReadStreamRef> readStream, org.moe.natj.general.ptr.Ptr<CFWriteStreamRef> writeStream)
public static void CFStreamCreatePairWithSocketToHost(CFAllocatorRef alloc, CFStringRef host, int port, org.moe.natj.general.ptr.Ptr<CFReadStreamRef> readStream, org.moe.natj.general.ptr.Ptr<CFWriteStreamRef> writeStream)
public static void CFStreamCreatePairWithPeerSocketSignature(CFAllocatorRef alloc, CFSocketSignature signature, org.moe.natj.general.ptr.Ptr<CFReadStreamRef> readStream, org.moe.natj.general.ptr.Ptr<CFWriteStreamRef> writeStream)
public static long CFReadStreamGetStatus(CFReadStreamRef stream)
public static long CFWriteStreamGetStatus(CFWriteStreamRef stream)
public static CFErrorRef CFReadStreamCopyError(CFReadStreamRef stream)
public static CFErrorRef CFWriteStreamCopyError(CFWriteStreamRef stream)
public static byte CFReadStreamOpen(CFReadStreamRef stream)
public static byte CFWriteStreamOpen(CFWriteStreamRef stream)
public static void CFReadStreamClose(CFReadStreamRef stream)
public static void CFWriteStreamClose(CFWriteStreamRef stream)
public static byte CFReadStreamHasBytesAvailable(CFReadStreamRef stream)
public static long CFReadStreamRead(CFReadStreamRef stream, org.moe.natj.general.ptr.BytePtr buffer, long bufferLength)
public static java.lang.String CFReadStreamGetBuffer(CFReadStreamRef stream, long maxBytesToRead, org.moe.natj.general.ptr.NIntPtr numBytesRead)
public static byte CFWriteStreamCanAcceptBytes(CFWriteStreamRef stream)
public static long CFWriteStreamWrite(CFWriteStreamRef stream, java.lang.String buffer, long bufferLength)
public static org.moe.natj.general.ptr.ConstVoidPtr CFReadStreamCopyProperty(CFReadStreamRef stream, CFStringRef propertyName)
public static org.moe.natj.general.ptr.ConstVoidPtr CFWriteStreamCopyProperty(CFWriteStreamRef stream, CFStringRef propertyName)
public static byte CFReadStreamSetProperty(CFReadStreamRef stream, CFStringRef propertyName, org.moe.natj.general.ptr.ConstVoidPtr propertyValue)
public static byte CFWriteStreamSetProperty(CFWriteStreamRef stream, CFStringRef propertyName, org.moe.natj.general.ptr.ConstVoidPtr propertyValue)
public static byte CFReadStreamSetClient(CFReadStreamRef stream, long streamEvents, CoreFoundation.Function_CFReadStreamSetClient clientCB, CFStreamClientContext clientContext)
Once you have set a client, the stream must be scheduled to provide the context in which the client will be called. Streams may be scheduled on a single dispatch queue or on one or more run loops. If scheduled on a run loop, it is the caller's responsibility to ensure that at least one of the scheduled run loops is being run.
NOTE: Unlike other CoreFoundation APIs, pasing a NULL clientContext here will remove the client. If you do not care about the client context (i.e. your only concern is that your callback be called), you should pass in a valid context where every entry is 0 or NULL.
public static byte CFWriteStreamSetClient(CFWriteStreamRef stream, long streamEvents, CoreFoundation.Function_CFWriteStreamSetClient clientCB, CFStreamClientContext clientContext)
public static void CFReadStreamScheduleWithRunLoop(CFReadStreamRef stream, CFRunLoopRef runLoop, CFStringRef runLoopMode)
public static void CFWriteStreamScheduleWithRunLoop(CFWriteStreamRef stream, CFRunLoopRef runLoop, CFStringRef runLoopMode)
public static void CFReadStreamUnscheduleFromRunLoop(CFReadStreamRef stream, CFRunLoopRef runLoop, CFStringRef runLoopMode)
public static void CFWriteStreamUnscheduleFromRunLoop(CFWriteStreamRef stream, CFRunLoopRef runLoop, CFStringRef runLoopMode)
public static void CFReadStreamSetDispatchQueue(CFReadStreamRef stream, NSObject q)
public static void CFWriteStreamSetDispatchQueue(CFWriteStreamRef stream, NSObject q)
public static NSObject CFReadStreamCopyDispatchQueue(CFReadStreamRef stream)
public static NSObject CFWriteStreamCopyDispatchQueue(CFWriteStreamRef stream)
public static CFStreamError CFReadStreamGetError(CFReadStreamRef stream)
public static CFStreamError CFWriteStreamGetError(CFWriteStreamRef stream)
@Deprecated public static org.moe.natj.general.ptr.ConstVoidPtr CFPropertyListCreateFromXMLData(CFAllocatorRef allocator, CFDataRef xmlData, long mutabilityOption, org.moe.natj.general.ptr.Ptr<CFStringRef> errorString)
This function is deprecated. See CFPropertyListCreateWithData() for a replacement.
@Deprecated public static CFDataRef CFPropertyListCreateXMLData(CFAllocatorRef allocator, org.moe.natj.general.ptr.ConstVoidPtr propertyList)
This function is deprecated. See CFPropertyListCreateData() for a replacement.
public static org.moe.natj.general.ptr.ConstVoidPtr CFPropertyListCreateDeepCopy(CFAllocatorRef allocator, org.moe.natj.general.ptr.ConstVoidPtr propertyList, long mutabilityOption)
public static byte CFPropertyListIsValid(org.moe.natj.general.ptr.ConstVoidPtr plist,
long format)
@Deprecated
public static long CFPropertyListWriteToStream(org.moe.natj.general.ptr.ConstVoidPtr propertyList,
CFWriteStreamRef stream,
long format,
org.moe.natj.general.ptr.Ptr<CFStringRef> errorString)
This function is deprecated. See CFPropertyListWrite() for a replacement.
@Deprecated public static org.moe.natj.general.ptr.ConstVoidPtr CFPropertyListCreateFromStream(CFAllocatorRef allocator, CFReadStreamRef stream, long streamLength, long mutabilityOption, org.moe.natj.general.ptr.NIntPtr format, org.moe.natj.general.ptr.Ptr<CFStringRef> errorString)
This function is deprecated. See CFPropertyListCreateWithStream() for a replacement.
public static org.moe.natj.general.ptr.ConstVoidPtr CFPropertyListCreateWithData(CFAllocatorRef allocator, CFDataRef data, long options, org.moe.natj.general.ptr.NIntPtr format, org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
public static org.moe.natj.general.ptr.ConstVoidPtr CFPropertyListCreateWithStream(CFAllocatorRef allocator, CFReadStreamRef stream, long streamLength, long options, org.moe.natj.general.ptr.NIntPtr format, org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
public static long CFPropertyListWrite(org.moe.natj.general.ptr.ConstVoidPtr propertyList,
CFWriteStreamRef stream,
long format,
long options,
org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
public static CFDataRef CFPropertyListCreateData(CFAllocatorRef allocator, org.moe.natj.general.ptr.ConstVoidPtr propertyList, long format, long options, org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
public static long CFSetGetTypeID()
public static CFSetRef CFSetCreate(CFAllocatorRef allocator, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values, long numValues, CFSetCallBacks callBacks)
allocator - The CFAllocator which should be used to allocate
memory for the set and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.values - A C array of the pointer-sized values to be in the
set. This C array is not changed or freed by this function.
If this parameter is not a valid pointer to a C array of at
least numValues pointers, the behavior is undefined.numValues - The number of values to copy from the values C
array into the CFSet. This number will be the count of the
set. If this parameter is zero, negative, or greater than
the number of values actually in the values C array, the
behavior is undefined.callBacks - A C pointer to a CFSetCallBacks structure
initialized with the callbacks for the set to use on each
value in the set. A copy of the contents of the
callbacks structure is made, so that a pointer to a
structure on the stack can be passed in, or can be reused
for multiple set creations. If the version field of this
callbacks structure is not one of the defined ones for
CFSet, the behavior is undefined. The retain field may be
NULL, in which case the CFSet will do nothing to add a
retain to the contained values for the set. The release
field may be NULL, in which case the CFSet will do nothing
to remove the set's retain (if any) on the values when the
set is destroyed. If the copyDescription field is NULL,
the set will create a simple description for the value. If
the equal field is NULL, the set will use pointer equality
to test for equality of values. The hash field may be NULL,
in which case the CFSet will determine uniqueness by pointer
equality. This callbacks parameter
itself may be NULL, which is treated as if a valid structure
of version 0 with all fields NULL had been passed in.
Otherwise, if any of the fields are not valid pointers to
functions of the correct type, or this parameter is not a
valid pointer to a CFSetCallBacks callbacks structure,
the behavior is undefined. If any of the values put into the
set is not one understood by one of the callback functions
the behavior when that callback function is used is
undefined.public static CFSetRef CFSetCreateCopy(CFAllocatorRef allocator, CFSetRef theSet)
allocator - The CFAllocator which should be used to allocate
memory for the set and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.theSet - The set which is to be copied. The values from the
set are copied as pointers into the new set (that is,
the values themselves are copied, not that which the values
point to, if anything). However, the values are also
retained by the new set. The count of the new set will
be the same as the copied set. The new set uses the same
callbacks as the set to be copied. If this parameter is
not a valid CFSet, the behavior is undefined.public static CFMutableSetRef CFSetCreateMutable(CFAllocatorRef allocator, long capacity, CFSetCallBacks callBacks)
allocator - The CFAllocator which should be used to allocate
memory for the set and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.capacity - A hint about the number of values that will be held
by the CFSet. Pass 0 for no hint. The implementation may
ignore this hint, or may use it to optimize various
operations. A set's actual capacity is only limited by
address space and available memory constraints). If this
parameter is negative, the behavior is undefined.callBacks - A C pointer to a CFSetCallBacks structure
initialized with the callbacks for the set to use on each
value in the set. A copy of the contents of the
callbacks structure is made, so that a pointer to a
structure on the stack can be passed in, or can be reused
for multiple set creations. If the version field of this
callbacks structure is not one of the defined ones for
CFSet, the behavior is undefined. The retain field may be
NULL, in which case the CFSet will do nothing to add a
retain to the contained values for the set. The release
field may be NULL, in which case the CFSet will do nothing
to remove the set's retain (if any) on the values when the
set is destroyed. If the copyDescription field is NULL,
the set will create a simple description for the value. If
the equal field is NULL, the set will use pointer equality
to test for equality of values. The hash field may be NULL,
in which case the CFSet will determine uniqueness by pointer
equality. This callbacks parameter
itself may be NULL, which is treated as if a valid structure
of version 0 with all fields NULL had been passed in.
Otherwise, if any of the fields are not valid pointers to
functions of the correct type, or this parameter is not a
valid pointer to a CFSetCallBacks callbacks structure,
the behavior is undefined. If any of the values put into the
set is not one understood by one of the callback functions
the behavior when that callback function is used is
undefined.public static CFMutableSetRef CFSetCreateMutableCopy(CFAllocatorRef allocator, long capacity, CFSetRef theSet)
allocator - The CFAllocator which should be used to allocate
memory for the set and its storage for values. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.capacity - A hint about the number of values that will be held
by the CFSet. Pass 0 for no hint. The implementation may
ignore this hint, or may use it to optimize various
operations. A set's actual capacity is only limited by
address space and available memory constraints).
This parameter must be greater than or equal
to the count of the set which is to be copied, or the
behavior is undefined. If this parameter is negative, the
behavior is undefined.theSet - The set which is to be copied. The values from the
set are copied as pointers into the new set (that is,
the values themselves are copied, not that which the values
point to, if anything). However, the values are also
retained by the new set. The count of the new set will
be the same as the copied set. The new set uses the same
callbacks as the set to be copied. If this parameter is
not a valid CFSet, the behavior is undefined.public static long CFSetGetCount(CFSetRef theSet)
theSet - The set to be queried. If this parameter is not a valid
CFSet, the behavior is undefined.public static long CFSetGetCountOfValue(CFSetRef theSet, org.moe.natj.general.ptr.ConstVoidPtr value)
theSet - The set to be searched. If this parameter is not a
valid CFSet, the behavior is undefined.value - The value for which to find matches in the set. The
equal() callback provided when the set was created is
used to compare. If the equal() callback was NULL, pointer
equality (in C, ==) is used. If value, or any of the values
in the set, are not understood by the equal() callback,
the behavior is undefined.public static byte CFSetContainsValue(CFSetRef theSet, org.moe.natj.general.ptr.ConstVoidPtr value)
theSet - The set to be searched. If this parameter is not a
valid CFSet, the behavior is undefined.value - The value for which to find matches in the set. The
equal() callback provided when the set was created is
used to compare. If the equal() callback was NULL, pointer
equality (in C, ==) is used. If value, or any of the values
in the set, are not understood by the equal() callback,
the behavior is undefined.public static org.moe.natj.general.ptr.ConstVoidPtr CFSetGetValue(CFSetRef theSet, org.moe.natj.general.ptr.ConstVoidPtr value)
theSet - The set to be queried. If this parameter is not a
valid CFSet, the behavior is undefined.value - The value to retrieve. The equal() callback provided when
the set was created is used to compare. If the equal() callback
was NULL, pointer equality (in C, ==) is used. If a value, or
any of the values in the set, are not understood by the equal()
callback, the behavior is undefined.public static byte CFSetGetValueIfPresent(CFSetRef theSet, org.moe.natj.general.ptr.ConstVoidPtr candidate, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> value)
theSet - The set to be queried. If this parameter is not a
valid CFSet, the behavior is undefined.candidate - This value is hashed and compared with values in the
set to determine which value to retrieve. The equal() callback provided when
the set was created is used to compare. If the equal() callback
was NULL, pointer equality (in C, ==) is used. If a value, or
any of the values in the set, are not understood by the equal()
callback, the behavior is undefined.value - A pointer to memory which should be filled with the
pointer-sized value if a matching value is found. If no
match is found, the contents of the storage pointed to by
this parameter are undefined. This parameter may be NULL,
in which case the value from the dictionary is not returned
(but the return value of this function still indicates
whether or not the value was present).public static void CFSetGetValues(CFSetRef theSet, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.ConstVoidPtr> values)
theSet - The set to be queried. If this parameter is not a
valid CFSet, the behavior is undefined.values - A C array of pointer-sized values to be filled with
values from the set. The values in the C array are ordered
in the same order in which they appear in the set. If this
parameter is not a valid pointer to a C array of at least
CFSetGetCount() pointers, the behavior is undefined.public static void CFSetApplyFunction(CFSetRef theSet, CoreFoundation.Function_CFSetApplyFunction applier, org.moe.natj.general.ptr.VoidPtr context)
theSet - The set to be operated upon. If this parameter is not
a valid CFSet, the behavior is undefined.applier - The callback function to call once for each value in
the given set. If this parameter is not a
pointer to a function of the correct prototype, the behavior
is undefined. If there are values in the set which the
applier function does not expect or cannot properly apply
to, the behavior is undefined.context - A pointer-sized user-defined value, which is passed
as the second parameter to the applier function, but is
otherwise unused by this function. If the context is not
what is expected by the applier function, the behavior is
undefined.public static void CFSetAddValue(CFMutableSetRef theSet, org.moe.natj.general.ptr.ConstVoidPtr value)
theSet - The set to which the value is to be added. If this
parameter is not a valid mutable CFSet, the behavior is
undefined.value - The value to add to the set. The value is retained by
the set using the retain callback provided when the set
was created. If the value is not of the sort expected by the
retain callback, the behavior is undefined. The count of the
set is increased by one.public static void CFSetReplaceValue(CFMutableSetRef theSet, org.moe.natj.general.ptr.ConstVoidPtr value)
theSet - The set to which the value is to be replaced. If this
parameter is not a valid mutable CFSet, the behavior is
undefined.value - The value to replace in the set. The equal() callback provided when
the set was created is used to compare. If the equal() callback
was NULL, pointer equality (in C, ==) is used. If a value, or
any of the values in the set, are not understood by the equal()
callback, the behavior is undefined. The value is retained by
the set using the retain callback provided when the set
was created. If the value is not of the sort expected by the
retain callback, the behavior is undefined. The count of the
set is increased by one.public static void CFSetSetValue(CFMutableSetRef theSet, org.moe.natj.general.ptr.ConstVoidPtr value)
theSet - The set to which the value is to be replaced. If this
parameter is not a valid mutable CFSet, the behavior is
undefined.value - The value to set in the CFSet. The equal() callback provided when
the set was created is used to compare. If the equal() callback
was NULL, pointer equality (in C, ==) is used. If a value, or
any of the values in the set, are not understood by the equal()
callback, the behavior is undefined. The value is retained by
the set using the retain callback provided when the set
was created. If the value is not of the sort expected by the
retain callback, the behavior is undefined. The count of the
set is increased by one.public static void CFSetRemoveValue(CFMutableSetRef theSet, org.moe.natj.general.ptr.ConstVoidPtr value)
theSet - The set from which the value is to be removed.
If this parameter is not a valid mutable CFSet,
the behavior is undefined.value - The value to remove. The equal() callback provided when
the set was created is used to compare. If the equal() callback
was NULL, pointer equality (in C, ==) is used. If a value, or
any of the values in the set, are not understood by the equal()
callback, the behavior is undefined.public static void CFSetRemoveAllValues(CFMutableSetRef theSet)
theSet - The set from which all of the values are to be
removed. If this parameter is not a valid mutable CFSet,
the behavior is undefined.public static long CFTreeGetTypeID()
public static CFTreeRef CFTreeCreate(CFAllocatorRef allocator, CFTreeContext context)
allocator - The CFAllocator which should be used to allocate
memory for the tree and storage for its children. This
parameter may be NULL in which case the current default
CFAllocator is used. If this reference is not a valid
CFAllocator, the behavior is undefined.context - A C pointer to a CFTreeContext structure to be copied
and used as the context of the new tree. The info parameter
will be retained by the tree if a retain function is provided.
If this value is not a valid C pointer to a CFTreeContext
structure-sized block of storage, the result is undefined.
If the version number of the storage is not a valid CFTreeContext
version number, the result is undefined.public static CFTreeRef CFTreeGetParent(CFTreeRef tree)
tree - The tree to be queried. If this parameter is not a valid
CFTree, the behavior is undefined.public static CFTreeRef CFTreeGetNextSibling(CFTreeRef tree)
tree - The tree to be queried. If this parameter is not a valid
CFTree, the behavior is undefined.public static CFTreeRef CFTreeGetFirstChild(CFTreeRef tree)
tree - The tree to be queried. If this parameter is not a valid
CFTree, the behavior is undefined.public static void CFTreeGetContext(CFTreeRef tree, CFTreeContext context)
tree - The tree to be queried. If this parameter is not a valid
CFTree, the behavior is undefined.context - A C pointer to a CFTreeContext structure to be filled in with
the context of the specified tree. If this value is not a valid C
pointer to a CFTreeContext structure-sized block of storage, the
result is undefined. If the version number of the storage is not
a valid CFTreeContext version number, the result is undefined.public static long CFTreeGetChildCount(CFTreeRef tree)
tree - The tree to be queried. If this parameter is not a valid
CFTree, the behavior is undefined.public static CFTreeRef CFTreeGetChildAtIndex(CFTreeRef tree, long idx)
tree - The tree to be queried. If this parameter is not a valid
CFTree, the behavior is undefined.idx - The index of the child tree to be returned. If this parameter
is less than zero or greater than the number of children of the
tree, the result is undefined.public static void CFTreeGetChildren(CFTreeRef tree, org.moe.natj.general.ptr.Ptr<CFTreeRef> children)
tree - The tree to be queried. If this parameter is not a valid
CFTree, the behavior is undefined.children - A C array of pointer-sized values to be filled with
children from the tree. If this parameter is not a valid pointer to a
C array of at least CFTreeGetChildCount() pointers, the behavior is undefined.public static void CFTreeApplyFunctionToChildren(CFTreeRef tree, CoreFoundation.Function_CFTreeApplyFunctionToChildren applier, org.moe.natj.general.ptr.VoidPtr context)
tree - The tree to be operated upon. If this parameter is not a
valid CFTree, the behavior is undefined.applier - The callback function to call once for each child of
the given tree. If this parameter is not a pointer to a
function of the correct prototype, the behavior is undefined.
If there are values in the tree which the applier function does
not expect or cannot properly apply to, the behavior is undefined.context - A pointer-sized user-defined value, which is passed
as the second parameter to the applier function, but is
otherwise unused by this function. If the context is not
what is expected by the applier function, the behavior is
undefined.public static CFTreeRef CFTreeFindRoot(CFTreeRef tree)
tree - The tree to be queried. If this parameter is not a valid
CFTree, the behavior is undefined.public static void CFTreeSetContext(CFTreeRef tree, CFTreeContext context)
tree - The tree to be operated on. If this parameter is not a valid
CFTree, the behavior is undefined.context - A C pointer to a CFTreeContext structure to be copied
and used as the context of the new tree. The info parameter
will be retained by the tree if a retain function is provided.
If this value is not a valid C pointer to a CFTreeContext
structure-sized block of storage, the result is undefined.
If the version number of the storage is not a valid CFTreeContext
version number, the result is undefined.public static void CFTreePrependChild(CFTreeRef tree, CFTreeRef newChild)
tree - The tree to be operated on. If this parameter is not a valid
CFTree, the behavior is undefined.newChild - The child to be added.
If this parameter is not a valid CFTree, the behavior is undefined.
If this parameter is a tree which is already a child of any tree,
the behavior is undefined.public static void CFTreeAppendChild(CFTreeRef tree, CFTreeRef newChild)
tree - The tree to be operated on. If this parameter is not a valid
CFTree, the behavior is undefined.newChild - The child to be added.
If this parameter is not a valid CFTree, the behavior is undefined.
If this parameter is a tree which is already a child of any tree,
the behavior is undefined.public static void CFTreeInsertSibling(CFTreeRef tree, CFTreeRef newSibling)
tree - The tree to insert newSibling after. If this parameter is not a valid
CFTree, the behavior is undefined. If the tree does not have a
parent, the behavior is undefined.newSibling - The sibling to be added.
If this parameter is not a valid CFTree, the behavior is undefined.
If this parameter is a tree which is already a child of any tree,
the behavior is undefined.public static void CFTreeRemove(CFTreeRef tree)
tree - The tree to be removed. If this parameter is not a valid
CFTree, the behavior is undefined.public static void CFTreeRemoveAllChildren(CFTreeRef tree)
tree - The tree to remove all children from. If this parameter is not a valid
CFTree, the behavior is undefined.public static void CFTreeSortChildren(CFTreeRef tree, CoreFoundation.Function_CFTreeSortChildren comparator, org.moe.natj.general.ptr.VoidPtr context)
tree - The tree to be operated on. If this parameter is not a valid
CFTree, the behavior is undefined.comparator - The function with the comparator function type
signature which is used in the sort operation to compare
children of the tree with the given value. If this parameter
is not a pointer to a function of the correct prototype, the
the behavior is undefined. The children of the tree are sorted
from least to greatest according to this function.context - A pointer-sized user-defined value, which is passed
as the third parameter to the comparator function, but is
otherwise unused by this function. If the context is not
what is expected by the comparator function, the behavior is
undefined.@Deprecated public static byte CFURLCreateDataAndPropertiesFromResource(CFAllocatorRef alloc, CFURLRef url, org.moe.natj.general.ptr.Ptr<CFDataRef> resourceData, org.moe.natj.general.ptr.Ptr<CFDictionaryRef> properties, CFArrayRef desiredProperties, org.moe.natj.general.ptr.IntPtr errorCode)
Apple reserves for its use all negative error code values; these values represent errors common to any scheme. Scheme-specific error codes should be positive, non-zero, and should be used only if one of the predefined Apple error codes does not apply. Error codes should be publicized and documented with the scheme-specific properties.
NOTE: When asking for the resource data, this call will allocate the entire resource in memory. This can be very expensive, depending on the size of the resource (file). Please use CFStream or other techniques if you are downloading large files.
Deprecated -- see top of this file for suggested replacement classes
@Deprecated public static byte CFURLWriteDataAndPropertiesToResource(CFURLRef url, CFDataRef dataToWrite, CFDictionaryRef propertiesToWrite, org.moe.natj.general.ptr.IntPtr errorCode)
@Deprecated public static byte CFURLDestroyResource(CFURLRef url, org.moe.natj.general.ptr.IntPtr errorCode)
@Deprecated public static org.moe.natj.general.ptr.ConstVoidPtr CFURLCreatePropertyFromResource(CFAllocatorRef alloc, CFURLRef url, CFStringRef property, org.moe.natj.general.ptr.IntPtr errorCode)
public static long CFUUIDGetTypeID()
public static CFUUIDRef CFUUIDCreate(CFAllocatorRef alloc)
public static CFUUIDRef CFUUIDCreateWithBytes(CFAllocatorRef alloc, byte byte0, byte byte1, byte byte2, byte byte3, byte byte4, byte byte5, byte byte6, byte byte7, byte byte8, byte byte9, byte byte10, byte byte11, byte byte12, byte byte13, byte byte14, byte byte15)
public static CFUUIDRef CFUUIDCreateFromString(CFAllocatorRef alloc, CFStringRef uuidStr)
public static CFStringRef CFUUIDCreateString(CFAllocatorRef alloc, CFUUIDRef uuid)
public static CFUUIDRef CFUUIDGetConstantUUIDWithBytes(CFAllocatorRef alloc, byte byte0, byte byte1, byte byte2, byte byte3, byte byte4, byte byte5, byte byte6, byte byte7, byte byte8, byte byte9, byte byte10, byte byte11, byte byte12, byte byte13, byte byte14, byte byte15)
public static CFUUIDBytes CFUUIDGetUUIDBytes(CFUUIDRef uuid)
public static CFUUIDRef CFUUIDCreateFromUUIDBytes(CFAllocatorRef alloc, CFUUIDBytes bytes)
public static CFURLRef CFCopyHomeDirectoryURL()
public static CFBundleRef CFBundleGetMainBundle()
public static CFBundleRef CFBundleGetBundleWithIdentifier(CFStringRef bundleID)
public static CFArrayRef CFBundleGetAllBundles()
public static long CFBundleGetTypeID()
public static CFBundleRef CFBundleCreate(CFAllocatorRef allocator, CFURLRef bundleURL)
public static CFArrayRef CFBundleCreateBundlesFromDirectory(CFAllocatorRef allocator, CFURLRef directoryURL, CFStringRef bundleType)
public static CFURLRef CFBundleCopyBundleURL(CFBundleRef bundle)
public static org.moe.natj.general.ptr.ConstVoidPtr CFBundleGetValueForInfoDictionaryKey(CFBundleRef bundle, CFStringRef key)
public static CFDictionaryRef CFBundleGetInfoDictionary(CFBundleRef bundle)
public static CFDictionaryRef CFBundleGetLocalInfoDictionary(CFBundleRef bundle)
public static void CFBundleGetPackageInfo(CFBundleRef bundle, org.moe.natj.general.ptr.IntPtr packageType, org.moe.natj.general.ptr.IntPtr packageCreator)
public static CFStringRef CFBundleGetIdentifier(CFBundleRef bundle)
public static int CFBundleGetVersionNumber(CFBundleRef bundle)
public static CFStringRef CFBundleGetDevelopmentRegion(CFBundleRef bundle)
public static CFURLRef CFBundleCopySupportFilesDirectoryURL(CFBundleRef bundle)
public static CFURLRef CFBundleCopyResourcesDirectoryURL(CFBundleRef bundle)
public static CFURLRef CFBundleCopyPrivateFrameworksURL(CFBundleRef bundle)
public static CFURLRef CFBundleCopySharedFrameworksURL(CFBundleRef bundle)
public static CFURLRef CFBundleCopySharedSupportURL(CFBundleRef bundle)
public static CFURLRef CFBundleCopyBuiltInPlugInsURL(CFBundleRef bundle)
public static CFDictionaryRef CFBundleCopyInfoDictionaryInDirectory(CFURLRef bundleURL)
public static byte CFBundleGetPackageInfoInDirectory(CFURLRef url, org.moe.natj.general.ptr.IntPtr packageType, org.moe.natj.general.ptr.IntPtr packageCreator)
public static CFURLRef CFBundleCopyResourceURL(CFBundleRef bundle, CFStringRef resourceName, CFStringRef resourceType, CFStringRef subDirName)
public static CFArrayRef CFBundleCopyResourceURLsOfType(CFBundleRef bundle, CFStringRef resourceType, CFStringRef subDirName)
public static CFStringRef CFBundleCopyLocalizedString(CFBundleRef bundle, CFStringRef key, CFStringRef value, CFStringRef tableName)
public static CFURLRef CFBundleCopyResourceURLInDirectory(CFURLRef bundleURL, CFStringRef resourceName, CFStringRef resourceType, CFStringRef subDirName)
public static CFArrayRef CFBundleCopyResourceURLsOfTypeInDirectory(CFURLRef bundleURL, CFStringRef resourceType, CFStringRef subDirName)
public static CFArrayRef CFBundleCopyBundleLocalizations(CFBundleRef bundle)
public static CFArrayRef CFBundleCopyPreferredLocalizationsFromArray(CFArrayRef locArray)
public static CFArrayRef CFBundleCopyLocalizationsForPreferences(CFArrayRef locArray, CFArrayRef prefArray)
public static CFURLRef CFBundleCopyResourceURLForLocalization(CFBundleRef bundle, CFStringRef resourceName, CFStringRef resourceType, CFStringRef subDirName, CFStringRef localizationName)
public static CFArrayRef CFBundleCopyResourceURLsOfTypeForLocalization(CFBundleRef bundle, CFStringRef resourceType, CFStringRef subDirName, CFStringRef localizationName)
public static CFDictionaryRef CFBundleCopyInfoDictionaryForURL(CFURLRef url)
public static CFArrayRef CFBundleCopyLocalizationsForURL(CFURLRef url)
public static CFArrayRef CFBundleCopyExecutableArchitecturesForURL(CFURLRef url)
public static CFURLRef CFBundleCopyExecutableURL(CFBundleRef bundle)
public static CFArrayRef CFBundleCopyExecutableArchitectures(CFBundleRef bundle)
public static byte CFBundlePreflightExecutable(CFBundleRef bundle, org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
public static byte CFBundleLoadExecutableAndReturnError(CFBundleRef bundle, org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
public static byte CFBundleLoadExecutable(CFBundleRef bundle)
public static byte CFBundleIsExecutableLoaded(CFBundleRef bundle)
public static void CFBundleUnloadExecutable(CFBundleRef bundle)
public static org.moe.natj.general.ptr.VoidPtr CFBundleGetFunctionPointerForName(CFBundleRef bundle, CFStringRef functionName)
public static void CFBundleGetFunctionPointersForNames(CFBundleRef bundle, CFArrayRef functionNames, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> ftbl)
public static org.moe.natj.general.ptr.VoidPtr CFBundleGetDataPointerForName(CFBundleRef bundle, CFStringRef symbolName)
public static void CFBundleGetDataPointersForNames(CFBundleRef bundle, CFArrayRef symbolNames, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> stbl)
public static CFURLRef CFBundleCopyAuxiliaryExecutableURL(CFBundleRef bundle, CFStringRef executableName)
public static CFPlugInRef CFBundleGetPlugIn(CFBundleRef bundle)
public static long CFMessagePortGetTypeID()
public static CFMessagePortRef CFMessagePortCreateLocal(CFAllocatorRef allocator, CFStringRef name, CoreFoundation.Function_CFMessagePortCreateLocal callout, CFMessagePortContext context, org.moe.natj.general.ptr.BytePtr shouldFreeInfo)
public static CFMessagePortRef CFMessagePortCreateRemote(CFAllocatorRef allocator, CFStringRef name)
public static byte CFMessagePortIsRemote(CFMessagePortRef ms)
public static CFStringRef CFMessagePortGetName(CFMessagePortRef ms)
public static byte CFMessagePortSetName(CFMessagePortRef ms, CFStringRef newName)
public static void CFMessagePortGetContext(CFMessagePortRef ms, CFMessagePortContext context)
public static void CFMessagePortInvalidate(CFMessagePortRef ms)
public static byte CFMessagePortIsValid(CFMessagePortRef ms)
public static CoreFoundation.Function_CFMessagePortGetInvalidationCallBack_ret CFMessagePortGetInvalidationCallBack(CFMessagePortRef ms)
public static void CFMessagePortSetInvalidationCallBack(CFMessagePortRef ms, CoreFoundation.Function_CFMessagePortSetInvalidationCallBack callout)
public static int CFMessagePortSendRequest(CFMessagePortRef remote, int msgid, CFDataRef data, double sendTimeout, double rcvTimeout, CFStringRef replyMode, org.moe.natj.general.ptr.Ptr<CFDataRef> returnData)
public static CFRunLoopSourceRef CFMessagePortCreateRunLoopSource(CFAllocatorRef allocator, CFMessagePortRef local, long order)
public static void CFMessagePortSetDispatchQueue(CFMessagePortRef ms, NSObject queue)
public static long CFPlugInGetTypeID()
public static CFPlugInRef CFPlugInCreate(CFAllocatorRef allocator, CFURLRef plugInURL)
public static CFBundleRef CFPlugInGetBundle(CFPlugInRef plugIn)
public static void CFPlugInSetLoadOnDemand(CFPlugInRef plugIn, byte flag)
public static byte CFPlugInIsLoadOnDemand(CFPlugInRef plugIn)
public static CFArrayRef CFPlugInFindFactoriesForPlugInType(CFUUIDRef typeUUID)
public static CFArrayRef CFPlugInFindFactoriesForPlugInTypeInPlugIn(CFUUIDRef typeUUID, CFPlugInRef plugIn)
public static org.moe.natj.general.ptr.VoidPtr CFPlugInInstanceCreate(CFAllocatorRef allocator, CFUUIDRef factoryUUID, CFUUIDRef typeUUID)
public static byte CFPlugInRegisterFactoryFunction(CFUUIDRef factoryUUID, CoreFoundation.Function_CFPlugInRegisterFactoryFunction func)
public static byte CFPlugInRegisterFactoryFunctionByName(CFUUIDRef factoryUUID, CFPlugInRef plugIn, CFStringRef functionName)
public static byte CFPlugInUnregisterFactory(CFUUIDRef factoryUUID)
public static byte CFPlugInRegisterPlugInType(CFUUIDRef factoryUUID, CFUUIDRef typeUUID)
public static byte CFPlugInUnregisterPlugInType(CFUUIDRef factoryUUID, CFUUIDRef typeUUID)
public static void CFPlugInAddInstanceForFactory(CFUUIDRef factoryID)
public static void CFPlugInRemoveInstanceForFactory(CFUUIDRef factoryID)
public static byte CFPlugInInstanceGetInterfaceFunctionTable(CFPlugInInstanceRef instance, CFStringRef interfaceName, org.moe.natj.general.ptr.Ptr<org.moe.natj.general.ptr.VoidPtr> ftbl)
public static CFStringRef CFPlugInInstanceGetFactoryName(CFPlugInInstanceRef instance)
public static org.moe.natj.general.ptr.VoidPtr CFPlugInInstanceGetInstanceData(CFPlugInInstanceRef instance)
public static long CFPlugInInstanceGetTypeID()
public static CFPlugInInstanceRef CFPlugInInstanceCreateWithInstanceDataSize(CFAllocatorRef allocator, long instanceDataSize, CoreFoundation.Function_CFPlugInInstanceCreateWithInstanceDataSize_2 deallocateInstanceFunction, CFStringRef factoryName, CoreFoundation.Function_CFPlugInInstanceCreateWithInstanceDataSize_4 getInterfaceFunction)
public static long CFMachPortGetTypeID()
public static CFMachPortRef CFMachPortCreate(CFAllocatorRef allocator, CoreFoundation.Function_CFMachPortCreate callout, CFMachPortContext context, org.moe.natj.general.ptr.BytePtr shouldFreeInfo)
public static CFMachPortRef CFMachPortCreateWithPort(CFAllocatorRef allocator, int portNum, CoreFoundation.Function_CFMachPortCreateWithPort callout, CFMachPortContext context, org.moe.natj.general.ptr.BytePtr shouldFreeInfo)
public static int CFMachPortGetPort(CFMachPortRef port)
public static void CFMachPortGetContext(CFMachPortRef port, CFMachPortContext context)
public static void CFMachPortInvalidate(CFMachPortRef port)
public static byte CFMachPortIsValid(CFMachPortRef port)
public static CoreFoundation.Function_CFMachPortGetInvalidationCallBack_ret CFMachPortGetInvalidationCallBack(CFMachPortRef port)
public static void CFMachPortSetInvalidationCallBack(CFMachPortRef port, CoreFoundation.Function_CFMachPortSetInvalidationCallBack callout)
public static CFRunLoopSourceRef CFMachPortCreateRunLoopSource(CFAllocatorRef allocator, CFMachPortRef port, long order)
public static long CFAttributedStringGetTypeID()
public static CFAttributedStringRef CFAttributedStringCreate(CFAllocatorRef alloc, CFStringRef str, CFDictionaryRef attributes)
public static CFAttributedStringRef CFAttributedStringCreateWithSubstring(CFAllocatorRef alloc, CFAttributedStringRef aStr, CFRange range)
public static CFAttributedStringRef CFAttributedStringCreateCopy(CFAllocatorRef alloc, CFAttributedStringRef aStr)
public static CFStringRef CFAttributedStringGetString(CFAttributedStringRef aStr)
public static long CFAttributedStringGetLength(CFAttributedStringRef aStr)
public static CFDictionaryRef CFAttributedStringGetAttributes(CFAttributedStringRef aStr, long loc, CFRange effectiveRange)
Note that the returned attribute dictionary might change in unpredictable ways from under the caller if the attributed string is edited after this call. If you wish to hang on to the dictionary long-term, you should make an actual copy of it rather than just retaining it. Also, no assumptions should be made about the relationship of the actual CFDictionaryRef returned by this call and the dictionary originally used to set the attributes, other than the fact that the values stored in the dictionary will be identical (that is, ==) to those originally specified.
public static org.moe.natj.general.ptr.ConstVoidPtr CFAttributedStringGetAttribute(CFAttributedStringRef aStr, long loc, CFStringRef attrName, CFRange effectiveRange)
public static CFDictionaryRef CFAttributedStringGetAttributesAndLongestEffectiveRange(CFAttributedStringRef aStr, long loc, CFRange inRange, CFRange longestEffectiveRange)
public static org.moe.natj.general.ptr.ConstVoidPtr CFAttributedStringGetAttributeAndLongestEffectiveRange(CFAttributedStringRef aStr, long loc, CFStringRef attrName, CFRange inRange, CFRange longestEffectiveRange)
public static CFMutableAttributedStringRef CFAttributedStringCreateMutableCopy(CFAllocatorRef alloc, long maxLength, CFAttributedStringRef aStr)
public static CFMutableAttributedStringRef CFAttributedStringCreateMutable(CFAllocatorRef alloc, long maxLength)
public static void CFAttributedStringReplaceString(CFMutableAttributedStringRef aStr, CFRange range, CFStringRef replacement)
(Note: This function is a convenience on CFAttributedStringGetMutableString(); however, until CFAttributedStringGetMutableString() is implemented, it remains the only way to edit the string of the attributed string.)
public static CFMutableStringRef CFAttributedStringGetMutableString(CFMutableAttributedStringRef aStr)
(Note: This function is not yet implemented and will return NULL except for toll-free bridged instances.)
public static void CFAttributedStringSetAttributes(CFMutableAttributedStringRef aStr, CFRange range, CFDictionaryRef replacement, byte clearOtherAttributes)
public static void CFAttributedStringSetAttribute(CFMutableAttributedStringRef aStr, CFRange range, CFStringRef attrName, org.moe.natj.general.ptr.ConstVoidPtr value)
public static void CFAttributedStringRemoveAttribute(CFMutableAttributedStringRef aStr, CFRange range, CFStringRef attrName)
public static void CFAttributedStringReplaceAttributedString(CFMutableAttributedStringRef aStr, CFRange range, CFAttributedStringRef replacement)
public static void CFAttributedStringBeginEditing(CFMutableAttributedStringRef aStr)
public static void CFAttributedStringEndEditing(CFMutableAttributedStringRef aStr)
public static long CFURLEnumeratorGetTypeID()
public static CFURLEnumeratorRef CFURLEnumeratorCreateForDirectoryURL(CFAllocatorRef alloc, CFURLRef directoryURL, long option, CFArrayRef propertyKeys)
A directory enumerator generates URLs with the same type as the directory URL being enumerated. If the directoryURL input parameter is a file reference URL, then generated URLs will be file reference URLs. If the directoryURL input parameter is a file path URL, then generated URLs will be file path URLs.
The kCFURLEnumeratorGenerateFileReferenceURLs option is ignored by CFURLEnumeratorCreateForDirectoryURL.
public static CFURLEnumeratorRef CFURLEnumeratorCreateForMountedVolumes(CFAllocatorRef alloc, long option, CFArrayRef propertyKeys)
A volume enumerator generates file path URLs. If you want a volume enumerator to generate file reference URLs, pass the kCFURLEnumeratorGenerateFileReferenceURLs option.
The kCFURLEnumeratorDescendRecursively and kCFURLEnumeratorSkipPackageContents options are ignored by CFURLEnumeratorCreateForMountedVolumes.
public static long CFURLEnumeratorGetNextURL(CFURLEnumeratorRef enumerator, org.moe.natj.general.ptr.Ptr<CFURLRef> url, org.moe.natj.general.ptr.Ptr<CFErrorRef> error)
The url output parameter, if returned, is not retained. The error output parameter, if returned, is retained and must be released.
public static void CFURLEnumeratorSkipDescendents(CFURLEnumeratorRef enumerator)
Calls to CFURLEnumeratorSkipDescendents are ignored if: * CFURLEnumeratorGetNextURL has never been called with the CFURLEnumerator. * The last CFURL returned by CFURLEnumeratorGetNextURL is not a directory. * The CFURLEnumerator was not created with CFURLEnumeratorCreateForDirectoryURL using the kCFURLEnumeratorDescendRecursively option.
public static long CFURLEnumeratorGetDescendentLevel(CFURLEnumeratorRef enumerator)
@Deprecated public static byte CFURLEnumeratorGetSourceDidChange(CFURLEnumeratorRef enumerator)
CFURLEnumeratorGetSourceDidChange does nothing and always returns false.
public static long CFFileSecurityGetTypeID()
Return Value The type identifier for the CFFileSecurity opaque type.
public static CFFileSecurityRef CFFileSecurityCreate(CFAllocatorRef allocator)
Parameters allocator The allocator to use to allocate memory for the new object. Pass NULL or kCFAllocatorDefault to use the current default allocator. Return Value A new CFFileSecurity object, or NULL if there was a problem creating the object. Ownership follows the Create Rule.
public static CFFileSecurityRef CFFileSecurityCreateCopy(CFAllocatorRef allocator, CFFileSecurityRef fileSec)
Parameters allocator The allocator to use to allocate memory for the new object. Pass NULL or kCFAllocatorDefault to use the current default allocator. fileSec The CFFileSecurity object to copy. Return Value A copy of fileSec, or NULL if there was a problem creating the object. Ownership follows the Create Rule.
public static byte CFFileSecurityCopyOwnerUUID(CFFileSecurityRef fileSec, org.moe.natj.general.ptr.Ptr<CFUUIDRef> ownerUUID)
Parameters fileSec The CFFileSecurity object. ownerUUID A pointer to storage for the owner UUID. Return Value true if ownerUUID is successfully returned; false if there is no owner UUID property associated with an CFFileSecurity object.
public static byte CFFileSecuritySetOwnerUUID(CFFileSecurityRef fileSec, CFUUIDRef ownerUUID)
Parameters fileSec The CFFileSecurity object. ownerUUID The owner UUID. Return Value true if the owner UUID was successfully set; otherwise, false.
public static byte CFFileSecurityCopyGroupUUID(CFFileSecurityRef fileSec, org.moe.natj.general.ptr.Ptr<CFUUIDRef> groupUUID)
Parameters fileSec The CFFileSecurity object. groupUUID A pointer to storage for the group UUID. Return Value true if groupUUID is successfully returned; false if there is no group UUID property associated with an CFFileSecurity object.
public static byte CFFileSecuritySetGroupUUID(CFFileSecurityRef fileSec, CFUUIDRef groupUUID)
Parameters fileSec The CFFileSecurity object. groupUUID The group UUID. Return Value true if the group UUID was successfully set; otherwise, false.
public static byte CFFileSecurityCopyAccessControlList(CFFileSecurityRef fileSec, org.moe.natj.general.ptr.Ptr<acl_t> accessControlList)
Parameters fileSec The CFFileSecurity object. accessControlList A pointer to storage for an acl_t. The acl_t be released using acl_free(3) Return Value true if the access control list is successfully copied; false if there is no access control list property associated with the CFFileSecurity object.
public static byte CFFileSecuritySetAccessControlList(CFFileSecurityRef fileSec, acl_t accessControlList)
Parameters fileSec The CFFileSecurity object. accessControlList The acl_t to set, or kCFFileSecurityRemoveACL to remove the access control list, or NULL to unset the accessControlList. Return Value true if the access control list is successfully set; otherwise, false.
public static byte CFFileSecurityGetOwner(CFFileSecurityRef fileSec, org.moe.natj.general.ptr.IntPtr owner)
Parameters fileSec The CFFileSecurity object. owner A pointer to where the owner uid_t will be put. Return Value true if owner uid_t is successfully obtained; false if there is no owner property associated with an CFFileSecurity object.
public static byte CFFileSecuritySetOwner(CFFileSecurityRef fileSec, int owner)
Parameters fileSec The CFFileSecurity object. owner The owner uid_t. Return Value true if the owner uid_t was successfully set; otherwise, false.
public static byte CFFileSecurityGetGroup(CFFileSecurityRef fileSec, org.moe.natj.general.ptr.IntPtr group)
Parameters fileSec The CFFileSecurity object. owner A pointer to where the group gid_t will be put. Return Value true if group gid_t is successfully obtained; false if there is no group property associated with an CFFileSecurity object.
public static byte CFFileSecuritySetGroup(CFFileSecurityRef fileSec, int group)
Parameters fileSec The CFFileSecurity object. owner The group gid_t. Return Value true if the group gid_t was successfully set; otherwise, false.
public static byte CFFileSecurityGetMode(CFFileSecurityRef fileSec, org.moe.natj.general.ptr.CharPtr mode)
Parameters fileSec The CFFileSecurity object. owner A pointer to where the mode_t will be put. Return Value true if mode_t is successfully obtained; false if there is no mode property associated with an CFFileSecurity object.
public static byte CFFileSecuritySetMode(CFFileSecurityRef fileSec, char mode)
Parameters fileSec The CFFileSecurity object. owner The mode_t. Return Value true if the mode_t was successfully set; otherwise, false.
public static byte CFFileSecurityClearProperties(CFFileSecurityRef fileSec, long clearPropertyMask)
Parameters clearPropertyMask The file security properties to clear. Return Value true if the file security properties were successfully cleared; otherwise, false.
public static CFStringRef CFStringTokenizerCopyBestStringLanguage(CFStringRef string, CFRange range)
Guesses the language of a string and returns the BCP 47 string of the language.
The result is not guaranteed to be accurate. Typically 200-400 characters are required to reliably guess the language of a string.
string - The string whose language is to be guessed.range - The range of characters in string whose language to be
guessed. The specified range must not exceed the bounds of the string.public static long CFStringTokenizerGetTypeID()
Get the type identifier.
public static CFStringTokenizerRef CFStringTokenizerCreate(CFAllocatorRef alloc, CFStringRef string, CFRange range, long options, CFLocaleRef locale)
Creates a tokenizer instance.
alloc - The CFAllocator which should be used to allocate memory for the
tokenizer and its storage for values. This parameter may be NULL in which
case the current default CFAllocator is used.string - The string to tokenize.range - The range of characters within the string to be tokenized. The
specified range must not exceed the length of the string.options - Use one of the Tokenization Unit options to specify how the
string should be tokenized. Optionally specify one or more attribute
specifiers to tell the tokenizer to prepare specified attributes when it
tokenizes the string.locale - The locale to specify language or region specific behavior. Pass
NULL if you want tokenizer to identify the locale automatically.public static void CFStringTokenizerSetString(CFStringTokenizerRef tokenizer, CFStringRef string, CFRange range)
Set the string to tokenize.
tokenizer - The reference to CFStringTokenizer returned by
CFStringTokenizerCreate.string - The string to tokenize.range - The range of characters within the string to be tokenized. The
specified range must not exceed the length of the string.public static long CFStringTokenizerGoToTokenAtIndex(CFStringTokenizerRef tokenizer, long index)
Random access to a token. Find a token that includes the character specified by character index, and set it as the current token.
The range and attribute of the token can be obtained by calling CFStringTokenizerGetCurrentTokenRange and CFStringTokenizerCopyCurrentTokenAttribute. If the token is a compound (with type kCFStringTokenizerTokenHasSubTokensMask or kCFStringTokenizerTokenHasDerivedSubTokensMask), its subtokens and (or) derived subtokens can be obtained by calling CFStringTokenizerGetCurrentSubTokens.
tokenizer - The reference to CFStringTokenizer returned by
CFStringTokenizerCreate.index - The index of the Unicode character in the CFString.public static long CFStringTokenizerAdvanceToNextToken(CFStringTokenizerRef tokenizer)
Token enumerator.
If there is no preceding call to CFStringTokenizerGoToTokenAtIndex or CFStringTokenizerAdvanceToNextToken, it finds the first token in the range specified to CFStringTokenizerCreate. If there is a current token after successful call to CFStringTokenizerGoToTokenAtIndex or CFStringTokenizerAdvanceToNextToken, it proceeds to the next token. If succeeded in finding a token, set it as current token and return its token type. Otherwise invalidate current token and return kCFStringTokenizerTokenNone. The range and attribute of the token can be obtained by calling CFStringTokenizerGetCurrentTokenRange and CFStringTokenizerCopyCurrentTokenAttribute. If the token is a compound (with type kCFStringTokenizerTokenHasSubTokensMask or kCFStringTokenizerTokenHasDerivedSubTokensMask), its subtokens and (or) derived subtokens can be obtained by calling CFStringTokenizerGetCurrentSubTokens.
tokenizer - The reference to CFStringTokenizer returned by
CFStringTokenizerCreate.public static CFRange CFStringTokenizerGetCurrentTokenRange(CFStringTokenizerRef tokenizer)
Returns the range of current token.
tokenizer - The reference to CFStringTokenizer returned by
CFStringTokenizerCreate.public static org.moe.natj.general.ptr.ConstVoidPtr CFStringTokenizerCopyCurrentTokenAttribute(CFStringTokenizerRef tokenizer, long attribute)
Copies the specified attribute of current token.
tokenizer - The reference to CFStringTokenizer returned by
CFStringTokenizerCreate.attribute - Specify a token attribute you want to obtain. The value is
one of kCFStringTokenizerAttributeLatinTranscription or
kCFStringTokenizerAttributeLanguage.public static long CFStringTokenizerGetCurrentSubTokens(CFStringTokenizerRef tokenizer, CFRange ranges, long maxRangeLength, CFMutableArrayRef derivedSubTokens)
Retrieves the subtokens or derived subtokens contained in the compound token.
If token type is kCFStringTokenizerTokenNone, the ranges array and derivedSubTokens array are untouched and the return value is 0. If token type is kCFStringTokenizerTokenNormal, the ranges array has one item filled in with the entire range of the token (if maxRangeLength >= 1) and a string taken from the entire token range is added to the derivedSubTokens array and the return value is 1. If token type is kCFStringTokenizerTokenHasSubTokensMask or kCFStringTokenizerTokenHasDerivedSubTokensMask, the ranges array is filled in with as many items as there are subtokens (up to a limit of maxRangeLength). The derivedSubTokens array will have sub tokens added even when the sub token is a substring of the token. If token type is kCFStringTokenizerTokenHasSubTokensMask, the ordinary non-derived subtokens are added to the derivedSubTokens array.
tokenizer - The reference to CFStringTokenizer returned by CFStringTokenizerCreate.ranges - An array of CFRange to fill in with the ranges of subtokens. The filled in
ranges are relative to the string specified to CFStringTokenizerCreate. This parameter
can be NULL.maxRangeLength - The maximum number of ranges to return.derivedSubTokens - An array of CFMutableArray to which the derived subtokens are to
be added. This parameter can be NULL.public static long CFFileDescriptorGetTypeID()
public static CFFileDescriptorRef CFFileDescriptorCreate(CFAllocatorRef allocator, int fd, byte closeOnInvalidate, CoreFoundation.Function_CFFileDescriptorCreate callout, CFFileDescriptorContext context)
public static int CFFileDescriptorGetNativeDescriptor(CFFileDescriptorRef f)
public static void CFFileDescriptorGetContext(CFFileDescriptorRef f, CFFileDescriptorContext context)
public static void CFFileDescriptorEnableCallBacks(CFFileDescriptorRef f, long callBackTypes)
public static void CFFileDescriptorDisableCallBacks(CFFileDescriptorRef f, long callBackTypes)
public static void CFFileDescriptorInvalidate(CFFileDescriptorRef f)
public static byte CFFileDescriptorIsValid(CFFileDescriptorRef f)
public static CFRunLoopSourceRef CFFileDescriptorCreateRunLoopSource(CFAllocatorRef allocator, CFFileDescriptorRef f, long order)
public static double kCFCoreFoundationVersionNumber()
public static CFNullRef kCFNull()
public static CFAllocatorRef kCFAllocatorDefault()
public static CFAllocatorRef kCFAllocatorSystemDefault()
public static CFAllocatorRef kCFAllocatorMalloc()
public static CFAllocatorRef kCFAllocatorMallocZone()
public static CFAllocatorRef kCFAllocatorNull()
public static CFAllocatorRef kCFAllocatorUseContext()
public static CFDictionaryKeyCallBacks kCFTypeDictionaryKeyCallBacks()
public static CFDictionaryKeyCallBacks kCFCopyStringDictionaryKeyCallBacks()
public static CFDictionaryValueCallBacks kCFTypeDictionaryValueCallBacks()
public static CFArrayCallBacks kCFTypeArrayCallBacks()
public static CFStringRef kCFLocaleCurrentLocaleDidChangeNotification()
public static CFStringRef kCFLocaleIdentifier()
public static CFStringRef kCFLocaleLanguageCode()
public static CFStringRef kCFLocaleCountryCode()
public static CFStringRef kCFLocaleScriptCode()
public static CFStringRef kCFLocaleVariantCode()
public static CFStringRef kCFLocaleExemplarCharacterSet()
public static CFStringRef kCFLocaleCalendarIdentifier()
public static CFStringRef kCFLocaleCalendar()
public static CFStringRef kCFLocaleCollationIdentifier()
public static CFStringRef kCFLocaleUsesMetricSystem()
public static CFStringRef kCFLocaleMeasurementSystem()
public static CFStringRef kCFLocaleDecimalSeparator()
public static CFStringRef kCFLocaleGroupingSeparator()
public static CFStringRef kCFLocaleCurrencySymbol()
public static CFStringRef kCFLocaleCurrencyCode()
public static CFStringRef kCFLocaleCollatorIdentifier()
public static CFStringRef kCFLocaleQuotationBeginDelimiterKey()
public static CFStringRef kCFLocaleQuotationEndDelimiterKey()
public static CFStringRef kCFLocaleAlternateQuotationBeginDelimiterKey()
public static CFStringRef kCFLocaleAlternateQuotationEndDelimiterKey()
public static CFStringRef kCFGregorianCalendar()
public static CFStringRef kCFBuddhistCalendar()
public static CFStringRef kCFChineseCalendar()
public static CFStringRef kCFHebrewCalendar()
public static CFStringRef kCFIslamicCalendar()
public static CFStringRef kCFIslamicCivilCalendar()
public static CFStringRef kCFJapaneseCalendar()
public static CFStringRef kCFRepublicOfChinaCalendar()
public static CFStringRef kCFPersianCalendar()
public static CFStringRef kCFIndianCalendar()
public static CFStringRef kCFISO8601Calendar()
public static CFStringRef kCFIslamicTabularCalendar()
public static CFStringRef kCFIslamicUmmAlQuraCalendar()
public static CFStringRef kCFStringTransformStripCombiningMarks()
public static CFStringRef kCFStringTransformToLatin()
public static CFStringRef kCFStringTransformFullwidthHalfwidth()
public static CFStringRef kCFStringTransformLatinKatakana()
public static CFStringRef kCFStringTransformLatinHiragana()
public static CFStringRef kCFStringTransformHiraganaKatakana()
public static CFStringRef kCFStringTransformMandarinLatin()
public static CFStringRef kCFStringTransformLatinHangul()
public static CFStringRef kCFStringTransformLatinArabic()
public static CFStringRef kCFStringTransformLatinHebrew()
public static CFStringRef kCFStringTransformLatinThai()
public static CFStringRef kCFStringTransformLatinCyrillic()
public static CFStringRef kCFStringTransformLatinGreek()
public static CFStringRef kCFStringTransformToXMLHex()
public static CFStringRef kCFStringTransformToUnicodeName()
public static CFStringRef kCFStringTransformStripDiacritics()
public static CFStringRef kCFErrorDomainPOSIX()
public static CFStringRef kCFErrorDomainOSStatus()
public static CFStringRef kCFErrorDomainMach()
public static CFStringRef kCFErrorDomainCocoa()
public static CFStringRef kCFErrorLocalizedDescriptionKey()
public static CFStringRef kCFErrorLocalizedFailureReasonKey()
public static CFStringRef kCFErrorLocalizedRecoverySuggestionKey()
public static CFStringRef kCFErrorDescriptionKey()
public static CFStringRef kCFErrorUnderlyingErrorKey()
public static CFStringRef kCFErrorURLKey()
public static CFStringRef kCFErrorFilePathKey()
public static CFStringRef kCFURLKeysOfUnsetValuesKey()
public static CFStringRef kCFURLNameKey()
public static CFStringRef kCFURLLocalizedNameKey()
public static CFStringRef kCFURLIsRegularFileKey()
public static CFStringRef kCFURLIsDirectoryKey()
public static CFStringRef kCFURLIsSymbolicLinkKey()
public static CFStringRef kCFURLIsVolumeKey()
public static CFStringRef kCFURLIsPackageKey()
public static CFStringRef kCFURLIsApplicationKey()
public static CFStringRef kCFURLIsSystemImmutableKey()
public static CFStringRef kCFURLIsUserImmutableKey()
public static CFStringRef kCFURLIsHiddenKey()
public static CFStringRef kCFURLHasHiddenExtensionKey()
public static CFStringRef kCFURLCreationDateKey()
public static CFStringRef kCFURLContentAccessDateKey()
public static CFStringRef kCFURLContentModificationDateKey()
public static CFStringRef kCFURLAttributeModificationDateKey()
public static CFStringRef kCFURLLinkCountKey()
public static CFStringRef kCFURLParentDirectoryURLKey()
public static CFStringRef kCFURLVolumeURLKey()
public static CFStringRef kCFURLTypeIdentifierKey()
public static CFStringRef kCFURLLocalizedTypeDescriptionKey()
public static CFStringRef kCFURLLabelNumberKey()
public static CFStringRef kCFURLLabelColorKey()
public static CFStringRef kCFURLLocalizedLabelKey()
public static CFStringRef kCFURLEffectiveIconKey()
public static CFStringRef kCFURLCustomIconKey()
public static CFStringRef kCFURLFileResourceIdentifierKey()
public static CFStringRef kCFURLVolumeIdentifierKey()
public static CFStringRef kCFURLPreferredIOBlockSizeKey()
public static CFStringRef kCFURLIsReadableKey()
public static CFStringRef kCFURLIsWritableKey()
public static CFStringRef kCFURLIsExecutableKey()
public static CFStringRef kCFURLFileSecurityKey()
public static CFStringRef kCFURLIsExcludedFromBackupKey()
public static CFStringRef kCFURLPathKey()
public static CFStringRef kCFURLCanonicalPathKey()
public static CFStringRef kCFURLIsMountTriggerKey()
public static CFStringRef kCFURLGenerationIdentifierKey()
public static CFStringRef kCFURLDocumentIdentifierKey()
public static CFStringRef kCFURLAddedToDirectoryDateKey()
public static CFStringRef kCFURLFileResourceTypeKey()
public static CFStringRef kCFURLFileResourceTypeNamedPipe()
public static CFStringRef kCFURLFileResourceTypeCharacterSpecial()
public static CFStringRef kCFURLFileResourceTypeDirectory()
public static CFStringRef kCFURLFileResourceTypeBlockSpecial()
public static CFStringRef kCFURLFileResourceTypeRegular()
public static CFStringRef kCFURLFileResourceTypeSymbolicLink()
public static CFStringRef kCFURLFileResourceTypeSocket()
public static CFStringRef kCFURLFileResourceTypeUnknown()
public static CFStringRef kCFURLFileSizeKey()
public static CFStringRef kCFURLFileAllocatedSizeKey()
public static CFStringRef kCFURLTotalFileSizeKey()
public static CFStringRef kCFURLTotalFileAllocatedSizeKey()
public static CFStringRef kCFURLIsAliasFileKey()
public static CFStringRef kCFURLFileProtectionKey()
public static CFStringRef kCFURLFileProtectionNone()
public static CFStringRef kCFURLFileProtectionComplete()
public static CFStringRef kCFURLFileProtectionCompleteUnlessOpen()
public static CFStringRef kCFURLFileProtectionCompleteUntilFirstUserAuthentication()
public static CFStringRef kCFURLVolumeLocalizedFormatDescriptionKey()
public static CFStringRef kCFURLVolumeTotalCapacityKey()
public static CFStringRef kCFURLVolumeAvailableCapacityKey()
public static CFStringRef kCFURLVolumeResourceCountKey()
Examples: A background download of a newly available episode of a TV series that a user has been recently watching, a piece of content explicitly requested on another device, or a new document saved to a network server by the current user from another device. (Read-only, value type CFNumber)
public static CFStringRef kCFURLVolumeSupportsPersistentIDsKey()
public static CFStringRef kCFURLVolumeSupportsSymbolicLinksKey()
public static CFStringRef kCFURLVolumeSupportsHardLinksKey()
public static CFStringRef kCFURLVolumeSupportsJournalingKey()
public static CFStringRef kCFURLVolumeIsJournalingKey()
public static CFStringRef kCFURLVolumeSupportsSparseFilesKey()
public static CFStringRef kCFURLVolumeSupportsZeroRunsKey()
public static CFStringRef kCFURLVolumeSupportsCaseSensitiveNamesKey()
public static CFStringRef kCFURLVolumeSupportsCasePreservedNamesKey()
public static CFStringRef kCFURLVolumeSupportsRootDirectoryDatesKey()
public static CFStringRef kCFURLVolumeSupportsVolumeSizesKey()
public static CFStringRef kCFURLVolumeSupportsRenamingKey()
public static CFStringRef kCFURLVolumeSupportsAdvisoryFileLockingKey()
public static CFStringRef kCFURLVolumeSupportsExtendedSecurityKey()
public static CFStringRef kCFURLVolumeIsBrowsableKey()
public static CFStringRef kCFURLVolumeMaximumFileSizeKey()
public static CFStringRef kCFURLVolumeIsEjectableKey()
public static CFStringRef kCFURLVolumeIsRemovableKey()
public static CFStringRef kCFURLVolumeIsInternalKey()
public static CFStringRef kCFURLVolumeIsAutomountedKey()
public static CFStringRef kCFURLVolumeIsLocalKey()
public static CFStringRef kCFURLVolumeIsReadOnlyKey()
public static CFStringRef kCFURLVolumeCreationDateKey()
public static CFStringRef kCFURLVolumeURLForRemountingKey()
public static CFStringRef kCFURLVolumeUUIDStringKey()
public static CFStringRef kCFURLVolumeNameKey()
public static CFStringRef kCFURLVolumeLocalizedNameKey()
public static CFStringRef kCFURLVolumeIsEncryptedKey()
public static CFStringRef kCFURLVolumeIsRootFileSystemKey()
public static CFStringRef kCFURLVolumeSupportsCompressionKey()
public static CFStringRef kCFURLVolumeSupportsFileCloningKey()
public static CFStringRef kCFURLVolumeSupportsSwapRenamingKey()
public static CFStringRef kCFURLVolumeSupportsExclusiveRenamingKey()
public static CFStringRef kCFURLIsUbiquitousItemKey()
public static CFStringRef kCFURLUbiquitousItemHasUnresolvedConflictsKey()
@Deprecated public static CFStringRef kCFURLUbiquitousItemIsDownloadedKey()
public static CFStringRef kCFURLUbiquitousItemIsDownloadingKey()
public static CFStringRef kCFURLUbiquitousItemIsUploadedKey()
public static CFStringRef kCFURLUbiquitousItemIsUploadingKey()
@Deprecated public static CFStringRef kCFURLUbiquitousItemPercentDownloadedKey()
@Deprecated public static CFStringRef kCFURLUbiquitousItemPercentUploadedKey()
public static CFStringRef kCFURLUbiquitousItemDownloadingStatusKey()
public static CFStringRef kCFURLUbiquitousItemDownloadingErrorKey()
public static CFStringRef kCFURLUbiquitousItemUploadingErrorKey()
public static CFStringRef kCFURLUbiquitousItemDownloadingStatusNotDownloaded()
public static CFStringRef kCFURLUbiquitousItemDownloadingStatusDownloaded()
public static CFStringRef kCFURLUbiquitousItemDownloadingStatusCurrent()
public static double kCFAbsoluteTimeIntervalSince1970()
public static double kCFAbsoluteTimeIntervalSince1904()
public static CFBagCallBacks kCFTypeBagCallBacks()
public static CFBagCallBacks kCFCopyStringBagCallBacks()
public static CFBinaryHeapCallBacks kCFStringBinaryHeapCallBacks()
public static CFStringRef kCFTimeZoneSystemTimeZoneDidChangeNotification()
public static CFStringRef kCFDateFormatterIsLenient()
public static CFStringRef kCFDateFormatterTimeZone()
public static CFStringRef kCFDateFormatterCalendarName()
public static CFStringRef kCFDateFormatterDefaultFormat()
public static CFStringRef kCFDateFormatterTwoDigitStartDate()
public static CFStringRef kCFDateFormatterDefaultDate()
public static CFStringRef kCFDateFormatterCalendar()
public static CFStringRef kCFDateFormatterEraSymbols()
public static CFStringRef kCFDateFormatterMonthSymbols()
public static CFStringRef kCFDateFormatterShortMonthSymbols()
public static CFStringRef kCFDateFormatterWeekdaySymbols()
public static CFStringRef kCFDateFormatterShortWeekdaySymbols()
public static CFStringRef kCFDateFormatterAMSymbol()
public static CFStringRef kCFDateFormatterPMSymbol()
public static CFStringRef kCFDateFormatterLongEraSymbols()
public static CFStringRef kCFDateFormatterVeryShortMonthSymbols()
public static CFStringRef kCFDateFormatterStandaloneMonthSymbols()
public static CFStringRef kCFDateFormatterShortStandaloneMonthSymbols()
public static CFStringRef kCFDateFormatterVeryShortStandaloneMonthSymbols()
public static CFStringRef kCFDateFormatterVeryShortWeekdaySymbols()
public static CFStringRef kCFDateFormatterStandaloneWeekdaySymbols()
public static CFStringRef kCFDateFormatterShortStandaloneWeekdaySymbols()
public static CFStringRef kCFDateFormatterVeryShortStandaloneWeekdaySymbols()
public static CFStringRef kCFDateFormatterQuarterSymbols()
public static CFStringRef kCFDateFormatterShortQuarterSymbols()
public static CFStringRef kCFDateFormatterStandaloneQuarterSymbols()
public static CFStringRef kCFDateFormatterShortStandaloneQuarterSymbols()
public static CFStringRef kCFDateFormatterGregorianStartDate()
public static CFStringRef kCFDateFormatterDoesRelativeDateFormattingKey()
public static CFBooleanRef kCFBooleanTrue()
public static CFBooleanRef kCFBooleanFalse()
public static CFNumberRef kCFNumberPositiveInfinity()
public static CFNumberRef kCFNumberNegativeInfinity()
public static CFNumberRef kCFNumberNaN()
public static CFStringRef kCFNumberFormatterCurrencyCode()
public static CFStringRef kCFNumberFormatterDecimalSeparator()
public static CFStringRef kCFNumberFormatterCurrencyDecimalSeparator()
public static CFStringRef kCFNumberFormatterAlwaysShowDecimalSeparator()
public static CFStringRef kCFNumberFormatterGroupingSeparator()
public static CFStringRef kCFNumberFormatterUseGroupingSeparator()
public static CFStringRef kCFNumberFormatterPercentSymbol()
public static CFStringRef kCFNumberFormatterZeroSymbol()
public static CFStringRef kCFNumberFormatterNaNSymbol()
public static CFStringRef kCFNumberFormatterInfinitySymbol()
public static CFStringRef kCFNumberFormatterMinusSign()
public static CFStringRef kCFNumberFormatterPlusSign()
public static CFStringRef kCFNumberFormatterCurrencySymbol()
public static CFStringRef kCFNumberFormatterExponentSymbol()
public static CFStringRef kCFNumberFormatterMinIntegerDigits()
public static CFStringRef kCFNumberFormatterMaxIntegerDigits()
public static CFStringRef kCFNumberFormatterMinFractionDigits()
public static CFStringRef kCFNumberFormatterMaxFractionDigits()
public static CFStringRef kCFNumberFormatterGroupingSize()
public static CFStringRef kCFNumberFormatterSecondaryGroupingSize()
public static CFStringRef kCFNumberFormatterRoundingMode()
public static CFStringRef kCFNumberFormatterRoundingIncrement()
public static CFStringRef kCFNumberFormatterFormatWidth()
public static CFStringRef kCFNumberFormatterPaddingPosition()
public static CFStringRef kCFNumberFormatterPaddingCharacter()
public static CFStringRef kCFNumberFormatterDefaultFormat()
public static CFStringRef kCFNumberFormatterMultiplier()
public static CFStringRef kCFNumberFormatterPositivePrefix()
public static CFStringRef kCFNumberFormatterPositiveSuffix()
public static CFStringRef kCFNumberFormatterNegativePrefix()
public static CFStringRef kCFNumberFormatterNegativeSuffix()
public static CFStringRef kCFNumberFormatterPerMillSymbol()
public static CFStringRef kCFNumberFormatterInternationalCurrencySymbol()
public static CFStringRef kCFNumberFormatterCurrencyGroupingSeparator()
public static CFStringRef kCFNumberFormatterIsLenient()
public static CFStringRef kCFNumberFormatterUseSignificantDigits()
public static CFStringRef kCFNumberFormatterMinSignificantDigits()
public static CFStringRef kCFNumberFormatterMaxSignificantDigits()
public static CFStringRef kCFPreferencesAnyApplication()
public static CFStringRef kCFPreferencesCurrentApplication()
public static CFStringRef kCFPreferencesAnyHost()
public static CFStringRef kCFPreferencesCurrentHost()
public static CFStringRef kCFPreferencesAnyUser()
public static CFStringRef kCFPreferencesCurrentUser()
public static CFStringRef kCFRunLoopDefaultMode()
public static CFStringRef kCFRunLoopCommonModes()
public static CFStringRef kCFSocketCommandKey()
public static CFStringRef kCFSocketNameKey()
public static CFStringRef kCFSocketValueKey()
public static CFStringRef kCFSocketResultKey()
public static CFStringRef kCFSocketErrorKey()
public static CFStringRef kCFSocketRegisterCommand()
public static CFStringRef kCFSocketRetrieveCommand()
public static CFStringRef kCFStreamPropertyDataWritten()
public static CFStringRef kCFStreamPropertyAppendToFile()
public static CFStringRef kCFStreamPropertyFileCurrentOffset()
public static CFStringRef kCFStreamPropertySocketNativeHandle()
public static CFStringRef kCFStreamPropertySocketRemoteHostName()
public static CFStringRef kCFStreamPropertySocketRemotePortNumber()
public static CFSetCallBacks kCFTypeSetCallBacks()
public static CFSetCallBacks kCFCopyStringSetCallBacks()
@Deprecated public static CFStringRef kCFURLFileExists()
@Deprecated public static CFStringRef kCFURLFileDirectoryContents()
@Deprecated public static CFStringRef kCFURLFileLength()
@Deprecated public static CFStringRef kCFURLFileLastModificationTime()
@Deprecated public static CFStringRef kCFURLFilePOSIXMode()
@Deprecated public static CFStringRef kCFURLFileOwnerID()
@Deprecated public static CFStringRef kCFURLHTTPStatusCode()
@Deprecated public static CFStringRef kCFURLHTTPStatusLine()
public static CFStringRef kCFBundleInfoDictionaryVersionKey()
public static CFStringRef kCFBundleExecutableKey()
public static CFStringRef kCFBundleIdentifierKey()
public static CFStringRef kCFBundleVersionKey()
public static CFStringRef kCFBundleDevelopmentRegionKey()
public static CFStringRef kCFBundleNameKey()
public static CFStringRef kCFBundleLocalizationsKey()
public static CFStringRef kCFPlugInDynamicRegistrationKey()
public static CFStringRef kCFPlugInDynamicRegisterFunctionKey()
public static CFStringRef kCFPlugInUnloadFunctionKey()
public static CFStringRef kCFPlugInFactoriesKey()
public static CFStringRef kCFPlugInTypesKey()
public static CFStringRef kCFErrorLocalizedFailureKey()
public static CFStringRef kCFURLVolumeAvailableCapacityForImportantUsageKey()
public static CFStringRef kCFURLVolumeAvailableCapacityForOpportunisticUsageKey()
Examples: A video that the user has explicitly requested to watch but has not yet finished watching or an audio file that the user has requested to download.
This value should not be used in determining if there is room for an irreplaceable resource. In the case of irreplaceable resources, always attempt to save the resource regardless of available capacity and handle failure as gracefully as possible. (Read-only, value type CFNumber)
public static CFStringRef kCFURLVolumeSupportsImmutableFilesKey()
public static CFStringRef kCFURLVolumeSupportsAccessPermissionsKey()
public static int kCFStreamErrorDomainSOCKS()
Discussion: SOCKS proxy error domain. Errors formulated using inlines below.
public static CFStringRef kCFStreamPropertySOCKSProxy()
Discussion: Stream property key, for both set and copy operations. To set a stream to use a SOCKS proxy, call CFReadStreamSetProperty or CFWriteStreamSetProperty with the property name set to kCFStreamPropertySOCKSProxy and the value being a dictionary with at least the following two keys: kCFStreamPropertySOCKSProxyHost and kCFStreamPropertySOCKSProxyPort. The dictionary returned by SystemConfiguration for SOCKS proxies will work without alteration.
public static CFStringRef kCFStreamPropertySOCKSProxyHost()
Discussion: CFDictionary key for SOCKS proxy information. The key kCFStreamPropertySOCKSProxyHost should contain a CFStringRef value representing the SOCKS proxy host. Defined to match kSCPropNetProxiesSOCKSProxy
public static CFStringRef kCFStreamPropertySOCKSProxyPort()
Discussion: CFDictionary key for SOCKS proxy information. The key kCFStreamPropertySOCKSProxyPort should contain a CFNumberRef which itself is of type kCFNumberSInt32Type. This value should represent the port on which the proxy is listening. Defined to match kSCPropNetProxiesSOCKSPort
public static CFStringRef kCFStreamPropertySOCKSVersion()
Discussion: CFDictionary key for SOCKS proxy information. By default, SOCKS5 will be used unless there is a kCFStreamPropertySOCKSVersion key in the dictionary. Its value must be kCFStreamSocketSOCKSVersion4 or kCFStreamSocketSOCKSVersion5 to set SOCKS4 or SOCKS5, respectively.
public static CFStringRef kCFStreamSocketSOCKSVersion4()
Discussion: CFDictionary value for SOCKS proxy information. Indcates that SOCKS will or is using version 4 of the SOCKS protocol.
public static CFStringRef kCFStreamSocketSOCKSVersion5()
Discussion: CFDictionary value for SOCKS proxy information. Indcates that SOCKS will or is using version 5 of the SOCKS protocol.
public static CFStringRef kCFStreamPropertySOCKSUser()
Discussion: CFDictionary key for SOCKS proxy information. To set a user name and/or password, if required, the dictionary must contain the key(s) kCFStreamPropertySOCKSUser and/or kCFStreamPropertySOCKSPassword with the value being the user's name as a CFStringRef and/or the user's password as a CFStringRef, respectively.
public static CFStringRef kCFStreamPropertySOCKSPassword()
Discussion: CFDictionary key for SOCKS proxy information. To set a user name and/or password, if required, the dictionary must contain the key(s) kCFStreamPropertySOCKSUser and/or kCFStreamPropertySOCKSPassword with the value being the user's name as a CFStringRef and/or the user's password as a CFStringRef, respectively.
public static int kCFStreamErrorDomainSSL()
Discussion: Errors located in Security/SecureTransport.h
public static CFStringRef kCFStreamPropertySocketSecurityLevel()
Discussion: Stream property key, for both set and copy operations. To set a stream to be secure, call CFReadStreamSetProperty or CFWriteStreamSetPropertywith the property name set to kCFStreamPropertySocketSecurityLevel and the value being one of the following values. Streams may set a security level after open in order to allow on-the-fly securing of a stream.
public static CFStringRef kCFStreamSocketSecurityLevelNone()
Discussion: Stream property value, for both set and copy operations. Indicates to use no security (default setting).
public static CFStringRef kCFStreamSocketSecurityLevelSSLv2()
Note: SSLv2 is DEPRECATED starting in OS X 10.12 and iOS 10.0.
Discussion: Stream property value, for both set and copy operations. Indicates to use SSLv2 security.
public static CFStringRef kCFStreamSocketSecurityLevelSSLv3()
Note: SSLv3 is DEPRECATED starting in OS X 10.12 and iOS 10.0.
Discussion: Stream property value, for both set and copy operations. Indicates to use SSLv3 security.
public static CFStringRef kCFStreamSocketSecurityLevelTLSv1()
Discussion: Stream property value, for both set and copy operations. Indicates to use TLSv1 security.
public static CFStringRef kCFStreamSocketSecurityLevelNegotiatedSSL()
Discussion: Stream property value, for both set and copy operations. Indicates to use TLS or SSL with fallback to lower versions. This is what HTTPS does, for instance.
public static CFStringRef kCFStreamPropertyShouldCloseNativeSocket()
Discussion: Set the value to kCFBooleanTrue if the stream should close and release the underlying native socket when the stream is released. Set the value to kCFBooleanFalse to keep the native socket from closing and releasing when the stream is released. If the stream was created with a native socket, the default property setting on the stream is kCFBooleanFalse. The kCFStreamPropertyShouldCloseNativeSocket can be set through CFReadStreamSetProperty or CFWriteStreamSetProperty. The property can be copied through CFReadStreamCopyProperty or CFWriteStreamCopyProperty.
public static CFStringRef kCFURLFileContentIdentifierKey()
public static CFStringRef kCFURLMayShareFileContentKey()
public static CFStringRef kCFURLMayHaveExtendedAttributesKey()
public static CFStringRef kCFURLIsPurgeableKey()
public static CFStringRef kCFURLIsSparseKey()
public static CFStringRef kCFURLVolumeSupportsFileProtectionKey()
public static CFStringRef kCFURLUbiquitousItemIsExcludedFromSyncKey()