20 lines
758 B
Objective-C
20 lines
758 B
Objective-C
//
|
|
// NSRegularExpression+MPParsingAdditions.h
|
|
// MathPad
|
|
//
|
|
// Created by Kim Wittenburg on 09.09.14.
|
|
// Copyright (c) 2014 Kim Wittenburg. All rights reserved.
|
|
//
|
|
|
|
#define MPStringRange(string) NSMakeRange(0, [string length])
|
|
#define MPStringRangeFrom(from, string) NSMakeRange(from, [string length]-from)
|
|
|
|
@interface NSRegularExpression (MPParsingAdditions)
|
|
|
|
- (NSTextCheckingResult *)firstMatchInString:(NSString *)string;
|
|
- (NSTextCheckingResult *)firstMatchInString:(NSString *)string fromIndex:(NSUInteger)start;
|
|
- (NSTextCheckingResult *)firstMatchInString:(NSString *)string options:(NSMatchingOptions)options;
|
|
- (NSTextCheckingResult *)firstMatchInString:(NSString *)string options:(NSMatchingOptions)options fromIndex:(NSUInteger)start;
|
|
|
|
@end
|