Searched refs:enforce (Results 51 - 75 of 89) sorted by relevance

1234

/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/format/
H A Dpackage.d645 import std.exception : enforce;
686 package alias enforceFmt = enforce!FormatException;
1685 enforce!AssertError(formatted.canFind(input), input, fn, ln);
1691 enforce!AssertError(isClose(val, val2), input, fn, ln);
1693 enforce!AssertError(val == val2, input, fn, ln);
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/
H A Dgetopt.d422 import std.exception : enforce;
423 enforce(args.length,
870 import std.exception : enforce;
879 enforce!GetOptException(i < args.length,
953 enforce!GetOptException(j != -1, "Could not find '"
H A Dsocket.d765 enforce(x != INADDR_NONE,
963 enforce(ret == 0, new SocketOSException("getaddrinfo error", ret, &formatGaiError));
1174 enforce(in4_addr != InternetAddress.ADDR_NONE,
1296 enforce(ret == 0, new AddressException("Could not get " ~
1312 enforce(getnameinfoPointer(
1996 enforce(path.length <= sun.sun_path.sizeof, new SocketParameterException("Path too long"));
3198 enforce(option == SocketOption.SNDTIMEO || option == SocketOption.RCVTIMEO,
3286 enforce(option == SocketOption.SNDTIMEO || option == SocketOption.RCVTIMEO,
3289 enforce(value >= dur!"hnsecs"(0), new SocketParameterException(
3343 enforce(WSAIoct
[all...]
H A Drandom.d2125 import std.exception : enforce;
2145 enforce(_a <= _b,
2224 import std.exception : enforce;
2228 enforce(a < ResultType.max,
2239 enforce(lower <= b,
2257 enforce(lower < b,
2934 import std.exception : enforce;
2935 enforce(n <= r.length, "n must be <= r.length for partialShuffle.");
3084 import std.exception : enforce;
3086 enforce(su
[all...]
H A Darray.d1621 enforce(test(l, 0, r, " ���������������hello"),
1623 enforce(test(l, 3, r, "hel ���������������lo"),
1625 enforce(test(l, l.length, r, "hello ���������������"),
2891 enforce(replace(l, 0, 0, r) == " worldhello",
2893 enforce(replace(l, 0, 3, r) == " worldlo",
2895 enforce(replace(l, 3, l.length, r) == "hel world",
2897 enforce(replace(l, 0, l.length, r) == " world",
2899 enforce(replace(l, l.length, l.length, r) == "hello world",
3124 enforce(test(l, 0, 0, r, " worldhello"),
3126 enforce(tes
[all...]
H A Dvariant.d589 import std.exception : enforce;
590 enforce(0, text("Cannot apply `()' to a value of type `",
596 import std.exception : enforce;
605 enforce(t.length == argCount,
913 import std.exception : enforce;
914 enforce(false, text("Type ", type, " does not convert to ",
1220 import std.exception : enforce;
1221 enforce(false, text("Variant type ", type,
2538 * Behaves as $(LREF visit) but doesn't enforce that all types are handled
H A Dfile.d506 import std.exception : enforce;
973 import std.exception : enforce;
987 enforce(false,
1090 import std.exception : enforce;
1091 enforce(GetFileAttributesExW(namez, GET_FILEEX_INFO_LEVELS.GetFileExInfoStandard, &fad),
1102 import std.exception : enforce;
1104 enforce(GetFileAttributesExW(namez, GET_FILEEX_INFO_LEVELS.GetFileExInfoStandard, &fad),
2986 import std.exception : enforce;
3003 enforce(pathname.isDir, new FileException(pathname.idup));
3466 import std.exception : enforce;
[all...]
H A Dbigint.d75 import std.exception : enforce;
78 enforce!ConvException(!s.empty, "Can't initialize BigInt with an empty range");
112 enforce!ConvException(ok, "Not a valid numerical string");
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Dsocket.d765 enforce(x != INADDR_NONE,
956 enforce(ret == 0, new SocketOSException("getaddrinfo error", ret, &formatGaiError));
1167 enforce(in4_addr != InternetAddress.ADDR_NONE,
1289 enforce(ret == 0, new AddressException("Could not get " ~
1305 enforce(getnameinfoPointer(
1986 enforce(path.length <= sun.sun_path.sizeof, new SocketParameterException("Path too long"));
3153 enforce(option == SocketOption.SNDTIMEO || option == SocketOption.RCVTIMEO,
3241 enforce(option == SocketOption.SNDTIMEO || option == SocketOption.RCVTIMEO,
3244 enforce(value >= dur!"hnsecs"(0), new SocketParameterException(
3298 enforce(WSAIoct
[all...]
H A Dprocess.d3310 import std.exception : enforce;
3312 enforce(getImpl(name, value), "Environment variable not found: "~name);
3372 import std.exception : enforce, errnoEnforce;
3384 enforce(errno != EINVAL,
3392 import std.exception : enforce;
3393 enforce(
3502 import std.exception : enforce;
3505 enforce(envBlock, "Failed to retrieve environment variables.");
H A Dvariant.d490 import std.exception : enforce;
491 enforce(0, text("Cannot apply `()' to a value of type `",
497 import std.exception : enforce;
506 enforce(t.length == argCount,
827 import std.exception : enforce;
828 enforce(false, text("Type ", type, " does not convert to ",
1186 import std.exception : enforce;
1187 enforce(false, text("Variant type ", type,
2175 * Behaves as $(LREF visit) but doesn't enforce that all types are handled
H A Dbigint.d73 import std.exception : enforce;
76 enforce!ConvException(!s.empty, "Can't initialize BigInt with an empty range");
110 enforce!ConvException(ok, "Not a valid numerical string");
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/algorithm/
H A Dmutation.d783 import std.exception : enforce;
785 enforce(!filler.empty, "Cannot fill range with an empty filler");
1619 import std.exception : enforce;
2132 import std.exception : enforce;
2134 enforce(blackouts[i - 1].pos + blackouts[i - 1].len
2212 import std.exception : enforce;
2213 enforce(pos <= from,
2272 import std.exception : enforce;
2273 enforce(dcharIdx <= from && delta >= 0,
H A Dsorting.d978 import std.exception : enforce;
984 enforce(index.length == i);
1002 import std.exception : enforce;
1005 enforce(r.length == index.length,
1009 enforce(r.length <= size_t(1) + IndexType.max, "Cannot create an index with " ~
4118 import std.exception : enforce;
4120 enforce(ElementType!(RangeIndex).max >= index.length,
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/experimental/allocator/
H A Dpackage.d1374 import std.exception : assertThrown, enforce;
1381 enforce(1 == 2);
1391 import std.exception : assertThrown, enforce;
1398 enforce(1 == 2);
1757 import std.exception : assertThrown, enforce;
1768 enforce(1 == 2);
1778 import std.exception : assertThrown, enforce;
1790 enforce(i++ == 0);
1981 import std.exception : assertThrown, enforce;
1997 enforce(
[all...]
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/algorithm/
H A Dmutation.d752 import std.exception : enforce;
754 enforce(!filler.empty, "Cannot fill range with an empty filler");
1525 import std.exception : enforce;
1821 import std.exception : enforce;
1823 enforce(blackouts[i - 1].pos + blackouts[i - 1].len
1908 import std.exception : enforce;
1909 enforce(pos <= from,
H A Dsorting.d966 import std.exception : enforce;
972 enforce(index.length == i);
990 import std.exception : enforce;
993 enforce(r.length == index.length,
997 enforce(r.length <= size_t(1) + IndexType.max, "Cannot create an index with " ~
3777 import std.exception : enforce;
3779 enforce(ElementType!(RangeIndex).max >= index.length,
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/range/
H A Dpackage.d2179 import std.exception : enforce;
2184 enforce(equal(radial(input), witness),
4438 import std.exception : enforce;
4465 enforce(ranges[0].empty ==
4589 import std.exception : enforce;
4609 enforce(!ranges[i].empty, "Invalid Zip object");
4624 import std.exception : enforce;
4644 enforce(!ranges[i].empty, "Invalid Zip object");
5519 enforce(_stoppingPolicy == StoppingPolicy.requireSameLength,
5523 enforce(rang
[all...]
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/format/internal/
H A Dwrite.d4123 import std.exception : enforce;
4129 enforce!AssertError(expected.canFind(w.data),
4140 import std.exception : enforce;
4145 enforce!AssertError(expected.canFind(w.data),
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/range/
H A Dpackage.d1862 import std.exception : enforce;
1867 enforce(equal(radial(input), witness),
3986 import std.exception : enforce;
4013 enforce(ranges[0].empty ==
4137 import std.exception : enforce;
4157 enforce(!ranges[i].empty, "Invalid Zip object");
4172 import std.exception : enforce;
4192 enforce(!ranges[i].empty, "Invalid Zip object");
4585 enforce(_stoppingPolicy == StoppingPolicy.requireSameLength,
4589 enforce(rang
[all...]
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/datetime/
H A Ddate.d3157 import std.exception : enforce;
3164 enforce(str.length >= 15, new DateTimeException(format("Invalid ISO String: %s", isoString)));
3167 enforce(t != -1, new DateTimeException(format("Invalid ISO String: %s", isoString)));
3258 import std.exception : enforce;
3265 enforce(str.length >= 15, new DateTimeException(format("Invalid ISO Extended String: %s", isoExtString)));
3268 enforce(t != -1, new DateTimeException(format("Invalid ISO Extended String: %s", isoExtString)));
3358 import std.exception : enforce;
3365 enforce(str.length >= 15, new DateTimeException(format("Invalid string format: %s", simpleString)));
3368 enforce(t != -1, new DateTimeException(format("Invalid string format: %s", simpleString)));
7624 import std.exception : enforce;
[all...]
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/net/
H A Disemail.d69 import std.exception : enforce;
206 enforce(contextStack.length == 1, "Unexpected item on context stack");
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/net/
H A Disemail.d68 import std.exception : enforce;
201 enforce(contextStack.length == 1, "Unexpected item on context stack");
/netbsd-current/external/gpl3/gcc/dist/libphobos/src/std/regex/internal/
H A Dtests2.d367 // https://issues.dlang.org/show_bug.cgi?id=8637 purity of enforce
371 enforce(m);
/netbsd-current/external/gpl3/gcc.old/dist/libphobos/src/std/regex/
H A Dpackage.d512 import std.exception : enforce;
515 auto p = cast(Group!DataIndex*) enforce(
714 import std.exception : enforce;
717 _memory = (enforce(malloc(size), "malloc failed")[0 .. size]);
788 import std.exception : enforce;
793 _memory = (enforce(malloc(size), "malloc failed")[0 .. size]);
823 import std.exception : enforce;
828 void[] memory = enforce(malloc(size), "malloc failed")[0 .. size];
1152 import std.exception : enforce;
1178 enforce(ignoreBadSub
[all...]

Completed in 229 milliseconds

1234