@@ -4361,6 +4361,10 @@ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec)
4361
4361
return parse! T(input);
4362
4362
}
4363
4363
4364
+ /**
4365
+ * Function that performs raw reading. Used by unformatValue
4366
+ * for integral and float types.
4367
+ */
4364
4368
private T rawRead (T, Range )(ref Range input)
4365
4369
if (is (Unqual! (ElementEncodingType! Range ) == char )
4366
4370
|| is (Unqual! (ElementEncodingType! Range ) == byte )
@@ -4404,7 +4408,7 @@ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec)
4404
4408
static if (is (Unqual! (ElementEncodingType! Range ) == char )
4405
4409
|| is (Unqual! (ElementEncodingType! Range ) == byte )
4406
4410
|| is (Unqual! (ElementEncodingType! Range ) == ubyte ))
4407
- return rawRead! T(input);
4411
+ return rawRead! T(input);
4408
4412
else
4409
4413
throw new Exception (" The raw read specifier %r may only be used with narrow strings and ranges of bytes." );
4410
4414
}
@@ -4454,7 +4458,7 @@ T unformatValue(T, Range, Char)(ref Range input, ref FormatSpec!Char spec)
4454
4458
static if (is (Unqual! (ElementEncodingType! Range ) == char )
4455
4459
|| is (Unqual! (ElementEncodingType! Range ) == byte )
4456
4460
|| is (Unqual! (ElementEncodingType! Range ) == ubyte ))
4457
- return rawRead! T(input);
4461
+ return rawRead! T(input);
4458
4462
else
4459
4463
throw new Exception (" The raw read specifier %r may only be used with narrow strings and ranges of bytes." );
4460
4464
}
0 commit comments