/third_party/python/Lib/ |
H A D | mimetypes.py | 5 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 D | tst_netdevice.c | 101 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 D | comparisons.js | 1 '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 D | tst_netdevice.h | 23 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/icu/icu4c/source/common/ |
H A D | utf_impl.cpp | 96 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...] |
H A D | uloc_tag.cpp | 102 values. They may have to be removed for the strict BCP 47 compliance. 1015 _appendLanguageToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UErrorCode* status) { in _appendLanguageToLanguageTag() argument 1026 if (strict) { in _appendLanguageToLanguageTag() 1039 if (strict) { in _appendLanguageToLanguageTag() 1063 _appendScriptToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UErrorCode* status) { in _appendScriptToLanguageTag() argument 1074 if (strict) { in _appendScriptToLanguageTag() 1083 if (strict) { in _appendScriptToLanguageTag() 1095 _appendRegionToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UErrorCode* status) { in _appendRegionToLanguageTag() argument 1106 if (strict) { in _appendRegionToLanguageTag() 1115 if (strict) { in _appendRegionToLanguageTag() 1148 _appendVariantsToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UBool *hadPosix, UErrorCode* status) _appendVariantsToLanguageTag() argument 1265 _appendKeywordsToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UBool hadPosix, UErrorCode* status) _appendKeywordsToLanguageTag() argument 1879 _appendPrivateuseToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UBool hadPosix, UErrorCode* status) _appendPrivateuseToLanguageTag() argument 2615 uloc_toLanguageTag(const char* localeID, char* langtag, int32_t langtagCapacity, UBool strict, UErrorCode* status) uloc_toLanguageTag() argument 2644 ulocimp_toLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UErrorCode* status) ulocimp_toLanguageTag() argument [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | utf_impl.cpp | 96 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...] |
H A D | uloc_tag.cpp | 102 values. They may have to be removed for the strict BCP 47 compliance. 1015 _appendLanguageToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UErrorCode* status) { in _appendLanguageToLanguageTag() argument 1026 if (strict) { in _appendLanguageToLanguageTag() 1039 if (strict) { in _appendLanguageToLanguageTag() 1063 _appendScriptToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UErrorCode* status) { in _appendScriptToLanguageTag() argument 1074 if (strict) { in _appendScriptToLanguageTag() 1083 if (strict) { in _appendScriptToLanguageTag() 1095 _appendRegionToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UErrorCode* status) { in _appendRegionToLanguageTag() argument 1106 if (strict) { in _appendRegionToLanguageTag() 1115 if (strict) { in _appendRegionToLanguageTag() 1148 _appendVariantsToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UBool *hadPosix, UErrorCode* status) _appendVariantsToLanguageTag() argument 1265 _appendKeywordsToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UBool hadPosix, UErrorCode* status) _appendKeywordsToLanguageTag() argument 1888 _appendPrivateuseToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UBool hadPosix, UErrorCode* status) _appendPrivateuseToLanguageTag() argument 2594 uloc_toLanguageTag(const char* localeID, char* langtag, int32_t langtagCapacity, UBool strict, UErrorCode* status) uloc_toLanguageTag() argument 2623 ulocimp_toLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UErrorCode* status) ulocimp_toLanguageTag() argument [all...] |
/third_party/skia/third_party/externals/icu/source/common/ |
H A D | utf_impl.cpp | 96 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...] |
H A D | uloc_tag.cpp | 102 values. They may have to be removed for the strict BCP 47 compliance. 1015 _appendLanguageToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UErrorCode* status) { in _appendLanguageToLanguageTag() argument 1026 if (strict) { in _appendLanguageToLanguageTag() 1039 if (strict) { in _appendLanguageToLanguageTag() 1063 _appendScriptToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UErrorCode* status) { in _appendScriptToLanguageTag() argument 1074 if (strict) { in _appendScriptToLanguageTag() 1083 if (strict) { in _appendScriptToLanguageTag() 1095 _appendRegionToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UErrorCode* status) { in _appendRegionToLanguageTag() argument 1106 if (strict) { in _appendRegionToLanguageTag() 1115 if (strict) { in _appendRegionToLanguageTag() 1148 _appendVariantsToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UBool *hadPosix, UErrorCode* status) _appendVariantsToLanguageTag() argument 1265 _appendKeywordsToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UBool hadPosix, UErrorCode* status) _appendKeywordsToLanguageTag() argument 1879 _appendPrivateuseToLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UBool hadPosix, UErrorCode* status) _appendPrivateuseToLanguageTag() argument 2611 uloc_toLanguageTag(const char* localeID, char* langtag, int32_t langtagCapacity, UBool strict, UErrorCode* status) uloc_toLanguageTag() argument 2640 ulocimp_toLanguageTag(const char* localeID, icu::ByteSink& sink, UBool strict, UErrorCode* status) ulocimp_toLanguageTag() argument [all...] |
/third_party/gn/src/base/third_party/icu/ |
H A D | icu_utf.cc | 33 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 D | deepequal-set.js | 1 '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 D | deepequal-map.js | 1 '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 D | deepequal-prims-and-objs-big-array-set.js | 1 '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,
|
/third_party/icu/icu4c/source/common/unicode/ |
H A D | utf_old.h | 33 * - 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 D | utf_old.h | 33 * - 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 D | utf_old.h | 33 * - 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 D | test_mimetypes.py | 96 # 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...] |
/third_party/node/deps/npm/node_modules/normalize-package-data/lib/ |
H A D | normalize.js | 20 function normalize (data, warn, strict) { 23 strict = true 25 if (!strict) { 26 strict = false 41 fixer['fix' + ucFirst(thingName)](data, strict)
|
H A D | fixer.js | 142 fixDependencies: function (data, strict) { 196 fixVersionField: function (data, strict) { 197 // allow "loose" semver 1.0 versions in non-strict mode 198 // enforce strict semver 2.0 compliance in strict mode 199 var loose = !strict 218 options = { strict: options } property 222 var strict = options.strict 223 if (!data.name && !strict) { [all...] |
/third_party/json/include/nlohmann/detail/input/ |
H A D | parser.hpp | 86 @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/python/Tools/c-analyzer/c_parser/parser/ |
H A D | _common.py | 18 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/node/deps/npm/node_modules/read-package-json/lib/ |
H A D | read-json.js | 31 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...] |
/third_party/protobuf/js/commonjs/ |
H A D | strict_test.js | 47 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/python/Lib/json/ |
H A D | scanner.py | 20 strict = context.strict 35 return parse_string(string, idx + 1, strict) 37 return parse_object((string, idx + 1), strict,
|