// // MPFunction+MPParsedFactor.m // MathPad // // Created by Kim Wittenburg on 13.09.14. // Copyright (c) 2014 Kim Wittenburg. All rights reserved. // #import "MPFunction+MPParsedFactor.h" @implementation MPFunction (MPParsedFactor) - (instancetype)initWithRange:(NSRange)range inString:(NSString *)string { return [self init]; } - (BOOL)exists { return YES; } - (NSRange)range { NSUInteger selfIndex = [self.parent indexOfElement:self]; return NSMakeRange([self.parent locationOfElementAtIndex:selfIndex], 1); } @end