This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
#import <QuartzCore/QuartzCore.h> | |
#import <iostream> | |
#import <vector> // Needed for gist to compile. | |
#pragma mark - Pure Implementation Functions | |
const static unichar kUTF16Newline = (unichar)'\n'; // old naming habits die hard! | |
/** | |
* Calculates an array of line end "positions" for a given string. | |
* The equivalent Swift function was `(String) -> [Int]` or `(NSString) -> [Int]` | |
* |