* [ios, macos] Add match expressions support. * [ios, macos] Add coalesce operator support. * [ios, macos] Add coalesce operator test. * [ios, macos] Match operator implementation is moved to NSPredicate. * [ios, macos] Match operator function implementation refactor. * [ios, macos] Address merge conflicts.
24 lines
491 B
Objective-C
24 lines
491 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
#import "NSExpression+MGLPrivateAdditions.h"
|
|
|
|
@interface NSPredicate (MGLAdditions)
|
|
|
|
- (mbgl::style::Filter)mgl_filter;
|
|
|
|
+ (instancetype)mgl_predicateWithFilter:(mbgl::style::Filter)filter;
|
|
|
|
@end
|
|
|
|
@interface NSPredicate (MGLExpressionAdditions)
|
|
|
|
+ (instancetype)mgl_predicateWithJSONObject:(id)object;
|
|
|
|
@property (nonatomic, readonly) id mgl_jsonExpressionObject;
|
|
|
|
- (id)mgl_case:(id)firstValue, ...;
|
|
|
|
- (id)mgl_match:(NSExpression *)firstCase, ...;
|
|
|
|
@end
|