Skip to content

Commit

Permalink
Added proper indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
RazvanN7 committed Dec 6, 2016
1 parent 5498a70 commit 050781d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions std/format.d
Original file line number Diff line number Diff line change
Expand Up @@ -4361,6 +4361,10 @@ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec)
return parse!T(input);
}

/**
* Function that performs raw reading. Used by unformatValue
* for integral and float types.
*/
private T rawRead(T, Range)(ref Range input)
if (is(Unqual!(ElementEncodingType!Range) == char)
|| is(Unqual!(ElementEncodingType!Range) == byte)
Expand Down Expand Up @@ -4404,7 +4408,7 @@ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec)
static if (is(Unqual!(ElementEncodingType!Range) == char)
|| is(Unqual!(ElementEncodingType!Range) == byte)
|| is(Unqual!(ElementEncodingType!Range) == ubyte))
return rawRead!T(input);
return rawRead!T(input);
else
throw new Exception("The raw read specifier %r may only be used with narrow strings and ranges of bytes.");
}
Expand Down Expand Up @@ -4454,7 +4458,7 @@ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec)
static if (is(Unqual!(ElementEncodingType!Range) == char)
|| is(Unqual!(ElementEncodingType!Range) == byte)
|| is(Unqual!(ElementEncodingType!Range) == ubyte))
return rawRead!T(input);
return rawRead!T(input);
else
throw new Exception("The raw read specifier %r may only be used with narrow strings and ranges of bytes.");
}
Expand Down

0 comments on commit 050781d

Please sign in to comment.