Archived
1
This repository has been archived on 2022-08-08. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
mathpad/MathPad/MPFunction+MPParsedFactor.m
2014-09-13 23:16:44 +02:00

31 lines
566 B
Objective-C

//
// 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