Skip to content
This repository has been archived by the owner on Apr 25, 2018. It is now read-only.

Commit

Permalink
Merge pull request #2 from EmbeddedSources/UrlBuilderLib
Browse files Browse the repository at this point in the history
Added a library and a unit test target for URL builder
  • Loading branch information
davedelong committed Jun 6, 2012
2 parents adf5cf0 + f55748e commit 3d928e1
Show file tree
Hide file tree
Showing 9 changed files with 501 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@

*xcworkspace*
*xcuserdata*
._*
.svn

**/build
**/**/*.pbxuser
**/**/*.perspectivev3
Expand Down
4 changes: 2 additions & 2 deletions DDURLBuilder/DDURLBuilder.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
NSString *ddurlbuilder_percentEncode(NSString *string) {
NSMutableString * output = [NSMutableString string];
const unsigned char * source = (const unsigned char *)[string UTF8String];
int sourceLen = strlen((const char *)source);
for (int i = 0; i < sourceLen; ++i) {
size_t sourceLen = strlen((const char *)source);
for (size_t i = 0; i < sourceLen; ++i) {
const unsigned char thisChar = source[i];
if (thisChar == ' '){
[output appendString:@"+"];
Expand Down
Loading

0 comments on commit 3d928e1

Please sign in to comment.