Skip to content

Commit

Permalink
Welcome dmd 2.052
Browse files Browse the repository at this point in the history
  • Loading branch information
canalpay committed Feb 18, 2011
1 parent 8cfd7e2 commit 79a38b4
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions library/fixedString.d
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module library.fixedString;

import std.string;
import std.array;
import std.uri;

/*
Expand All @@ -23,20 +23,23 @@ string[string] forGetAndPost(string input)
string[][] fixedInput2;

foreach (fixedInput;fixedInput1) {

fixedInput2 ~= split(fixedInput,"=");

}


for (int a=0; a < fixedInput1.length ; ++a) {
for (int b = 1; b < fixedInput2[a].length; ++b) {
//endInput[fixedInput2[a][0]]~=fixedInput2[a][b+1];
endInput[fixedInput2[a][0]] ~= fixedInput2[a][b];
}
}


return endInput;

}


unittest
{
string[string] deneme;
Expand All @@ -60,13 +63,15 @@ string[string] forCookie(string input)
fixedInput2 ~= split(fixedInput,"=");
}


for (int a = 0; a < fixedInput1.length; ++a) {
for (int b=1; b < fixedInput2[a].length; ++b) {
//endInput[fixedInput2[a][0]]~=fixedInput2[a][b+1];
endInput[fixedInput2[a][0]] ~= fixedInput2[a][b];
}
}


return endInput;
}

Expand Down

0 comments on commit 79a38b4

Please sign in to comment.