Home
last modified time | relevance | path

Searched refs:unformatValue (Results 1 – 3 of 3) sorted by relevance

/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/format/
H A Dread.d55 assert(str.unformatValue!bool(spec) == false);
59 assert(str.unformatValue!bool(spec) == true);
69 assert(str.unformatValue!(typeof(null))(spec) == null);
80 assert(str.unformatValue!int(spec) == 123);
85 assert(str.unformatValue!int(spec) == 2748);
90 assert(str.unformatValue!int(spec) == 5000);
95 auto result = str.unformatValue!short(spec);
108 assert(str.unformatValue!double(spec).isClose(123.456));
113 assert(str.unformatValue!double(spec).isClose(1e17));
118 auto result = str.unformatValue!float(spec);
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/format/internal/
H A Dread.d63 import std.format : enforceFmt, unformatValue;
70 return unformatValue!long(input, spec) != 0;
152 import std.format : enforceFmt, unformatValue;
165 return unformatValue!ubyte(input, spec);
167 return unformatValue!ushort(input, spec);
169 return unformatValue!uint(input, spec);
374 import std.format.read : unformatValue;
391 return unformatValue!T(input, spec);
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Dformat.d688 (*args[0])[i] = unformatValue!(T)(r, spec); in formattedRead()
690 args[0][i] = unformatValue!(T)(r, spec); in formattedRead()
697 *args[0] = unformatValue!(A)(r, spec); in formattedRead()
699 args[0] = unformatValue!(A)(r, spec); in formattedRead()
4840 T unformatValue(T, Range, Char)(ref Range input, const ref FormatSpec!Char spec)
4850 assert(unformatValue!bool(str, spec) == false);
4854 assert(unformatValue!bool(str, spec));
4862 assert(str.unformatValue!(typeof(null))(spec) == null);
4870 assert(str.unformatValue!int(spec) == 123);
4874 assert(str.unformatValue!int(spec) == 2748);
[all …]