Skip to content

Commit

Permalink
Converted MiscMerge to explicitly UTF8 instead of a mish-mash of diff…
Browse files Browse the repository at this point in the history
…erent encodings.
  • Loading branch information
Justin Williams committed Aug 24, 2015
1 parent 2afdfc8 commit 8a1a9f6
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 88 deletions.
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
Loading

0 comments on commit 8a1a9f6

Please sign in to comment.