| /netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/algorithm/ |
| H A D | setops.d | 136 import std.algorithm.searching : canFind; 144 assert(canFind(N2, tuple(0, 0))); 145 assert(canFind(N2, tuple(123, 321))); 146 assert(canFind(N2, tuple(11, 35))); 147 assert(canFind(N2, tuple(279, 172))); 153 import std.algorithm.searching : canFind; 163 assert(canFind(BC, tuple(n[0], n[1]))); 170 import std.algorithm.searching : canFind; 181 assert(canFind(EvenOdd, tuple(pair[0], pair[1]))); 185 assert(canFind(EvenOdd, tuple(124, 73))); [all …]
|
| H A D | searching.d | 2478 template canFind(alias pred="a == b") 2487 bool canFind(Range)(Range haystack) 2497 bool canFind(Range, Element)(Range haystack, scope Element needle) 2514 size_t canFind(Range, Ranges...)(Range haystack, scope Ranges needles) 2526 assert(canFind([0, 1, 2, 3], 2) == true); 2527 assert(canFind([0, 1, 2, 3], [1, 2], [2, 3])); 2528 assert(canFind([0, 1, 2, 3], [1, 2], [2, 3]) == 1); 2529 assert(canFind([0, 1, 2, 3], [1, 7], [2, 3])); 2530 assert(canFind([0, 1, 2, 3], [1, 7], [2, 3]) == 2); 2532 assert(canFind([0, 1, 2, 3], 4) == false); [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/algorithm/ |
| H A D | setops.d | 134 import std.algorithm.searching : canFind; 142 assert(canFind(N2, tuple(0, 0))); 143 assert(canFind(N2, tuple(123, 321))); 144 assert(canFind(N2, tuple(11, 35))); 145 assert(canFind(N2, tuple(279, 172))); 151 import std.algorithm.searching : canFind; 161 assert(canFind(BC, tuple(n[0], n[1]))); 168 import std.algorithm.searching : canFind; 179 assert(canFind(EvenOdd, tuple(pair[0], pair[1]))); 183 assert(canFind(EvenOdd, tuple(124, 73))); [all …]
|
| H A D | searching.d | 2518 template canFind(alias pred="a == b") 2525 bool canFind(Range)(Range haystack) 2535 bool canFind(Range, Element)(Range haystack, scope Element needle) 2552 size_t canFind(Range, Ranges...)(Range haystack, scope Ranges needles) 2564 assert(canFind([0, 1, 2, 3], 2) == true); 2565 assert(canFind([0, 1, 2, 3], [1, 2], [2, 3])); 2566 assert(canFind([0, 1, 2, 3], [1, 2], [2, 3]) == 1); 2567 assert(canFind([0, 1, 2, 3], [1, 7], [2, 3])); 2568 assert(canFind([0, 1, 2, 3], [1, 7], [2, 3]) == 2); 2570 assert(canFind([0, 1, 2, 3], 4) == false); [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/net/ |
| H A D | curl.d | 254 import std.algorithm.searching : find, canFind; in version() 278 if (hdrs.asUpperCase.canFind("EXPECT: 100-CONTINUE")) in version() 435 import std.algorithm.searching : canFind; 441 assert(s.recvReq.hdrs.canFind("GET /")); 505 import std.algorithm.searching : canFind; 519 assert(req.hdrs.canFind("PUT /path")); 520 assert(req.bdy.canFind("upload data")); 579 import std.algorithm.searching : canFind; 584 assert(s.recvReq.hdrs.canFind("GET /path")); 632 import std.algorithm.searching : canFind; [all …]
|
| H A D | isemail.d | 66 import std.algorithm.searching : canFind, maxElement; 253 if (c < '!' || c > '~' || c == '\n' || Token.specials.canFind(token)) 372 if (c < '!' || c > '~' || Token.specials.canFind(token))
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/net/ |
| H A D | curl.d | 269 import std.algorithm.searching : find, canFind; in version() 293 if (hdrs.asUpperCase.canFind("EXPECT: 100-CONTINUE")) in version() 450 import std.algorithm.searching : canFind; 456 assert(s.recvReq.hdrs.canFind("GET /")); 520 import std.algorithm.searching : canFind; 534 assert(req.hdrs.canFind("PUT /path")); 535 assert(req.bdy.canFind("upload data")); 594 import std.algorithm.searching : canFind; 599 assert(s.recvReq.hdrs.canFind("GET /path")); 647 import std.algorithm.searching : canFind; [all …]
|
| H A D | isemail.d | 65 import std.algorithm.searching : canFind, maxElement; 248 if (c < '!' || c > '~' || c == '\n' || Token.specials.canFind(token)) 367 if (c < '!' || c > '~' || Token.specials.canFind(token))
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/ |
| H A D | process.d | 1584 import std.algorithm.searching : canFind, findSplitBefore; 1632 assert(!procRes.output.split.canFind(fdStr)); 1634 .output.split.canFind(fdStr)); 1644 assert(!reverseArgs!canFind(fuserRes 1646 assert(reverseArgs!canFind(execute(fuser.path, null, Config.inheritFDs) 1656 assert(!lsofRes.output.canFind(path)); 1658 if (!lsofOut.canFind(path)) 1786 import std.algorithm.searching : canFind; 1791 assert(collectExceptionMsg!ProcessException(spawnProcess(program)).canFind(program)); 1792 …llectExceptionMsg!ProcessException(spawnProcess(program, null, Config.detached)).canFind(program));
|
| H A D | random.d | 2792 import std.algorithm.searching : canFind; 2812 assert(canFind!((ref MyTestClass a, ref MyTestClass b) => a.x == b.x)(testClass, elem), 2819 import std.algorithm.searching : canFind; 2824 assert(array.map!((ref e) => &e).canFind(elemAddr), 2826 assert(array.canFind(*(cast(int *)(elemAddr))),
|
| H A D | json.d | 1685 import std.algorithm.searching : canFind; 1694 if (!result.canFind('e') && !result.canFind('.'))
|
| H A D | sumtype.d | 2064 import std.algorithm.searching : canFind; 2069 static assert(matches[].canFind(hid),
|
| H A D | string.d | 1638 import std.algorithm.searching : canFind, findAmong; 1652 if (!canFind(needles, hay)) 1675 if (!canFind(needles, hay)) 1699 if (canFind(scratch[0 .. si], toLower(c)) == any) 1709 if (canFind(scratch[0 .. si], toLower(c)) == any) 1727 if (canFind!f(needles, toLower(c)) == any) 1737 if (canFind!f(needles, toLower(c)) == any)
|
| /netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/ |
| H A D | random.d | 2014 import std.algorithm.searching : canFind; 2019 assert(canFind(array, elem), 2025 assert(canFind(array, elem), 2031 import std.algorithm.searching : canFind; 2051 assert(canFind!((ref MyTestClass a, ref MyTestClass b) => a.x == b.x)(testClass, elem), 2058 import std.algorithm.searching : canFind; 2063 assert(array.map!((ref e) => &e).canFind(elemAddr), 2065 assert(array.canFind(*(cast(int *)(elemAddr))),
|
| H A D | process.d | 967 import std.algorithm.searching : canFind, findSplitBefore; 998 assert(!procRes.output.split.canFind(fdStr)); 1000 .output.split.canFind(fdStr)); 1010 assert(!reverseArgs!canFind(fuserRes 1012 assert(reverseArgs!canFind(execute(fuser.path, null, Config.inheritFDs) 1022 assert(!lsofRes.output.canFind(path)); 1023 assert(execute(lsof.path, null, Config.inheritFDs).output.canFind(path));
|
| H A D | string.d | 1417 import std.algorithm.searching : canFind, findAmong; 1431 if (!canFind(needles, hay)) 1454 if (!canFind(needles, hay)) 1478 if (canFind(scratch[0 .. si], toLower(c)) == any) 1488 if (canFind(scratch[0 .. si], toLower(c)) == any) 1506 if (canFind!f(needles, toLower(c)) == any) 1516 if (canFind!f(needles, toLower(c)) == any)
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/regex/internal/ |
| H A D | parser.d | 17 import std.algorithm.searching : canFind; in makeRegex() 35 else if (re.backrefed.canFind!"a != 0") in makeRegex() 203 import std.algorithm.searching : canFind; in isOpenGroup() 207 canFind!(fix => ir[fix].code == IR.GroupStart && ir[fix].data == n)(); in isOpenGroup()
|
| H A D | ir.d | 551 import std.algorithm.searching : canFind; in defaultFactoryImpl() 554 if (re.backrefed.canFind!"a != 0") in defaultFactoryImpl()
|
| H A D | tests2.d | 691 assert(e.msg.canFind("no operand for '^'"), e.msg);
|
| /netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/regex/internal/ |
| H A D | parser.d | 186 import std.algorithm.searching : canFind; 192 .canFind("invalid escape sequence")); 197 .canFind("invalid codepoint")); 284 import std.algorithm.searching : canFind; in isOpenGroup() 288 canFind!(fix => ir[fix].code == IR.GroupStart && ir[fix].data == n)(); in isOpenGroup()
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/format/ |
| H A D | spec.d | 800 import std.algorithm.searching : canFind, findSplitBefore; 819 assert(res.canFind("address"));
|
| H A D | package.d | 1676 import std.algorithm.searching : canFind; in version() 1685 enforce!AssertError(formatted.canFind(input), input, fn, ln); in version()
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/ |
| H A D | atomic.d | 740 static bool canFind(string[] haystack, string needle) in canFind() function 748 while (canFind(fieldNames, name)) name ~= "_";
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/format/internal/ |
| H A D | write.d | 4120 import std.algorithm.searching : canFind; 4129 enforce!AssertError(expected.canFind(w.data), 4137 import std.algorithm.searching : canFind; 4145 enforce!AssertError(expected.canFind(w.data),
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/uni/ |
| H A D | package.d | 6201 import std.algorithm.searching : canFind; 6208 .canFind("invalid escape sequence")); 6213 .canFind("invalid codepoint")); 8211 import std.algorithm.searching : canFind; 8217 assert(r.canFind('э') && r.canFind('Э')); 8223 assert(sr.canFind('å') && sr.canFind('Å') && sr.canFind('\u212B'));
|