Skip to content

Commit

Permalink
Merge pull request #301 from rentzsch/feature/modernization
Browse files Browse the repository at this point in the history
Modernizing mogenerator internals.
  • Loading branch information
rentzsch committed Aug 25, 2015
2 parents f60bf94 + ada5b2a commit edea5d6
Show file tree
Hide file tree
Showing 34 changed files with 232 additions and 2,066 deletions.
2 changes: 1 addition & 1 deletion MiscMerge/FoundationAdditions.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/

#import "FoundationAdditions.h"
#import <Foundation/Foundation.h>
@import Foundation;
#import "NSString+MiscAdditions.h"


Expand Down
2 changes: 1 addition & 1 deletion MiscMerge/MiscMergeExpression.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// for a list of all applicable permissions and restrictions.
//

#import <Foundation/Foundation.h>
@import Foundation;

@class MiscMergeEngine;

Expand Down
16 changes: 8 additions & 8 deletions MiscMerge/MiscMergeTemplate.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,29 +65,29 @@ @implementation MiscMergeTemplate
"*/

/*"
* Returns the default string used to start a merge command, "«". A
* Returns the default string used to start a merge command, "«". A
* subclass of MiscMergeTemplate could override this method.
"*/
+ (NSString *)defaultStartDelimiter
{
// return @"(";
// return @"«";
// return @"«";
/* This works better for whatever reason. Due to some unknown pecularities,
a constant NSString doesn't work under Windows with Apple's
implementation. */
return [NSString stringWithCString:"«" encoding:NSUTF8StringEncoding];
return [NSString stringWithCString:"«" encoding:NSUTF8StringEncoding];
}

/*"
* Returns the default string used to end a merge command, "»". A
* Returns the default string used to end a merge command, "»". A
* subclass of MiscMergeTemplate could override this method.
"*/
+ (NSString *)defaultEndDelimiter
{
// return @")";
// return @"»";
// return @"»";
/* This works better than a constant NSString for whatever reason. See above. */
return [NSString stringWithCString:"»" encoding:NSUTF8StringEncoding];
return [NSString stringWithCString:"»" encoding:NSUTF8StringEncoding];
}

/*" Creates a new, autoreleased MiscMergeTemplate. "*/
Expand Down Expand Up @@ -343,8 +343,8 @@ - (Class)_classForCommand:(NSString *)realCommand
* classes with specific names. The name that is looked up is build from
* the first word found in %{aCommand}. The first word is turned to all
* lower case, with the first letter upper case, and then sandwiched
* between "Merge" and "Command". For example, the merge command "«if xxx
* = y»" has the word "if" as the first word. Thus, the class
* between "Merge" and "Command". For example, the merge command "«if xxx
* = y»" has the word "if" as the first word. Thus, the class
* "MergeIfCommand" will be searched for. If the desired class cannot be
* found, then it is assumed that the merge command is giving the name of a
* field which should be inserted into the output document.
Expand Down
2 changes: 1 addition & 1 deletion MiscMerge/NSNull.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
- (id)copy;

- (void)encodeWithCoder:(NSCoder *)aCoder;
- (id)initWithCoder:(NSCoder *)aDecoder;
- (instancetype)initWithCoder:(NSCoder *)aDecoder;

- (id)replacementObjectForCoder:(NSCoder *)aCoder;

Expand Down
2 changes: 1 addition & 1 deletion MiscMerge/_MiscMergeDebugCommand.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//

#import "_MiscMergeDebugCommand.h"
#import <Foundation/Foundation.h>
@import Foundation;
#import "NSString+MiscAdditions.h"
#import "NSScanner+MiscMerge.h"

Expand Down
2 changes: 1 addition & 1 deletion MiscMerge/_MiscMergeIfCommand.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

@implementation _MiscMergeIfCommand

- (id)init
- (instancetype)init
{
[super init];
trueBlock = [[MiscMergeCommandBlock alloc] initWithOwner:self];
Expand Down
2 changes: 1 addition & 1 deletion MiscMerge/_MiscMergeProcedureCommand.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
//

#import "_MiscMergeProcedureCommand.h"
#import <Foundation/Foundation.h>
@import Foundation;
#import "MiscMergeEngine.h"
#import "MiscMergeTemplate.h"
#import "MiscMergeCommandBlock.h"
Expand Down
220 changes: 0 additions & 220 deletions RegexKitLite.h

This file was deleted.

Loading

0 comments on commit edea5d6

Please sign in to comment.