Skip to content

Commit

Permalink
Whitespace cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadlinger committed Dec 4, 2011
1 parent 6287242 commit 130b1ac
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 73 deletions.
24 changes: 12 additions & 12 deletions std/base64.d
Expand Up @@ -486,7 +486,7 @@ template Base64Impl(char Map62th, char Map63th, char Padding = '=')

static if (isForwardRange!Range) {
/**
* Captures a Range state.
* Captures a Range state.
*
* Returns:
* a copy of $(D this).
Expand Down Expand Up @@ -541,7 +541,7 @@ template Base64Impl(char Map62th, char Map63th, char Padding = '=')
else
popFront();
}


/**
* Range primitive operation that checks iteration state.
Expand Down Expand Up @@ -594,7 +594,7 @@ template Base64Impl(char Map62th, char Map63th, char Padding = '=')
pos = -1;
return;
}

final switch (pos) {
case 0:
first = EncodeMap[range_.front >> 2];
Expand Down Expand Up @@ -626,14 +626,14 @@ template Base64Impl(char Map62th, char Map63th, char Padding = '=')
range_.popFront();
break;
}
++pos %= 4;

++pos %= 4;
}


static if (isForwardRange!Range) {
/**
* Captures a Range state.
* Captures a Range state.
*
* Returns:
* a copy of $(D this).
Expand Down Expand Up @@ -1120,7 +1120,7 @@ template Base64Impl(char Map62th, char Map63th, char Padding = '=')

static if (isForwardRange!Range) {
/**
* Captures a Range state.
* Captures a Range state.
*
* Returns:
* a copy of $(D this).
Expand Down Expand Up @@ -1191,7 +1191,7 @@ template Base64Impl(char Map62th, char Map63th, char Padding = '=')
else
popFront();
}


/**
* Range primitive operation that checks iteration state.
Expand Down Expand Up @@ -1231,7 +1231,7 @@ template Base64Impl(char Map62th, char Map63th, char Padding = '=')

static if (Padding == NoPadding) {
bool endCondition()
{
{
return range_.empty;
}
} else {
Expand Down Expand Up @@ -1289,7 +1289,7 @@ template Base64Impl(char Map62th, char Map63th, char Padding = '=')

static if (isForwardRange!Range) {
/**
* Captures a Range state.
* Captures a Range state.
*
* Returns:
* a copy of $(D this).
Expand Down Expand Up @@ -1394,7 +1394,7 @@ unittest
assert(Base64.encodeLength(tv["foob"].length) == 8);
assert(Base64.encodeLength(tv["fooba"].length) == 8);
assert(Base64.encodeLength(tv["foobar"].length) == 8);

assert(Base64.encode(tv[""]) == "");
assert(Base64.encode(tv["f"]) == "Zg==");
assert(Base64.encode(tv["fo"]) == "Zm8=");
Expand Down Expand Up @@ -1435,7 +1435,7 @@ unittest
assert(Base64Re.encodeLength(tv["foob"].length) == 6);
assert(Base64Re.encodeLength(tv["fooba"].length) == 7);
assert(Base64Re.encodeLength(tv["foobar"].length) == 8);

assert(Base64Re.encode(tv[""]) == "");
assert(Base64Re.encode(tv["f"]) == "Zg");
assert(Base64Re.encode(tv["fo"]) == "Zm8");
Expand Down

0 comments on commit 130b1ac

Please sign in to comment.