Foundation


Classes

class  CPBundle
class  CPCountedSet
class  CPData
class  CPDate
class  CPKeyedUnarchiver
class  CPSet
class  CPTimer
class  CPURLResponse
class  CPArray
class  CPAttributedString
 A mutable character string with attributes. More...
class  CPCoder
class  CPDictionary
class  CPEnumerator
class  CPException
class  CPIndexSet
class  CPInvocation
class  CPJSONPConnection
class  CPKeyedArchiver
class  CPNotification
class  CPNull
class  CPNumber
class  CPObject
class  CPRunLoop
class  CPSortDescriptor
class  CPString
class  CPUndoManager
class  CPURLRequest
class  CPValue

Functions

function CPMakeRange (location, length)
function CPCopyRange (aRange)
function CPMakeRangeCopy (aRange)
function CPEmptyRange (aRange)
function CPMaxRange (aRange)
function CPEqualRanges (lhsRange, rhsRange)
function CPLocationInRange (aLocation, aRange)
function CPUnionRange (lhsRange, rhsRange)
function CPIntersectionRange (lhsRange, rhsRange)
function CPRangeInRange (lhsRange, rhsRange)
function CPStringFromRange (aRange)
function CPRangeFromString (aString)

Variables

import CPArray j import
CPDictionary j import
CPNotification j import
CPException j var 
CPNotificationDefaultCenter = nil

Function Documentation

function CPCopyRange ( aRange   ) 

Makes a copy of a CPRange.

Parameters:
aRange the CPRange to copy CPRange
Returns:
CPRange the copy of the range

Definition at line 46 of file CPRange.j.

function CPEmptyRange ( aRange   ) 

Sets a range's length to 0.

Parameters:
aRange the range to empty CPRange
Returns:
CPRange the empty range (same as the argument)

Definition at line 68 of file CPRange.j.

function CPEqualRanges ( lhsRange  ,
rhsRange   
)

Determines if two CPRanges are equal.

Parameters:
lhsRange the first CPRange
rhsRange the second CPRange
Returns:
BOOL YES if the two CPRanges are equal.

Definition at line 90 of file CPRange.j.

function CPIntersectionRange ( lhsRange  ,
rhsRange   
)

Creates a new CPRange that spans the common range of two CPRanges

Parameters:
lhsRange the first CPRange
rhsRange the second CPRange CPRange
Returns:
CPRange the new CPRange

Definition at line 128 of file CPRange.j.

function CPLocationInRange ( aLocation  ,
aRange   
)

Determines if a number is within a specified CPRange.

Parameters:
aLocation the number to check
aRange the CPRange to check within CPRange
Returns:
BOOL YES if aLocation/code> is within the range

Definition at line 102 of file CPRange.j.

function CPMakeRange ( location  ,
length   
)

Makes a CPRange.

Parameters:
location the location for new range
length the length of the new range CPRange
Returns:
CPRange the new range object

Definition at line 35 of file CPRange.j.

function CPMakeRangeCopy ( aRange   ) 

Makes a copy of a CPRange.

Parameters:
aRange the CPRange to copy CPRange
Returns:
CPRange the copy of the range

Definition at line 57 of file CPRange.j.

function CPMaxRange ( aRange   ) 

Finds the range maximum. (location + length)

Parameters:
aRange the range to calculate a maximum from CPRange
Returns:
int the range maximum

Definition at line 79 of file CPRange.j.

function CPRangeFromString ( aString   ) 

Creates a CPRange from the contents of a CPString.

Parameters:
aString the string to create a CPRange from CPRange
Returns:
CPRange the new range

Definition at line 166 of file CPRange.j.

function CPRangeInRange ( lhsRange  ,
rhsRange   
)

Checks if a range completely contains another range. In other words, if one range is the "super range" of another.

Parameters:
lhsRange the containing range
rhsRange the range we are testing to see if lhsRange contains it CPRange
Returns:
BOOL whether or not lhsRange completely contains rhsRange

Definition at line 144 of file CPRange.j.

function CPStringFromRange ( aRange   ) 

Returns a string describing a range.

Parameters:
aRange the range to describe CPRange
Returns:
CPString a describing string

Definition at line 155 of file CPRange.j.

function CPUnionRange ( lhsRange  ,
rhsRange   
)

Creates a new range with the minimum location and a length that extends to the maximum length.

Parameters:
lhsRange the first CPRange
rhsRange the second CPRange CPRange
Returns:
CPRange the new CPRange

Definition at line 115 of file CPRange.j.


Variable Documentation

Definition at line 32 of file CPNotificationCenter.j.


Generated on Wed May 20 12:43:59 2009 for Cappuccino by  doxygen 1.5.8