API  0.9.10
CPAttributedString.j File Reference

Go to the source code of this file.

Variables

var copyRangeEntry
 
var CPAttributedStringAttributesKey = "CPAttributedStringAttributes"
 
var CPAttributedStringRangesKey = "CPAttributedStringRanges"
 
var CPAttributedStringStringKey = "CPAttributedStringString"
 
var isEqual
 
var makeRangeEntry
 
var splitRangeEntryAtIndex
 

Variable Documentation

◆ copyRangeEntry

var copyRangeEntry
Initial value:
= function(aRangeEntry)
{
return makeRangeEntry(CPMakeRangeCopy(aRangeEntry.range), [aRangeEntry.attributes copy]);
}
function CPMakeRangeCopy(aRange)
Definition: CPRange.j:48
var makeRangeEntry

Definition at line 903 of file CPAttributedString.j.

◆ CPAttributedStringAttributesKey

var CPAttributedStringAttributesKey = "CPAttributedStringAttributes"

Definition at line 831 of file CPAttributedString.j.

◆ CPAttributedStringRangesKey

var CPAttributedStringRangesKey = "CPAttributedStringRanges"

Definition at line 830 of file CPAttributedString.j.

◆ CPAttributedStringStringKey

var CPAttributedStringStringKey = "CPAttributedStringString"

Definition at line 829 of file CPAttributedString.j.

◆ isEqual

var isEqual
Initial value:
= function(a, b)
{
if (a === b)
return YES;
if ([a respondsToSelector:@selector(isEqual:)] && [a isEqual:b])
return YES;
return NO;
}
var isEqual

Definition at line 887 of file CPAttributedString.j.

◆ makeRangeEntry

var makeRangeEntry
Initial value:
= function(aRange, attributes)
{
return {range:aRange, attributes:[attributes copy]};
}

Definition at line 898 of file CPAttributedString.j.

◆ splitRangeEntryAtIndex

var splitRangeEntryAtIndex
Initial value:
= function(aRangeEntry, anIndex)
{
var newRangeEntry = copyRangeEntry(aRangeEntry),
cachedIndex = CPMaxRange(aRangeEntry.range);
aRangeEntry.range.length = anIndex - aRangeEntry.range.location;
newRangeEntry.range.location = anIndex;
newRangeEntry.range.length = cachedIndex - anIndex;
newRangeEntry.attributes = [newRangeEntry.attributes copy];
return [aRangeEntry, newRangeEntry];
}
function CPMaxRange(aRange)
Definition: CPRange.j:70
var copyRangeEntry

Definition at line 908 of file CPAttributedString.j.