Permalink
Browse files

Merge pull request #2 from EmbeddedSources/UrlBuilderLib

Added a library and a unit test target for URL builder
  • Loading branch information...
2 parents adf5cf0 + f55748e commit 3d928e1293506342e91e0be1dcf88064956878ed @davedelong committed Jun 6, 2012
View
@@ -1,3 +1,9 @@
+
+*xcworkspace*
+*xcuserdata*
+._*
+.svn
+
**/build
**/**/*.pbxuser
**/**/*.perspectivev3
@@ -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:@"+"];
Oops, something went wrong.

0 comments on commit 3d928e1

Please sign in to comment.