HKTextPattern.h

00001 /*
00002     HKTextPattern.h
00003 
00004     Declarations of data structures and functions for text pattern
00005     manipulation for the HighlighterKit framework.
00006 
00007     Copyright (C) 2005, 2006, 2007, 2008  Saso Kiselkov
00008 
00009     This library is free software; you can redistribute it and/or
00010     modify it under the terms of the GNU Lesser General Public
00011     License as published by the Free Software Foundation; either
00012     version 2.1 of the License, or (at your option) any later version.
00013 
00014     This library is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017     Lesser General Public License for more details.
00018 
00019     You should have received a copy of the GNU Lesser General Public
00020     License along with this library; if not, write to the Free Software
00021     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00022 */
00023 
00024 #import <Foundation/NSObject.h>
00025 #import <Foundation/NSString.h>
00026 
00027 #ifndef IN_TEXT_PATTERN_M
00028 
00031 typedef void HKTextPattern;
00032 #endif
00033 
00034 HKTextPattern *HKCompileTextPattern (NSString * string);
00035 
00036 void HKFreeTextPattern (HKTextPattern * pattern);
00037 
00038 BOOL HKTextPatternsEqual (HKTextPattern * pattern1, HKTextPattern * pattern2);
00039 
00040 unsigned int
00041 HKCheckTextPatternPresenceInString (HKTextPattern * pattern,
00042                                     unichar * string,
00043                                     unsigned int stringLength,
00044                                     unsigned int index);
00045 
00046 unichar *HKPermissibleCharactersAtPatternBeginning (HKTextPattern * pattern);

Generated on Thu Nov 25 10:47:42 2010 for HighlighterKit by  doxygen 1.5.5