Permalink
Browse files

Objective-C refresh.

  • Loading branch information...
NeilFraser committed Feb 12, 2018
1 parent 1c8c8e2 commit 47ba260288a1345269d9ee5059b30dd4e18a6c76
@@ -4,5 +4,8 @@
*.pyc
*.komodoproject
.DS_STORE
xcuserdata
dart/tests/Speedtest.dart.js.deps
dart/tests/Speedtest.dart.js.map

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
</plist>
@@ -9,7 +9,7 @@
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>de.geheimwerk.${PRODUCT_NAME:rfc1034Identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
@@ -31,15 +31,14 @@ @implementation NSString (UriCompatibility)
* @param str The CFStringRef to escape.
* @return The escaped CFStringRef.
*/
- (NSString *)diff_stringByAddingPercentEscapesForEncodeUriCompatibility;
{
CFStringRef urlString = CFURLCreateStringByAddingPercentEscapes(NULL,
(CFStringRef)self,
CFSTR(" !~*'();/?:@&=+$,#"),
NULL,
kCFStringEncodingUTF8);
CFMakeCollectable(urlString);
return [(NSString *)urlString autorelease];
- (NSString *)diff_stringByAddingPercentEscapesForEncodeUriCompatibility {
NSMutableCharacterSet *allowedCharacters =
[NSMutableCharacterSet characterSetWithCharactersInString:@" !~*'();/?:@&=+$,#"];
[allowedCharacters formUnionWithCharacterSet:[NSCharacterSet URLQueryAllowedCharacterSet]];
NSString *URLString =
[self stringByAddingPercentEncodingWithAllowedCharacters:allowedCharacters];
return URLString;
}
/**
@@ -49,14 +48,9 @@ - (NSString *)diff_stringByAddingPercentEscapesForEncodeUriCompatibility;
*
* @return The unescaped NSString.
*/
- (NSString *)diff_stringByReplacingPercentEscapesForEncodeUriCompatibility;
{
CFStringRef decodedString = CFURLCreateStringByReplacingPercentEscapesUsingEncoding(NULL,
(CFStringRef)self,
CFSTR(""),
kCFStringEncodingUTF8);
CFMakeCollectable(decodedString);
return [(NSString *)decodedString autorelease];
- (NSString *)diff_stringByReplacingPercentEscapesForEncodeUriCompatibility {
NSString *decodedString = [self stringByRemovingPercentEncoding];
return decodedString;
}
@end
@@ -3,19 +3,19 @@
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
@@ -19,13 +19,9 @@
* ObjC port: jan@geheimwerk.de (Jan Weiß)
*/
#import <SenTestingKit/SenTestingKit.h>
#import <XCTest/XCTest.h>
#import "DiffMatchPatch.h"
@interface DiffMatchPatchTest : SenTestCase {
}
@interface DiffMatchPatchTest : XCTestCase
@end
Oops, something went wrong.

0 comments on commit 47ba260

Please sign in to comment.