-
Notifications
You must be signed in to change notification settings - Fork 84
/
ICUTemplateMatcher.h
35 lines (26 loc) · 1.2 KB
/
ICUTemplateMatcher.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// 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>
@property(atomic,assign) MGTemplateEngine *engine; // weak ref
@property(atomic,retain) NSString *markerStart;
@property(atomic,retain) NSString *markerEnd;
@property(atomic,retain) NSString *exprStart;
@property(atomic,retain) NSString *exprEnd;
@property(atomic,retain) NSString *filterDelimiter;
@property(atomic,retain) NSString *templateString;
@property(atomic,retain) NSString *regex;
+ (ICUTemplateMatcher *)matcherWithTemplateEngine:(MGTemplateEngine *)theEngine;
- (NSArray *)argumentsFromString:(NSString *)argString;
@end