Home
last modified time | relevance | path

Searched refs:enforce (Results 1 – 25 of 418) sorted by relevance

12345678910>>...17

/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/regex/internal/
H A Dparser.d165 enforce(str.length >= maxDigit,"incomplete escape sequence"); in parseUniHex()
179 enforce(val <= 0x10FFFF, "invalid codepoint"); in parseUniHex()
293 enforce(ir.length < maxCompiledLength, in put()
300 enforce(ir.length < maxCompiledLength, in putRaw()
365 enforce(groupStack.top <= maxGroupNumber, "limit on number of submatches is exceeded"); in genGroup()
376 enforce(groupStack.top <= maxGroupNumber, "limit on submatches is exceeded"); in genNamedGroup()
394 enforce(lookaroundNest <= maxLookaroundDepth, in genLookaround()
485enforce(ir.length + len < maxCompiledLength, "maximum compiled pattern length is exceeded"); in fixRepetition()
539 enforce(ir[fix].code == IR.Option, "no matching ')'"); in finishAlternation()
542 enforce(ir[fix].code == IR.OrStart, "no matching ')'"); in finishAlternation()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/regex/internal/
H A Dparser.d212 enforce(ir.length < maxCompiledLength, in put()
219 enforce(ir.length < maxCompiledLength, in putRaw()
284 enforce(groupStack.top <= maxGroupNumber, "limit on number of submatches is exceeded"); in genGroup()
295 enforce(groupStack.top <= maxGroupNumber, "limit on submatches is exceeded"); in genNamedGroup()
313 enforce(lookaroundNest <= maxLookaroundDepth, in genLookaround()
404enforce(ir.length + len < maxCompiledLength, "maximum compiled pattern length is exceeded"); in fixRepetition()
458 enforce(ir[fix].code == IR.Option, "no matching ')'"); in finishAlternation()
461 enforce(ir[fix].code == IR.OrStart, "no matching ')'"); in finishAlternation()
651 enforce(!empty, "Unexpected end of pattern"); in parseRegex()
673 enforce(front == '<', "Expected '<' in named group"); in parseRegex()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/container/
H A Darray.d259 import std.exception : enforce;
829 enforce(!empty); in removeBack()
883 enforce(r._outer._data is _data && r._a <= length);
900 enforce(r._outer._data is _data && r._a <= length);
925 enforce(_data);
927 enforce(offset <= length);
942 enforce(r._outer._data is _data); in insertAfter()
945 enforce(offset <= length); in insertAfter()
956 enforce(r._outer._data is _data);
978 enforce(r._outer._data is _data);
[all …]
H A Dslist.d58 import std.exception : enforce; in SList()
120 enforce(n); in SList()
485 enforce(!r._head); in SList()
488 enforce(r._head); in SList()
519 enforce(!r.empty); in SList()
549 enforce(!r._head); in SList()
583 enforce(_first); in SList()
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Dutf.d350 enforce(stride(s, i) == codeLength!char(c),
353 enforce(stride(RandomCU!char(s), i) == codeLength!char(c),
358 enforce(stride(refRandom, i) == codeLength!char(c),
360 enforce(refRandom.length == randLen,
365 enforce(stride(s) == codeLength!char(c),
368 enforce(stride(InputCU!char(s)) == codeLength!char(c),
373 enforce(stride(refBidir) == codeLength!char(c),
375 enforce(refBidir.length == bidirLen,
458 enforce(stride(s, i) == codeLength!wchar(c),
461 enforce(stride(RandomCU!wchar(s), i) == codeLength!wchar(c),
[all …]
H A Dstdio.d290 import std.exception : enforce;
294 enforce(file.isOpen, "ByRecord: File must be open");
304 enforce(line.empty, text("Leftover characters in record: `",
375 import std.exception : enforce;
378 _p = cast(Impl*) enforce(malloc(Impl.sizeof), "Out of memory");
510 import std.exception : enforce, errnoEnforce;
513 enforce(isOpen, "Attempting to reopen() an unopened file");
703 import std.exception : enforce;
705 enforce(_p && _p.handle, "Calling eof() against an unopened file.");
838 import std.exception : enforce, errnoEnforce;
[all …]
H A Dexception.d19 $(LREF enforce)
125 assertNotThrown!StringException(enforce!StringException(true, "Error!"));
128 assertNotThrown(enforce!StringException(true, "Error!"));
131 enforce!StringException(false, "Error!"))) ==
139 enforce!StringException(false, ""), "Error!")) ==
143 enforce!StringException(false, ""))) ==
147 enforce!StringException(false, ""), "")) ==
268 assertThrown!StringException(enforce!StringException(false, "Error!"));
271 assertThrown(enforce!StringException(false, "Error!"));
274 enforce!StringException(true, "Error!"))) ==
[all …]
H A Dbase64.d653enforce(!empty, new Base64Exception("Cannot call popFront on Encoder with no data remaining")); in popFront()
772enforce(!empty, new Base64Exception("Cannot call popFront on Encoder with no data remaining")); in popFront()
1014 enforce(srcLen % 4 == 0, new Base64Exception("Invalid length of encoded data"));
1100 enforce(srcLen % 4 == 0, new Base64Exception("Invalid length of encoded data"));
1191 enforce(srcLen % 4 == 0, new Base64Exception("Invalid length of encoded data"));
1280 enforce(srcLen % 4 == 0, new Base64Exception("Invalid length of encoded data"));
1436enforce(!empty, new Base64Exception("Cannot call popFront on Decoder with no data remaining.")); in popFront()
1531enforce(range_.length % 4 == 0, new Base64Exception("Invalid length of encoded data")); in this()
1570enforce(!empty, new Base64Exception("Cannot call popFront on Decoder with no data remaining")); in popFront()
1583 enforce(!range_.empty, new Base64Exception("Missing padding")); in popFront()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/container/
H A Darray.d394 import std.exception : enforce;
994 enforce(!empty);
1048 enforce(r._outer._data is _data && r._a <= length);
1066 enforce(r._outer._data is _data && r._a <= length);
1092 enforce(_data);
1094 enforce(offset <= length);
1111 enforce(r._outer._data is _data);
1114 enforce(offset <= length);
1125 enforce(r._outer._data is _data);
1147 enforce(r._outer._data is _data);
[all …]
H A Dslist.d59 import std.exception : enforce;
122 enforce(n); in findNode()
523 enforce(!r._head);
526 enforce(r._head);
555 enforce(!r.empty);
580 enforce(!r._head); in linearRemove()
614 enforce(_first);
H A Dbinaryheap.d71 import std.exception : enforce;
250 enforce(!empty, "Cannot call front on an empty heap.");
294 enforce(length < _store.length,
318 enforce(!empty, "Cannot call removeFront on an empty heap."); in removeFront()
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/
H A Dzip.d115 import std.exception : enforce;
355enforce!ZipException(_compressedSize == 0, "Can't change compression method for a compressed eleme… in compressionMethod()
619 enforce!ZipException(comment.length <= 0xFFFF, "archive comment longer than 65535"); in build()
627 enforce!ZipException(to!ulong(archiveSize) + localFileHeaderLength + de.name.length in build()
789enforce!ZipException(data.length <= uint.max - 2, "zip files bigger than 4 GB are unsupported"); in this()
819 enforce!ZipException(eocdOffset + zip64EndOfCentralDirLength <= _data.length, in this()
823 enforce!ZipException(_data[i .. i + 4] == zip64EndOfCentralDirSignature, in this()
827 enforce!ZipException(eocd64Size + i - 12 <= data.length, in this()
838 enforce!ZipException(numEntriesUlong <= uint.max, in this()
841 enforce!ZipException(numEntriesUlong == totalEntriesUlong, in this()
[all …]
H A Dutf.d422 enforce(stride(s, i) == codeLength!char(c),
425 enforce(stride(RandomCU!char(s), i) == codeLength!char(c),
430 enforce(stride(refRandom, i) == codeLength!char(c),
432 enforce(refRandom.length == randLen,
437 enforce(stride(s) == codeLength!char(c),
440 enforce(stride(InputCU!char(s)) == codeLength!char(c),
445 enforce(stride(refBidir) == codeLength!char(c),
447 enforce(refBidir.length == bidirLen,
532 enforce(stride(s, i) == codeLength!wchar(c),
535 enforce(stride(RandomCU!wchar(s), i) == codeLength!wchar(c),
[all …]
H A Dstdio.d415 import std.exception : enforce; in ByRecordImpl()
419 enforce(file.isOpen, "ByRecord: File must be open"); in ByRecordImpl()
429 enforce(line.empty, text("Leftover characters in record: `", in ByRecordImpl()
503 import std.exception : enforce;
506 _p = cast(Impl*) enforce(malloc(Impl.sizeof), "Out of memory");
645 import std.exception : enforce;
676 _p = cast(Impl*) enforce(malloc(Impl.sizeof), "Out of memory");
745 import std.exception : enforce, errnoEnforce;
748 enforce(isOpen, "Attempting to reopen() an unopened file");
938 import std.exception : enforce; in eof()
[all …]
H A Dexception.d20 $(LREF enforce)
58 enforce(a > 2, "a needs to be higher than 2.");
61 enforce!ConvException(a > 2, "a needs to be higher than 2.");
65 auto memory = enforce(malloc(size), "malloc failed")[0 .. size];
430 template enforce(E : Throwable = Exception) in catch()
435 T enforce(T)(T value, lazy const(char)[] msg = null, in catch()
445 T enforce(T, Dg, string file = __FILE__, size_t line = __LINE__)
455 T enforce(T)(T value, lazy Throwable ex) in enforce() function
469 enforce(a > 2, "a needs to be higher than 2.");
472 enforce!ConvException(a > 2, "a needs to be higher than 2.");
[all …]
H A Dbase64.d60 import std.exception : enforce;
642enforce(!empty, new Base64Exception("Cannot call popFront on Encoder with no data remaining")); in popFront()
760enforce(!empty, new Base64Exception("Cannot call popFront on Encoder with no data remaining")); in popFront()
1001 enforce(srcLen % 4 == 0, new Base64Exception("Invalid length of encoded data"));
1081 enforce(srcLen % 4 == 0, new Base64Exception("Invalid length of encoded data"));
1172 enforce(srcLen % 4 == 0, new Base64Exception("Invalid length of encoded data"));
1261 enforce(srcLen % 4 == 0, new Base64Exception("Invalid length of encoded data"));
1417enforce(!empty, new Base64Exception("Cannot call popFront on Decoder with no data remaining.")); in popFront()
1471 enforce(!range_.empty, new Base64Exception("Invalid length of encoded data")); in doDecoding()
1511enforce(range_.length % 4 == 0, new Base64Exception("Invalid length of encoded data")); in this()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/internal/
H A Dcstring.d25 import std.exception : enforce; in version()
28 { enforce(setenv(name.tempCString(), value.tempCString(), 1) != -1); } in version()
34 import std.exception : enforce; in version()
37 { enforce(SetEnvironmentVariableW(name.tempCStringW(), value.tempCStringW())); } in version()
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/internal/
H A Dcstring.d25 import std.exception : enforce; in version()
28 { enforce(setenv(name.tempCString(), value.tempCString(), 1) != -1); } in version()
34 import std.exception : enforce; in version()
37 { enforce(SetEnvironmentVariableW(name.tempCStringW(), value.tempCStringW())); } in version()
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/windows/
H A Dregistry.d92 enforce(false, new Win32Exception(message)));
103 enforce(false, new Win32Exception(message, code)));
148 enforce(false, new RegistryException(message, code)));
159 enforce(false, new RegistryException(message)));
547 enforce(type == reqType,
610 enforce(type == REG_VALUE_TYPE.REG_MULTI_SZ,
612 enforce(type == reqType,
643 enforce(type == reqType,
679 enforce(type == reqType,
712 enforce(type == reqType,
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/windows/
H A Dregistry.d92 enforce(false, new Win32Exception(message)));
103 enforce(false, new Win32Exception(message, code)));
148 enforce(false, new RegistryException(message, code)));
159 enforce(false, new RegistryException(message)));
547 enforce(type == reqType,
610 enforce(type == REG_VALUE_TYPE.REG_MULTI_SZ,
612 enforce(type == reqType,
643 enforce(type == reqType,
679 enforce(type == reqType,
712 enforce(type == reqType,
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/net/
H A Dcurl.d805 import std.exception : enforce;
810 enforce!CurlException(t[0].length > minDomainNameLength,
814 enforce!CurlException(!t[1].empty,
1028 import std.exception : enforce; in _basicHTTP()
1097 enforce(statusLine.code / 100 == 2, new HTTPStatusException(statusLine.code, in _basicHTTP()
1228 import std.exception : enforce; in _decodeContent()
1237 enforce!CurlException(scheme !is null, in _decodeContent()
1241 enforce!CurlException(strInfo[0] != size_t.max, in _decodeContent()
1334 import std.exception : enforce; in front()
1335 enforce!CurlException(currentValid, "Cannot call front() on empty range"); in front()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/experimental/allocator/building_blocks/
H A Dfree_list.d32 import std.exception : enforce;
759 import std.exception : enforce;
786 enforce(x <= max); in min()
787 enforce(cas(&_min, chooseAtRuntime, x), in min()
796 enforce(low <= high && high >= (void*).sizeof); in setBounds()
797 enforce(cas(&_min, chooseAtRuntime, low), in setBounds()
799 enforce(cas(&_max, chooseAtRuntime, high), in setBounds()
822 enforce(x >= min && x >= (void*).sizeof); in max()
823 enforce(cas(&_max, chooseAtRuntime, x), in max()
850 @property void approxMaxLength(size_t x) shared { _approxMaxLength = enforce(x); } in approxMaxLength()
/netbsd-src/external/gpl3/gcc/dist/libcody/cmake/
H A Dlibcody-config-ix.cmake17 check_cxx_compiler_flag(-fno-enforce-eh-specs LIBCODY_HAS_NOENFORCE)
27 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-enforce-eh-specs")
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/datetime/
H A Dtimezone.d394 import std.exception : enforce;
400 enforce(st.hour == hour,
414 enforce(st.dstInEffect == dstInEffect, msg("1"));
415 enforce(st.utcOffset == offset, msg("2"));
416 enforce((st + dur!"minutes"(1)).utcOffset == offset, msg("3"));
470 import std.exception : enforce;
471 enforce((utc + offset).hour == local.hour, msg("1"));
472 enforce((utc + offset + dur!"minutes"(1)).hour == local.hour, msg("2"));
2075 import std.exception : enforce;
2082enforce(tzDatabaseDir.exists(), new DateTimeException(format("Directory %s does not exist.", tzDat…
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/experimental/allocator/building_blocks/
H A Dfree_list.d37 import std.exception : enforce;
865 import std.exception : enforce;
897 enforce(x <= max); in min()
898 enforce(cas(&_min, chooseAtRuntime, x), in min()
907 enforce(low <= high && high >= (void*).sizeof); in setBounds()
908 enforce(cas(&_min, chooseAtRuntime, low), in setBounds()
910 enforce(cas(&_max, chooseAtRuntime, high), in setBounds()
933 enforce(x >= min && x >= (void*).sizeof); in max()
934 enforce(cas(&_max, chooseAtRuntime, x), in max()
961 @property void approxMaxLength(size_t x) shared { _approxMaxLength = enforce(x); } in approxMaxLength()

12345678910>>...17