diff options
author | bamse16 <marius@marius.me.uk> | 2009-04-11 09:14:42 +0000 |
---|---|---|
committer | bamse16 <marius@marius.me.uk> | 2009-04-11 09:14:42 +0000 |
commit | 1824ae6360c9ce1897e75404163d39df08ee5fbf (patch) | |
tree | 0eca1f6f4cb42e08f25e44a4683aecfb5881aac2 /Source/ICUTemplateMatcher.h | |
parent | 41f8cde09ff77996339cabc71517496976beee2e (diff) | |
download | sequelpro-1824ae6360c9ce1897e75404163d39df08ee5fbf.tar.gz sequelpro-1824ae6360c9ce1897e75404163d39df08ee5fbf.tar.bz2 sequelpro-1824ae6360c9ce1897e75404163d39df08ee5fbf.zip |
Added printing support via WebKit WebView
Diffstat (limited to 'Source/ICUTemplateMatcher.h')
-rw-r--r-- | Source/ICUTemplateMatcher.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Source/ICUTemplateMatcher.h b/Source/ICUTemplateMatcher.h new file mode 100644 index 00000000..d02c0a31 --- /dev/null +++ b/Source/ICUTemplateMatcher.h @@ -0,0 +1,44 @@ +// +// ICUTemplateMatcher.h +// +// Created by Matt Gemmell on 19/05/2008. +// Copyright 2008 Instinctive Code. All rights reserved. +// + +#import "MGTemplateEngine.h" + +/* + This is an example Matcher for MGTemplateEngine, implemented using libicucore on Leopard, + via the RegexKitLite library: http://regexkit.sourceforge.net/#RegexKitLite + + This project includes everything you need, as long as you're building on Mac OS X 10.5 or later. + + Other matchers can easily be implemented using the MGTemplateEngineMatcher protocol, + if you prefer to use another regex framework, or use another matching method entirely. + */ + +@interface ICUTemplateMatcher : NSObject <MGTemplateEngineMatcher> { + MGTemplateEngine *engine; + NSString *markerStart; + NSString *markerEnd; + NSString *exprStart; + NSString *exprEnd; + NSString *filterDelimiter; + NSString *templateString; + NSString *regex; +} + +@property(assign) MGTemplateEngine *engine; // weak ref +@property(retain) NSString *markerStart; +@property(retain) NSString *markerEnd; +@property(retain) NSString *exprStart; +@property(retain) NSString *exprEnd; +@property(retain) NSString *filterDelimiter; +@property(retain) NSString *templateString; +@property(retain) NSString *regex; + ++ (ICUTemplateMatcher *)matcherWithTemplateEngine:(MGTemplateEngine *)theEngine; + +- (NSArray *)argumentsFromString:(NSString *)argString; + +@end |