The R Project SVN R-packages

Rev

Rev 8072 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8072 Rev 8075
Line 75... Line 75...
75
#pragma mark -
75
#pragma mark -
76
#pragma mark NSGlyphStoragePrimitives
76
#pragma mark NSGlyphStoragePrimitives
77
 
77
 
78
- (void)insertGlyphs:(const NSGlyph *)glyphs length:(NSUInteger)length forStartingGlyphAtIndex:(NSUInteger)glyphIndex characterIndex:(NSUInteger)charIndex
78
- (void)insertGlyphs:(const NSGlyph *)glyphs length:(NSUInteger)length forStartingGlyphAtIndex:(NSUInteger)glyphIndex characterIndex:(NSUInteger)charIndex
79
{
79
{
-
 
80
	if (!_destination) return;
80
	NSGlyph localBuffer[64]; /* stack-local buffer to avoid allocations */
81
	NSGlyph localBuffer[64]; /* stack-local buffer to avoid allocations */
81
	NSGlyph *buffer = NULL;
82
	NSGlyph *buffer = NULL;
82
	NSInteger folded = [theTextStorage foldedAtIndex: charIndex];
83
	NSInteger folded = [theTextStorage foldedAtIndex: charIndex];
83
 
84
 
84
	// SLog(@"%@ insertGlyphs: length:%d forStartingGlyphAtIndex:%d characterIndex:%d", self, (int) length, (int) glyphIndex, (int) charIndex);
85
	// SLog(@"%@ insertGlyphs: length:%d forStartingGlyphAtIndex:%d characterIndex:%d", self, (int) length, (int) glyphIndex, (int) charIndex);