/third_party/node/test/parallel/ |
D | test-util-format.js | 25 const util = require('util'); constant 28 assert.strictEqual(util.format(), ''); 29 assert.strictEqual(util.format(''), ''); 30 assert.strictEqual(util.format([]), '[]'); 31 assert.strictEqual(util.format([0]), '[ 0 ]'); 32 assert.strictEqual(util.format({}), '{}'); 33 assert.strictEqual(util.format({ foo: 42 }), '{ foo: 42 }'); 34 assert.strictEqual(util.format(null), 'null'); 35 assert.strictEqual(util.format(true), 'true'); 36 assert.strictEqual(util.format(false), 'false'); [all …]
|
D | test-util.js | 26 const util = require('util'); constant 31 assert.strictEqual(util.isArray([]), true); 32 assert.strictEqual(util.isArray(Array()), true); 33 assert.strictEqual(util.isArray(new Array()), true); 34 assert.strictEqual(util.isArray(new Array(5)), true); 35 assert.strictEqual(util.isArray(new Array('with', 'some', 'entries')), true); 36 assert.strictEqual(util.isArray(context('Array')()), true); 37 assert.strictEqual(util.isArray({}), false); 38 assert.strictEqual(util.isArray({ push: function() {} }), false); 39 assert.strictEqual(util.isArray(/regexp/), false); [all …]
|
D | test-util-inspect.js | 27 const util = require('util'); constant 31 const { inspect } = util; 35 assert.strictEqual(util.inspect(1), '1'); 36 assert.strictEqual(util.inspect(false), 'false'); 37 assert.strictEqual(util.inspect(''), "''"); 38 assert.strictEqual(util.inspect('hello'), "'hello'"); 39 assert.strictEqual(util.inspect(function abc() {}), '[Function: abc]'); 40 assert.strictEqual(util.inspect(() => {}), '[Function (anonymous)]'); 42 util.inspect(async function() {}), 45 assert.strictEqual(util.inspect(async () => {}), '[AsyncFunction (anonymous)]'); [all …]
|
D | test-util-inspect-proxy.js | 6 const util = require('util'); constant 14 [util.inspect.custom](depth, { showProxy }) { 42 util.inspect(proxyObj, opts); 45 util.format('%s', proxyObj); 73 assert.strictEqual(util.inspect(r.proxy), '<Revoked Proxy>'); 75 util.inspect(r, { showProxy: true }), 79 assert.strictEqual(util.format('%s', r.proxy), '<Revoked Proxy>'); 82 util.inspect(proxyObj, opts), 108 assert.strictEqual(util.inspect(proxyObj), '[ 1, 2, 3 ]'); 139 util.inspect(proxy1, { showProxy: 1, depth: null }), [all …]
|
/third_party/nghttp2/src/ |
D | util_test.cc | 44 util::streq(StringRef::from_lit("alpha"), StringRef::from_lit("alpha"))); in test_util_streq() 45 CU_ASSERT(!util::streq(StringRef::from_lit("alpha"), in test_util_streq() 47 CU_ASSERT(!util::streq(StringRef::from_lit("alphabravo"), in test_util_streq() 50 !util::streq(StringRef::from_lit("alpha"), StringRef::from_lit("alphA"))); in test_util_streq() 51 CU_ASSERT(!util::streq(StringRef{}, StringRef::from_lit("a"))); in test_util_streq() 52 CU_ASSERT(util::streq(StringRef{}, StringRef{})); in test_util_streq() 53 CU_ASSERT(!util::streq(StringRef::from_lit("alpha"), StringRef{})); in test_util_streq() 56 !util::streq(StringRef::from_lit("alph"), StringRef::from_lit("alpha"))); in test_util_streq() 58 !util::streq(StringRef::from_lit("alpha"), StringRef::from_lit("alph"))); in test_util_streq() 60 !util::streq(StringRef::from_lit("alpha"), StringRef::from_lit("alphA"))); in test_util_streq() [all …]
|
D | shrpx_config.cc | 135 auto d = util::parse_uint(portstr); in split_host_port() 227 LOG(INFO) << "session ticket key: " << util::format_hex(key.data.name); in read_tls_ticket_key_file() 257 if (s.size() != expectedlen * 2 || !util::is_hex_string(s)) { in read_quic_secret_file() 268 util::decode_hex(std::begin(qkm.reserved), in read_quic_secret_file() 271 util::decode_hex(std::begin(qkm.secret), in read_quic_secret_file() 274 util::decode_hex(std::begin(qkm.salt), StringRef{p, p + qkm.salt.size()}); in read_quic_secret_file() 315 util::make_socket_closeonexec(fd); in open_file_for_write() 374 util::inp_strlower(name_iov.base, p); in parse_header() 391 auto val = util::parse_uint(optarg); in parse_uint() 406 auto n = util::parse_uint_with_unit(optarg); in parse_uint_with_unit() [all …]
|
D | http2.cc | 246 return util::make_string_ref_uint(balloc, status_code); in stringify_status() 251 buf->append(util::upcase(s[0])); in capitalize() 254 buf->append(util::upcase(s[i])); in capitalize() 641 if (!util::starts_with(std::begin(match_host), std::end(match_host), in rewrite_location_uri() 672 p = util::copy_lit(p, "://"); in rewrite_location_uri() 728 if (util::streq_l("t", name, 1)) { in lookup_token() 737 if (util::streq_l("vi", name, 2)) { in lookup_token() 746 if (util::streq_l("dat", name, 3)) { in lookup_token() 751 if (util::streq_l("lin", name, 3)) { in lookup_token() 756 if (util::streq_l("hos", name, 3)) { in lookup_token() [all …]
|
/third_party/protobuf/src/google/protobuf/stubs/ |
D | status_test.cc | 41 util::Status status; in TEST() 42 EXPECT_EQ(util::error::OK, util::Status::OK.error_code()); in TEST() 43 EXPECT_EQ(util::error::OK, util::Status::OK.code()); in TEST() 44 EXPECT_EQ("OK", util::Status::OK.ToString()); in TEST() 48 EXPECT_EQ(util::error::OK, util::Status::OK.error_code()); in TEST() 49 EXPECT_EQ(util::error::OK, util::Status::OK.code()); in TEST() 50 EXPECT_EQ(util::error::CANCELLED, util::Status::CANCELLED.error_code()); in TEST() 51 EXPECT_EQ(util::error::CANCELLED, util::Status::CANCELLED.code()); in TEST() 52 EXPECT_EQ(util::error::UNKNOWN, util::Status::UNKNOWN.error_code()); in TEST() 53 EXPECT_EQ(util::error::UNKNOWN, util::Status::UNKNOWN.code()); in TEST() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | DebugUtilitiesData.java | 10 package com.ibm.icu.dev.test.util; 122 com.ibm.icu.util.Calendar.ERA, /* 0 */ 123 com.ibm.icu.util.Calendar.YEAR, /* 1 */ 124 com.ibm.icu.util.Calendar.MONTH, /* 2 */ 125 com.ibm.icu.util.Calendar.WEEK_OF_YEAR, /* 3 */ 126 com.ibm.icu.util.Calendar.WEEK_OF_MONTH, /* 4 */ 127 com.ibm.icu.util.Calendar.DATE, /* 5 */ 128 com.ibm.icu.util.Calendar.DAY_OF_YEAR, /* 6 */ 129 com.ibm.icu.util.Calendar.DAY_OF_WEEK, /* 7 */ 130 com.ibm.icu.util.Calendar.DAY_OF_WEEK_IN_MONTH, /* 8 */ [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
D | DebugUtilitiesData.java | 11 package ohos.global.icu.dev.test.util; 126 ohos.global.icu.util.Calendar.ERA, /* 0 */ 127 ohos.global.icu.util.Calendar.YEAR, /* 1 */ 128 ohos.global.icu.util.Calendar.MONTH, /* 2 */ 129 ohos.global.icu.util.Calendar.WEEK_OF_YEAR, /* 3 */ 130 ohos.global.icu.util.Calendar.WEEK_OF_MONTH, /* 4 */ 131 ohos.global.icu.util.Calendar.DATE, /* 5 */ 132 ohos.global.icu.util.Calendar.DAY_OF_YEAR, /* 6 */ 133 ohos.global.icu.util.Calendar.DAY_OF_WEEK, /* 7 */ 134 ohos.global.icu.util.Calendar.DAY_OF_WEEK_IN_MONTH, /* 8 */ [all …]
|
/third_party/protobuf/src/google/protobuf/util/internal/ |
D | json_stream_parser.cc | 51 namespace util { namespace 55 using util::Status; 57 using util::error::CANCELLED; 58 using util::error::INTERNAL; 59 using util::error::INVALID_ARGUMENT; 168 util::Status JsonStreamParser::Parse(StringPiece json) { in Parse() 185 util::Status status = ParseChunk(chunk.substr(0, n)); in Parse() 193 return util::Status(); in Parse() 197 util::Status JsonStreamParser::FinishParse() { in FinishParse() 201 return util::Status(); in FinishParse() [all …]
|
D | json_stream_parser.h | 45 namespace util { 77 util::Status Parse(StringPiece json); 81 util::Status FinishParse(); 133 util::Status ParseChunk(StringPiece chunk); 138 util::Status RunParser(); 142 util::Status ParseValue(TokenType type); 145 util::Status ParseString(); 148 util::Status ParseStringHelper(); 154 util::Status ParseUnicodeEscape(); 158 util::Status ParseNumber(); [all …]
|
D | protostream_objectsource.h | 54 namespace util { 80 util::Status NamedWriteTo(StringPiece name, 134 virtual util::Status WriteMessage(const google::protobuf::Type& type, 143 virtual util::StatusOr<uint32> RenderList( 152 virtual util::Status RenderField(const google::protobuf::Field* field, 171 typedef util::Status (*TypeRenderer)(const ProtoStreamObjectSource*, 181 util::StatusOr<uint32> RenderMap(const google::protobuf::Field* field, 188 util::Status RenderPacked(const google::protobuf::Field* field, 192 static util::Status RenderTimestamp(const ProtoStreamObjectSource* os, 198 static util::Status RenderDuration(const ProtoStreamObjectSource* os, [all …]
|
/third_party/python/Lib/test/test_importlib/ |
D | test_util.py | 1 from . import util 2 abc = util.import_importlib('importlib.abc') 3 init = util.import_importlib('importlib') 4 machinery = util.import_importlib('importlib.machinery') 5 importlib_util = util.import_importlib('importlib.util') 7 import importlib.util 25 self.assertEqual(self.util.decode_source(source_bytes), self.source) 31 self.assertEqual(self.util.decode_source(source_bytes), source) 36 self.assertEqual(self.util.decode_source(source_bytes), 42 ) = util.test_both(DecodeSourceBytesTests, util=importlib_util) [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/ |
D | meson.build | 221 'util/dbghelp.h', 222 'util/u_async_debug.h', 223 'util/u_async_debug.c', 224 'util/u_bitcast.h', 225 'util/u_bitmask.c', 226 'util/u_bitmask.h', 227 'util/u_blend.h', 228 'util/u_blitter.c', 229 'util/u_blitter.h', 230 'util/u_box.h', [all …]
|
/third_party/skia/third_party/externals/angle2/third_party/r8/ |
D | backported_methods.txt | 104 java/util/Collections#emptyEnumeration()Ljava/util/Enumeration; 105 java/util/Collections#emptyIterator()Ljava/util/Iterator; 106 java/util/Collections#emptyListIterator()Ljava/util/ListIterator; 107 java/util/List#copyOf(Ljava/util/Collection;)Ljava/util/List; 108 java/util/List#of()Ljava/util/List; 109 java/util/List#of(Ljava/lang/Object;)Ljava/util/List; 110 java/util/List#of(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/List; 111 java/util/List#of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/List; 112 java/util/List#of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/ut… 113 java/util/List#of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lan… [all …]
|
/third_party/python/Lib/test/test_importlib/import_/ |
D | test_fromlist.py | 2 from .. import util 20 with util.mock_spec('pkg.__init__', 'pkg.module') as importer: 21 with util.import_state(meta_path=[importer]): 27 with util.mock_spec('pkg.__init__', 'pkg.module')as importer: 28 with util.import_state(meta_path=[importer]): 35 ) = util.test_both(ReturnValue, __import__=util.__import__) 55 with util.mock_spec('module') as importer: 56 with util.import_state(meta_path=[importer]): 62 with util.mock_spec('module') as importer: 63 with util.import_state(meta_path=[importer]): [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | typeFromPropertyAssignment37.symbols | 2 const util = require('./mod') 3 >util : Symbol(util, Decl(use.js, 0, 5)) 5 >'./mod' : Symbol(util, Decl(mod.js, 0, 0)) 10 util.existy // no error 11 >util.existy : Symbol(util.existy, Decl(mod.js, 1, 14)) 12 >util : Symbol(util, Decl(use.js, 0, 5)) 13 >existy : Symbol(util.existy, Decl(mod.js, 1, 14)) 15 util.existy // no error 16 >util.existy : Symbol(util.existy, Decl(mod.js, 1, 14)) 17 >util : Symbol(util, Decl(use.js, 0, 5)) [all …]
|
D | typeFromPropertyAssignment37.types | 2 const util = require('./mod') 3 >util : typeof util 4 >require('./mod') : typeof util 11 util.existy // no error 12 >util.existy : () => void 13 >util : typeof util 16 util.existy // no error 17 >util.existy : () => void 18 >util : typeof util 22 const util = exports = module.exports = {} [all …]
|
/third_party/protobuf/cmake/ |
D | libprotobuf.cmake | 31 ${protobuf_source_dir}/src/google/protobuf/util/delimited_message_util.cc 32 ${protobuf_source_dir}/src/google/protobuf/util/field_comparator.cc 33 ${protobuf_source_dir}/src/google/protobuf/util/field_mask_util.cc 34 ${protobuf_source_dir}/src/google/protobuf/util/internal/datapiece.cc 35 ${protobuf_source_dir}/src/google/protobuf/util/internal/default_value_objectwriter.cc 36 ${protobuf_source_dir}/src/google/protobuf/util/internal/error_listener.cc 37 ${protobuf_source_dir}/src/google/protobuf/util/internal/field_mask_utility.cc 38 ${protobuf_source_dir}/src/google/protobuf/util/internal/json_escaping.cc 39 ${protobuf_source_dir}/src/google/protobuf/util/internal/json_objectwriter.cc 40 ${protobuf_source_dir}/src/google/protobuf/util/internal/json_stream_parser.cc [all …]
|
/third_party/node/doc/api/ |
D | util.md | 7 <!-- source_link=lib/util.js --> 9 The `node:util` module supports the needs of Node.js internal APIs. Many of the 14 const util = require('node:util'); 17 ## `util.callbackify(original)` 33 const util = require('node:util'); 38 const callbackFunction = util.callbackify(fn); 65 const callbackFunction = util.callbackify(fn); 74 ## `util.debuglog(section[, callback])` 86 The `util.debuglog()` method is used to create a function that conditionally 93 const util = require('node:util'); [all …]
|
/third_party/python/Lib/test/test_importlib/source/ |
D | test_file_loader.py | 2 from .. import util 4 importlib = util.import_importlib('importlib') 5 importlib_abc = util.import_importlib('importlib.abc') 6 machinery = util.import_importlib('importlib.machinery') 7 importlib_util = util.import_importlib('importlib.util') 76 with util.create_modules('_temp') as mapping: 88 with util.create_modules('_pkg.__init__') as mapping: 103 with util.create_modules('_pkg.__init__', '_pkg.mod')as mapping: 120 with util.create_modules('_temp') as mapping: 144 with util.create_modules(name) as mapping: [all …]
|
/third_party/python/Lib/test/test_importlib/builtin/ |
D | test_finder.py | 2 from .. import util 4 machinery = util.import_importlib('importlib.machinery') 11 @unittest.skipIf(util.BUILTINS.good_name is None, 'no reasonable builtin module') 18 with util.uncache(util.BUILTINS.good_name): 19 found = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name) 43 with util.uncache(util.BUILTINS.good_name): 44 spec = self.machinery.BuiltinImporter.find_spec(util.BUILTINS.good_name, 51 ) = util.test_both(FindSpecTests, machinery=machinery) 54 @unittest.skipIf(util.BUILTINS.good_name is None, 'no reasonable builtin module') 61 with util.uncache(util.BUILTINS.good_name): [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | JavaTimeZone.java | 15 import java.util.Date; 16 import java.util.TreeSet; 18 import com.ibm.icu.util.TimeZone; 36 private java.util.TimeZone javatz; 37 private transient java.util.Calendar javacal; 42 String[] availableIds = java.util.TimeZone.getAvailableIDs(); 48 …mObservesDaylightTime = java.util.TimeZone.class.getMethod("observesDaylightTime", (Class[]) null); 60 this(java.util.TimeZone.getDefault(), null); in JavaTimeZone() 69 public JavaTimeZone(java.util.TimeZone jtz, String id) { in JavaTimeZone() 75 javacal = new java.util.GregorianCalendar(javatz); in JavaTimeZone() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | JavaTimeZone.java | 16 import java.util.Date; 17 import java.util.TreeSet; 19 import ohos.global.icu.util.TimeZone; 38 private java.util.TimeZone javatz; 39 private transient java.util.Calendar javacal; 44 String[] availableIds = java.util.TimeZone.getAvailableIDs(); 50 …mObservesDaylightTime = java.util.TimeZone.class.getMethod("observesDaylightTime", (Class[]) null); 62 this(java.util.TimeZone.getDefault(), null); in JavaTimeZone() 71 public JavaTimeZone(java.util.TimeZone jtz, String id) { in JavaTimeZone() 77 javacal = new java.util.GregorianCalendar(javatz); in JavaTimeZone() [all …]
|