File: programming/cocoa/UKDiffView.zip/UKDiffView/AngelDiff/UKDiffParser.h


//
//  UKDiffParser.h
//  AngelDiff
//
//  Created by Uli Kusterer on 02.08.08.
//  Copyright 2008 The Void Software. All rights reserved.
//
 
// -----------------------------------------------------------------------------
//	Headers:
// -----------------------------------------------------------------------------
 
#import <Cocoa/Cocoa.h>
// -----------------------------------------------------------------------------
//	Constants:
// -----------------------------------------------------------------------------
'c',	// newText replaces oldText.
'd',	// oldText or nothing.
'a',		// nothing or newText.
// oldText and newText are the same. destinationRange is unset.
// -----------------------------------------------------------------------------
//	UKDiffParser:
//		Parses a diff in string form and can then turn a source text into the
//		destination text by applying this diff.
// -----------------------------------------------------------------------------
// The diff to apply.
// The diff to apply.
// The text to apply the diff to.
// Must have called applyOriginalText: once before using this.
// Must have called applyOriginalText: once before using this.
// Must have called applyOriginalText: once before using this.
 
// Use these e.g for a view that displays a diff:
// Going away:
// -----------------------------------------------------------------------------
//	UKDiffEntry:
//		Class used for storing a parsed version of the source, destination and
//		their differences.
// -----------------------------------------------------------------------------
// YES if we should apply this change, NO if we should leave the original text in the output.
 

This code uses the PclZip Zip File reading code, which is subject to the GNU LGPL. It also uses the GeSHi syntax highlighter, subject to the GPL. Ask if you want this for your own web site, it's free.