Redesign of the Evaluation System
This commit is contained in:
30
MathPad/MPFunction+MPParsedFactor.m
Normal file
30
MathPad/MPFunction+MPParsedFactor.m
Normal file
@@ -0,0 +1,30 @@
|
||||
//
|
||||
// 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
|
||||
Reference in New Issue
Block a user