00001 #import <Foundation/NSString.h> 00002 00003 /* Attributes used to illustrate diffs. */ 00004 extern NSString * const kHFAttributeDiffInsertion; 00005 00006 /* Attribute used for illustrating a focused range of characters. */ 00007 extern NSString * const kHFAttributeFocused; 00008 00009 /* Attributes used for address spaces of other processes. */ 00010 extern NSString * const kHFAttributeUnmapped; /* A range that is not allocated, used to describe sparse data sets (e.g. a virtual address space). */ 00011 extern NSString * const kHFAttributeUnreadable; /* A range that is allocated but is not readable. */ 00012 extern NSString * const kHFAttributeWritable; /* A range that is writable. */ 00013 extern NSString * const kHFAttributeExecutable; /* A range that is executable. */ 00014 extern NSString * const kHFAttributeShared; /* A range that is shared memory. */ 00015 00016 extern NSString * const kHFAttributeMagic; /* For testing. */ 00017 00018 /* Bookmark attribute. Pass an integer (the bookmark) and get back a string that can be used as an attribute. */ 00019 extern NSString *HFBookmarkAttributeFromBookmark(NSInteger bookmark); 00020 00021 /* Given a bookmark string, return the bookmark index for it, or NSNotFound if the string does not represent a bookmark attribute. */ 00022 extern NSInteger HFBookmarkFromBookmarkAttribute(NSString *bookmark);