Home
last modified time | relevance | path

Searched refs:strict (Results 1 - 25 of 503) sorted by relevance

12345678910>>...21

/third_party/python/Lib/
H A Dmimetypes.py5 guess_type(url, strict=True) -- guess the MIME type and encoding of a URL.
7 guess_extension(type, strict=True) -- guess the extension for a given MIME type.
72 def __init__(self, filenames=(), strict=True):
77 self.types_map = ({}, {}) # dict for (non-strict, strict)
84 self.read(name, strict)
86 def add_type(self, type, ext, strict=True):
94 If strict is true, information will be added to
98 self.types_map[strict][ext] = type
99 exts = self.types_map_inv[strict]
[all...]
/third_party/ltp/lib/
H A Dtst_netdevice.c101 int tst_create_veth_pair(const char *file, const int lineno, int strict, in tst_create_veth_pair() argument
151 if (strict && !ret) { in tst_create_veth_pair()
160 int tst_netdev_add_device(const char *file, const int lineno, int strict, in tst_netdev_add_device() argument
195 if (strict && !ret) { in tst_netdev_add_device()
204 int tst_netdev_remove_device(const char *file, const int lineno, int strict, in tst_netdev_remove_device() argument
230 if (strict && !ret) { in tst_netdev_remove_device()
239 static int modify_address(const char *file, const int lineno, int strict, in modify_address() argument
280 if (strict && !ret) { in modify_address()
289 int tst_netdev_add_address(const char *file, const int lineno, int strict, in tst_netdev_add_address() argument
293 return modify_address(file, lineno, strict, RTM_NEWADD in tst_netdev_add_address()
298 tst_netdev_add_address_inet(const char *file, const int lineno, int strict, const char *ifname, in_addr_t address, unsigned int prefix, unsigned int flags) tst_netdev_add_address_inet() argument
306 tst_netdev_remove_address(const char *file, const int lineno, int strict, const char *ifname, unsigned int family, const void *address, size_t addrlen) tst_netdev_remove_address() argument
314 tst_netdev_remove_address_inet(const char *file, const int lineno, int strict, const char *ifname, in_addr_t address) tst_netdev_remove_address_inet() argument
321 change_ns(const char *file, const int lineno, int strict, const char *ifname, unsigned short attr, uint32_t value) change_ns() argument
362 tst_netdev_change_ns_fd(const char *file, const int lineno, int strict, const char *ifname, int nsfd) tst_netdev_change_ns_fd() argument
368 tst_netdev_change_ns_pid(const char *file, const int lineno, int strict, const char *ifname, pid_t nspid) tst_netdev_change_ns_pid() argument
374 modify_route(const char *file, const int lineno, int strict, unsigned int action, unsigned int flags, const char *ifname, unsigned int family, const void *srcaddr, unsigned int srcprefix, size_t srclen, const void *dstaddr, unsigned int dstprefix, size_t dstlen, const void *gateway, size_t gatewaylen) modify_route() argument
457 modify_route_inet(const char *file, const int lineno, int strict, unsigned int action, unsigned int flags, const char *ifname, in_addr_t srcaddr, unsigned int srcprefix, in_addr_t dstaddr, unsigned int dstprefix, in_addr_t gateway) modify_route_inet() argument
485 tst_netdev_add_route(const char *file, const int lineno, int strict, const char *ifname, unsigned int family, const void *srcaddr, unsigned int srcprefix, size_t srclen, const void *dstaddr, unsigned int dstprefix, size_t dstlen, const void *gateway, size_t gatewaylen) tst_netdev_add_route() argument
496 tst_netdev_add_route_inet(const char *file, const int lineno, int strict, const char *ifname, in_addr_t srcaddr, unsigned int srcprefix, in_addr_t dstaddr, unsigned int dstprefix, in_addr_t gateway) tst_netdev_add_route_inet() argument
505 tst_netdev_remove_route(const char *file, const int lineno, int strict, const char *ifname, unsigned int family, const void *srcaddr, unsigned int srcprefix, size_t srclen, const void *dstaddr, unsigned int dstprefix, size_t dstlen, const void *gateway, size_t gatewaylen) tst_netdev_remove_route() argument
516 tst_netdev_remove_route_inet(const char *file, const int lineno, int strict, const char *ifname, in_addr_t srcaddr, unsigned int srcprefix, in_addr_t dstaddr, unsigned int dstprefix, in_addr_t gateway) tst_netdev_remove_route_inet() argument
525 modify_qdisc(const char *file, const int lineno, int strict, const char *object, unsigned int action, unsigned int nl_flags, const char *ifname, unsigned int family, unsigned int parent, unsigned int handle, unsigned int info, const char *qd_kind, const struct tst_rtnl_attr_list *config) modify_qdisc() argument
584 tst_netdev_add_qdisc(const char *file, const int lineno, int strict, const char *ifname, unsigned int family, unsigned int parent, unsigned int handle, const char *qd_kind, const struct tst_rtnl_attr_list *config) tst_netdev_add_qdisc() argument
594 tst_netdev_remove_qdisc(const char *file, const int lineno, int strict, const char *ifname, unsigned int family, unsigned int parent, unsigned int handle, const char *qd_kind) tst_netdev_remove_qdisc() argument
603 tst_netdev_add_traffic_class(const char *file, const int lineno, int strict, const char *ifname, unsigned int parent, unsigned int handle, const char *qd_kind, const struct tst_rtnl_attr_list *config) tst_netdev_add_traffic_class() argument
613 tst_netdev_remove_traffic_class(const char *file, const int lineno, int strict, const char *ifname, unsigned int parent, unsigned int handle, const char *qd_kind) tst_netdev_remove_traffic_class() argument
622 tst_netdev_add_traffic_filter(const char *file, const int lineno, int strict, const char *ifname, unsigned int parent, unsigned int handle, unsigned int protocol, unsigned int priority, const char *f_kind, const struct tst_rtnl_attr_list *config) tst_netdev_add_traffic_filter() argument
633 tst_netdev_remove_traffic_filter(const char *file, const int lineno, int strict, const char *ifname, unsigned int parent, unsigned int handle, unsigned int protocol, unsigned int priority, const char *f_kind) tst_netdev_remove_traffic_filter() argument
[all...]
/third_party/node/lib/internal/util/
H A Dcomparisons.js1 'use strict';
130 // For strict comparison, objects should have
134 function innerDeepEqual(val1, val2, strict, memos) {
139 return strict ? ObjectIs(val1, val2) : true;
143 if (strict) {
178 const filter = strict ? ONLY_ENUMERABLE : ONLY_ENUMERABLE | SKIP_SYMBOLS;
184 return keyCheck(val1, val2, strict, memos, kIsArray, keys1);
186 return keyCheck(val1, val2, strict, memos, kNoIterator);
209 if (!strict && (isFloat32Array(val1) || isFloat64Array(val1))) {
219 const filter = strict
[all...]
/third_party/ltp/include/
H A Dtst_netdevice.h23 int tst_create_veth_pair(const char *file, const int lineno, int strict,
28 int tst_netdev_add_device(const char *file, const int lineno, int strict,
33 int tst_netdev_remove_device(const char *file, const int lineno, int strict,
38 int tst_netdev_add_address(const char *file, const int lineno, int strict,
45 int tst_netdev_add_address_inet(const char *file, const int lineno, int strict,
52 int tst_netdev_remove_address(const char *file, const int lineno, int strict,
60 int strict, const char *ifname, in_addr_t address);
65 int tst_netdev_change_ns_fd(const char *file, const int lineno, int strict,
70 int tst_netdev_change_ns_pid(const char *file, const int lineno, int strict,
79 int tst_netdev_add_route(const char *file, const int lineno, int strict,
[all...]
/third_party/gn/src/base/third_party/icu/
H A Dicu_utf.cc33 static UChar32 errorValue(int32_t count, int8_t strict) { in errorValue() argument
34 if (strict >= 0) { in errorValue()
36 } else if (strict == -3) { in errorValue()
49 * The "strict" parameter controls the error behavior:
59 * sequence. >0 Obsolete "strict" behavior of UTF8_NEXT_CHAR_SAFE(...,
69 UBool strict) { in utf8_nextCharSafeBody()
86 // strict: forbid non-characters like U+fffe in utf8_nextCharSafeBody()
87 if (strict <= 0 || !CBU_IS_UNICODE_NONCHAR(c)) { in utf8_nextCharSafeBody()
94 if (strict != -2) { in utf8_nextCharSafeBody()
100 // strict in utf8_nextCharSafeBody()
65 utf8_nextCharSafeBody(const uint8_t* s, int32_t* pi, int32_t length, UChar32 c, UBool strict) utf8_nextCharSafeBody() argument
[all...]
/third_party/node/benchmark/assert/
H A Ddeepequal-set.js1 'use strict';
10 strict: [0, 1],
33 function main({ n, len, method, strict }) {
39 benchmark(strict ? deepStrictEqual : deepEqual, n, values);
44 benchmark(strict ? deepStrictEqual : deepEqual, n, values);
51 benchmark(strict ? deepStrictEqual : deepEqual, n, values);
58 benchmark(strict ? notDeepStrictEqual : notDeepEqual, n, values, values2);
65 benchmark(strict ? notDeepStrictEqual : notDeepEqual, n, values, values2);
74 benchmark(strict ? notDeepStrictEqual : notDeepEqual, n, values, values2);
H A Ddeepequal-prims-and-objs-big-array-set.js1 'use strict';
18 strict: [0, 1],
35 function main({ n, len, primitive, method, strict }) {
56 run(strict ? deepStrictEqual : deepEqual, n, actual, expected);
59 run(strict ? notDeepStrictEqual : notDeepEqual, n, actual, expectedWrong);
62 run(strict ? deepStrictEqual : deepEqual, n, actualSet, expectedSet);
65 run(strict ? notDeepStrictEqual : notDeepEqual,
H A Ddeepequal-map.js1 'use strict';
10 strict: [0, 1],
33 function main({ n, len, method, strict }) {
39 benchmark(strict ? deepStrictEqual : deepEqual, n, values);
44 benchmark(strict ? deepStrictEqual : deepEqual, n, values);
51 benchmark(strict ? deepStrictEqual : deepEqual, n, values);
58 benchmark(strict ? notDeepStrictEqual : notDeepEqual, n, values, values2);
65 benchmark(strict ? notDeepStrictEqual : notDeepEqual, n, values, values2);
74 benchmark(strict ? notDeepStrictEqual : notDeepEqual, n, values, values2);
/third_party/icu/icu4c/source/common/
H A Dutf_impl.cpp96 errorValue(int32_t count, int8_t strict) { in errorValue() argument
97 if(strict>=0) { in errorValue()
99 } else if(strict==-3) { in errorValue()
112 * The "strict" parameter controls the error behavior:
124 * >0 Obsolete "strict" behavior of UTF8_NEXT_CHAR_SAFE(..., true):
131 utf8_nextCharSafeBody(const uint8_t *s, int32_t *pi, int32_t length, UChar32 c, UBool strict) { in utf8_nextCharSafeBody() argument
147 // strict: forbid non-characters like U+fffe in utf8_nextCharSafeBody()
148 if(strict<=0 || !U_IS_UNICODE_NONCHAR(c)) { in utf8_nextCharSafeBody()
155 if(strict!=-2) { in utf8_nextCharSafeBody()
161 // strict in utf8_nextCharSafeBody()
236 utf8_prevCharSafeBody(const uint8_t *s, int32_t start, int32_t *pi, UChar32 c, UBool strict) utf8_prevCharSafeBody() argument
[all...]
/third_party/node/deps/icu-small/source/common/
H A Dutf_impl.cpp96 errorValue(int32_t count, int8_t strict) { in errorValue() argument
97 if(strict>=0) { in errorValue()
99 } else if(strict==-3) { in errorValue()
112 * The "strict" parameter controls the error behavior:
124 * >0 Obsolete "strict" behavior of UTF8_NEXT_CHAR_SAFE(..., true):
131 utf8_nextCharSafeBody(const uint8_t *s, int32_t *pi, int32_t length, UChar32 c, UBool strict) { in utf8_nextCharSafeBody() argument
147 // strict: forbid non-characters like U+fffe in utf8_nextCharSafeBody()
148 if(strict<=0 || !U_IS_UNICODE_NONCHAR(c)) { in utf8_nextCharSafeBody()
155 if(strict!=-2) { in utf8_nextCharSafeBody()
161 // strict in utf8_nextCharSafeBody()
236 utf8_prevCharSafeBody(const uint8_t *s, int32_t start, int32_t *pi, UChar32 c, UBool strict) utf8_prevCharSafeBody() argument
[all...]
/third_party/skia/third_party/externals/icu/source/common/
H A Dutf_impl.cpp96 errorValue(int32_t count, int8_t strict) { in errorValue() argument
97 if(strict>=0) { in errorValue()
99 } else if(strict==-3) { in errorValue()
112 * The "strict" parameter controls the error behavior:
124 * >0 Obsolete "strict" behavior of UTF8_NEXT_CHAR_SAFE(..., TRUE):
131 utf8_nextCharSafeBody(const uint8_t *s, int32_t *pi, int32_t length, UChar32 c, UBool strict) { in utf8_nextCharSafeBody() argument
147 // strict: forbid non-characters like U+fffe in utf8_nextCharSafeBody()
148 if(strict<=0 || !U_IS_UNICODE_NONCHAR(c)) { in utf8_nextCharSafeBody()
155 if(strict!=-2) { in utf8_nextCharSafeBody()
161 // strict in utf8_nextCharSafeBody()
236 utf8_prevCharSafeBody(const uint8_t *s, int32_t start, int32_t *pi, UChar32 c, UBool strict) utf8_prevCharSafeBody() argument
[all...]
/kernel/linux/linux-5.10/net/netfilter/
H A Dxt_policy.c57 int strict = info->flags & XT_POLICY_MATCH_STRICT; in match_policy_in() local
62 if (strict && info->len != sp->len) in match_policy_in()
66 pos = strict ? i - sp->len + 1 : 0; in match_policy_in()
72 if (!strict) in match_policy_in()
74 } else if (strict) in match_policy_in()
78 return strict ? 1 : 0; in match_policy_in()
87 int strict = info->flags & XT_POLICY_MATCH_STRICT; in match_policy_out() local
95 pos = strict ? i : 0; in match_policy_out()
101 if (!strict) in match_policy_out()
103 } else if (strict) in match_policy_out()
[all...]
/kernel/linux/linux-6.6/net/netfilter/
H A Dxt_policy.c57 int strict = info->flags & XT_POLICY_MATCH_STRICT; in match_policy_in() local
62 if (strict && info->len != sp->len) in match_policy_in()
66 pos = strict ? i - sp->len + 1 : 0; in match_policy_in()
72 if (!strict) in match_policy_in()
74 } else if (strict) in match_policy_in()
78 return strict ? 1 : 0; in match_policy_in()
87 int strict = info->flags & XT_POLICY_MATCH_STRICT; in match_policy_out() local
95 pos = strict ? i : 0; in match_policy_out()
101 if (!strict) in match_policy_out()
103 } else if (strict) in match_policy_out()
[all...]
/third_party/node/deps/npm/node_modules/normalize-package-data/lib/
H A Dnormalize.js20 function normalize (data, warn, strict) {
23 strict = true
25 if (!strict) {
26 strict = false
41 fixer['fix' + ucFirst(thingName)](data, strict)
/third_party/icu/icu4c/source/common/unicode/
H A Dutf_old.h33 * - Switch on UTF_SAFE etc. (selection of unsafe/safe/strict default string processing)
53 * for string processing, and among unsafe/safe/strict default macros for that.
58 * and the main reason for the "strict" versions disappeared:
60 * The only other conditions that "strict" checked for were non-characters,
112 * parameter "strict". If strict is false, then only illegal sequences are detected.
124 * the safe/not strict (default) or the safe/strict macro;
127 * <p>It is possible to change the default choice for the general alias macros to be unsafe, safe/not strict or safe/strict
[all...]
/third_party/node/deps/icu-small/source/common/unicode/
H A Dutf_old.h33 * - Switch on UTF_SAFE etc. (selection of unsafe/safe/strict default string processing)
53 * for string processing, and among unsafe/safe/strict default macros for that.
58 * and the main reason for the "strict" versions disappeared:
60 * The only other conditions that "strict" checked for were non-characters,
112 * parameter "strict". If strict is false, then only illegal sequences are detected.
124 * the safe/not strict (default) or the safe/strict macro;
127 * <p>It is possible to change the default choice for the general alias macros to be unsafe, safe/not strict or safe/strict
[all...]
/third_party/skia/third_party/externals/icu/source/common/unicode/
H A Dutf_old.h33 * - Switch on UTF_SAFE etc. (selection of unsafe/safe/strict default string processing)
53 * for string processing, and among unsafe/safe/strict default macros for that.
58 * and the main reason for the "strict" versions disappeared:
60 * The only other conditions that "strict" checked for were non-characters,
112 * parameter "strict". If strict is false, then only illegal sequences are detected.
124 * the safe/not strict (default) or the safe/strict macro;
127 * <p>It is possible to change the default choice for the general alias macros to be unsafe, safe/not strict or safe/strict
[all...]
/third_party/python/Lib/test/
H A Dtest_mimetypes.py96 # First try strict
97 eq(self.db.guess_type('foo.xul', strict=True), (None, None))
98 eq(self.db.guess_extension('image/jpg', strict=True), None)
99 eq(self.db.guess_extension('image/webp', strict=True), None)
100 # And then non-strict
101 eq(self.db.guess_type('foo.xul', strict=False), ('text/xul', None))
102 eq(self.db.guess_type('foo.XUL', strict=False), ('text/xul', None))
103 eq(self.db.guess_type('foo.invalid', strict=False), (None, None))
104 eq(self.db.guess_extension('image/jpg', strict=False), '.jpg')
105 eq(self.db.guess_extension('image/JPG', strict
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Dnetfilter_ipv6.h44 const struct net_device *dev, int strict);
50 bool strict);
80 const struct net_device *dev, int strict) in nf_ipv6_chk_addr()
88 return v6_ops->chk_addr(net, addr, dev, strict); in nf_ipv6_chk_addr()
90 return ipv6_chk_addr(net, addr, dev, strict); in nf_ipv6_chk_addr()
97 struct flowi *fl, bool strict);
100 struct flowi *fl, bool strict) in nf_ip6_route()
106 return v6ops->route(net, dst, fl, strict); in nf_ip6_route()
111 return __nf_ip6_route(net, dst, fl, strict); in nf_ip6_route()
79 nf_ipv6_chk_addr(struct net *net, const struct in6_addr *addr, const struct net_device *dev, int strict) nf_ipv6_chk_addr() argument
99 nf_ip6_route(struct net *net, struct dst_entry **dst, struct flowi *fl, bool strict) nf_ip6_route() argument
/kernel/linux/linux-6.6/include/linux/
H A Dnetfilter_ipv6.h44 const struct net_device *dev, int strict);
50 bool strict);
80 const struct net_device *dev, int strict) in nf_ipv6_chk_addr()
88 return v6_ops->chk_addr(net, addr, dev, strict); in nf_ipv6_chk_addr()
90 return ipv6_chk_addr(net, addr, dev, strict); in nf_ipv6_chk_addr()
97 struct flowi *fl, bool strict);
100 struct flowi *fl, bool strict) in nf_ip6_route()
106 return v6ops->route(net, dst, fl, strict); in nf_ip6_route()
111 return __nf_ip6_route(net, dst, fl, strict); in nf_ip6_route()
79 nf_ipv6_chk_addr(struct net *net, const struct in6_addr *addr, const struct net_device *dev, int strict) nf_ipv6_chk_addr() argument
99 nf_ip6_route(struct net *net, struct dst_entry **dst, struct flowi *fl, bool strict) nf_ip6_route() argument
/third_party/python/Tools/c-analyzer/c_parser/parser/
H A D_common.py18 def set_capture_group(pattern, group, *, strict=True):
20 if strict and f'(?: # <{group}>' not in pattern:
25 def set_capture_groups(pattern, groups, *, strict=True):
27 pattern = set_capture_group(pattern, group, strict=strict)
/third_party/protobuf/js/commonjs/
H A Dstrict_test.js47 var simple1 = new test9_pb.jspb.exttest.strict.nine.Simple9()
48 var simple2 = new test9_pb.jspb.exttest.strict.nine.Simple9()
58 var simple1 = new test10_pb.jspb.exttest.strict.ten.Simple10()
59 var simple2 = new test10_pb.jspb.exttest.strict.ten.Simple10()
/third_party/json/include/nlohmann/detail/input/
H A Dparser.hpp86 @param[in] strict whether to expect the last token to be EOF
93 void parse(const bool strict, BasicJsonType& result) in parse() argument
100 // in strict mode, input must be completely read in parse()
101 if (strict && (get_token() != token_type::end_of_input)) in parse()
128 // in strict mode, input must be completely read in parse()
129 if (strict && (get_token() != token_type::end_of_input)) in parse()
150 @param[in] strict whether to expect the last token to be EOF
153 bool accept(const bool strict = true) in accept()
156 return sax_parse(&sax_acceptor, strict); in accept()
161 bool sax_parse(SAX* sax, const bool strict
[all...]
/third_party/node/deps/npm/node_modules/read-package-json/lib/
H A Dread-json.js31 var log, strict, cb
34 strict = arguments[i]
45 readJson_(file, log, strict, cb)
48 function readJson_ (file, log, strict, cb) {
50 parseJson(file, er, d, log, strict, cb)
84 function parseJson (file, er, d, log, strict, cb) {
93 return indexjs(file, er, log, strict, cb)
120 extrasCached(file, d, data, log, strict, cb)
123 function extrasCached (file, d, data, log, strict, cb) {
124 extras(file, data, log, strict, functio
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/base/
H A Dinterface_utils.h77 * @param strict If true, the object must implement all listed Uids. If false, it is enough to implement one.
81 const BASE_NS::array_view<const TypeId>& ids, bool strict) noexcept
83 return strict ? ObjectImplementsAll(object, ids) : ObjectImplementsAny(object, ids);
90 * @param strict If true, all of reqs must be found from uids. If false, one match is enough.
94 const BASE_NS::vector<BASE_NS::Uid>& uids, const BASE_NS::vector<BASE_NS::Uid>& reqs, bool strict) noexcept
102 size_t matches = strict ? reqs.size() : 1;

Completed in 11 milliseconds

12345678910>>...21