| /third_party/typescript/tests/baselines/reference/ |
| H A D | nodeModulesExportsBlocksTypesVersions(module=nodenext).js | 37 "name": "just-types-versions", 55 import {} from "just-types-versions/foo"; 63 import {} from "just-types-versions/foo";
|
| /third_party/skia/include/private/ |
| H A D | GrImageContext.h | 16 // This is now just a view on a ThreadSafeProxy, that SkImages can attempt to 18 // this goes away and SkImages just hold ThreadSafeProxies. 42 // to the SkImage that has no real power, just a wrapper around the ThreadSafeProxy.
|
| /third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/mapper/ |
| H A D | PluralsMapper.java | 70 // to ordering (or just enforce DTD ordering) but right now it's very dependent on in process() 72 // everywhere, this can just be a single pass over the original data. in process() 88 // default via comments. It should probably be changed to just have a default in in Plurals() 97 // current CLDR data, I decided to just prohibit it in the new code. Support can in addRules() 103 // immutable map (saves creating immutable maps just to check for inclusion) but in addRules()
|
| /third_party/libwebsockets/READMEs/ |
| H A D | README.build-windows.md | 61 Afterwards you can just use `git` as normal from cmd.exe as well. 67 I installed as little as possible, we just want the C "C++" tools... 7GB :-) 108 Just install via the defaults. Then add it to the PATH temporarily... 126 just sit there building for 30 minutes or whatever. 161 itself. Just like the many other missing POSIX bits like fork().
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/CodeView/ |
| H A D | ContinuationRecordBuilder.cpp | 100 // previous member and the member that was just written, then end the previous in writeMemberType() 101 // segment after the continuation and begin a new one with the just-written in writeMemberType() 104 // We need to inject some bytes before the member we just wrote but after in writeMemberType() 105 // the previous member. Save off the length of the member we just wrote so in writeMemberType() 112 // just wrote should now constitute the entirety of the current "new" in writeMemberType()
|
| /third_party/skia/third_party/externals/libpng/contrib/pngminus/ |
| H A D | README.txt | 43 like Greg Roelofs' rpng/wpng, that can be used just as good. 61 png-files you can do this just as well by piping the output of png2pnm 69 RGB+A png-image, you just combine a ppm-file with a corresponding 88 Just like Scandinavian furniture 107 Please, remember that this was just a small experiment to learn a few
|
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
| H A D | PassInstrumentation.h | 36 /// providing names in future, currently it is just a name() of the pass. 155 /// just been executed and constant reference to \p IR it operates on. 165 /// that has just been executed. For use when IR has been invalidated 184 /// that has just been executed and constant reference to IR it operated on. 195 /// On attempt to invalidate just return false. There is nothing to become
|
| /third_party/rust/crates/memchr/bench/data/opensubtitles/ |
| H A D | en-medium.txt | 11 Couldn't we just leave it that way? 126 Just get coffee. 161 It just gets things said in a hurry. 252 Just that and nothing more? 253 Perhaps just a little more. 353 They just follow the river. 380 I was just in the road watching. 467 And in your feet, where your brains are, you think maybe you're just a bit faster. 471 It's just a little old wedge. 627 Why not take a look, just t [all...] |
| /third_party/typescript/tests/baselines/reference/docker/ |
| H A D | office-ui-fabric.log | 4 @fluentui/bundle-size: $ /office-ui-fabric-react/node_modules/.bin/just ts 7 @fluentui/eslint-plugin: $ /office-ui-fabric-react/node_modules/.bin/just ts 10 @fluentui/noop: $ /office-ui-fabric-react/node_modules/.bin/just ts 13 @fluentui/web-components: $ /office-ui-fabric-react/node_modules/.bin/just ts 16 @fluentui/ability-attributes: $ /office-ui-fabric-react/node_modules/.bin/just ts 19 @fluentui/digest: $ /office-ui-fabric-react/node_modules/.bin/just ts 26 @fluentui/nx-workspace-tools: $ /office-ui-fabric-react/node_modules/.bin/just ts 29 @fluentui/typings: $ /office-ui-fabric-react/node_modules/.bin/just ts 32 @fluentui/scripts: $ /office-ui-fabric-react/node_modules/.bin/just ts 39 @fluentui/pr-deploy-site: $ /office-ui-fabric-react/node_modules/.bin/just t [all...] |
| /third_party/node/lib/internal/webstreams/ |
| H A D | adapters.js | 252 // rejection. Let's just escape the promise and 314 // rejection. Let's just escape the promise and 346 // rejection. Let's just escape the promise and 415 // When running in objectMode explicitly but no strategy, we just fall 420 // When not running in objectMode explicitly, we just fall 421 // back to a minimal strategy that just specifies the highWaterMark 531 // rejection. Let's just escape the promise and 678 // rejection. Let's just escape the promise and 740 // rejection. Let's just escape the promise and 775 // rejection. Let's just escap [all...] |
| /third_party/node/src/ |
| H A D | string_bytes.cc | 45 using v8::Just; 388 return Just(Buffer::Length(val)); in StorageSize() 428 return Just(data_size); in StorageSize() 437 return Just(Buffer::Length(val)); in Size() 446 return Just<size_t>(str->Length()); in Size() 450 return Just<size_t>(str->Utf8Length(isolate)); in Size() 453 return Just(str->Length() * sizeof(uint16_t)); in Size() 459 return Just(base64_decoded_size(*value, value.length())); in Size() 463 return Just<size_t>(str->Length() / 2); in Size() 526 // We know how much we'll write, just mak in hex_encode() [all...] |
| /third_party/node/deps/v8/src/objects/ |
| H A D | js-display-names.cc | 150 return Just(result); 175 return Just(result); 200 return Just(result); 231 return Just(result); 360 return Just(generator_->getFieldDisplayName(field, width_)); 565 isolate, options, factory->locale_string(), locale, Just(kDontThrow)); in ResolvedOptions() 570 isolate, options, factory->style_string(), style, Just(kDontThrow)); in ResolvedOptions() 575 isolate, options, factory->type_string(), type, Just(kDontThrow)); in ResolvedOptions() 580 isolate, options, factory->fallback_string(), fallback, Just(kDontThrow)); in ResolvedOptions() 588 language_display, Just(kDontThro in ResolvedOptions() [all...] |
| /third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/ |
| H A D | vktMeshShaderApiTests.cpp | 664 { tcu::just(IndirectArgs{ 0u, 0u }), "offset_0_stride_0" }, in createMeshShaderApiTests() 665 { tcu::just(IndirectArgs{ 0u, normalStride }), "offset_0_stride_normal" }, in createMeshShaderApiTests() 666 { tcu::just(IndirectArgs{ 0u, largeStride }), "offset_0_stride_large" }, in createMeshShaderApiTests() 669 { tcu::just(IndirectArgs{ altOffset, 0u }), "offset_alt_stride_0" }, in createMeshShaderApiTests() 670 { tcu::just(IndirectArgs{ altOffset, normalStride }), "offset_alt_stride_normal" }, in createMeshShaderApiTests() 671 { tcu::just(IndirectArgs{ altOffset, largeStride }), "offset_alt_stride_large" }, in createMeshShaderApiTests() 681 { tcu::just(IndirectCountLimitType::BUFFER_VALUE), "count_limit_buffer" }, in createMeshShaderApiTests() 682 { tcu::just(IndirectCountLimitType::MAX_COUNT), "count_limit_max_count" }, in createMeshShaderApiTests() 692 { tcu::just(uint32_t{0u}), "count_offset_0" }, in createMeshShaderApiTests() 693 { tcu::just(altOffse in createMeshShaderApiTests() [all...] |
| /third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/ |
| H A D | vktMeshShaderApiTests.cpp | 664 { tcu::just(IndirectArgs{ 0u, 0u }), "offset_0_stride_0" }, in createMeshShaderApiTests() 665 { tcu::just(IndirectArgs{ 0u, normalStride }), "offset_0_stride_normal" }, in createMeshShaderApiTests() 666 { tcu::just(IndirectArgs{ 0u, largeStride }), "offset_0_stride_large" }, in createMeshShaderApiTests() 669 { tcu::just(IndirectArgs{ altOffset, 0u }), "offset_alt_stride_0" }, in createMeshShaderApiTests() 670 { tcu::just(IndirectArgs{ altOffset, normalStride }), "offset_alt_stride_normal" }, in createMeshShaderApiTests() 671 { tcu::just(IndirectArgs{ altOffset, largeStride }), "offset_alt_stride_large" }, in createMeshShaderApiTests() 681 { tcu::just(IndirectCountLimitType::BUFFER_VALUE), "count_limit_buffer" }, in createMeshShaderApiTests() 682 { tcu::just(IndirectCountLimitType::MAX_COUNT), "count_limit_max_count" }, in createMeshShaderApiTests() 692 { tcu::just(uint32_t{0u}), "count_offset_0" }, in createMeshShaderApiTests() 693 { tcu::just(altOffse in createMeshShaderApiTests() [all...] |
| /third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
| H A D | IntermNode.h | 123 // This is just to help yacc. 185 // After every transformation is done and just before outputting the tree (i.e. when the tree 309 TIntermSymbol(const TIntermSymbol &) = default; // Note: not deleted, just private! 315 // A typed expression that is not just representing a symbol table symbol. 415 TIntermConstantUnion(const TIntermConstantUnion &node); // Note: not deleted, just private! 483 TIntermSwizzle(const TIntermSwizzle &node); // Note: not deleted, just private! 538 TIntermBinary(const TIntermBinary &node); // Note: not deleted, just private! 583 TIntermUnary(const TIntermUnary &node); // note: not deleted, just private! 671 TIntermAggregate(const TIntermAggregate &node); // note: not deleted, just private! 900 TIntermTernary(const TIntermTernary &node); // Note: not deleted, just privat [all...] |
| /third_party/node/deps/v8/src/builtins/ |
| H A D | builtins-array.cc | 145 return Just(std::max(length + relative_index, 0.0)); in GetRelativeIndex() 148 return Just(std::min(relative_index, length)); in GetRelativeIndex() 159 return Just(length); in GetLengthProperty() 166 return Just(raw_length_number->Number()); in GetLengthProperty() 186 Just(ShouldThrow::kThrowOnError)); in SetLengthProperty() 202 Just(ShouldThrow::kThrowOnError))); in GenericArrayFill() 217 if (end_index > kMaxUInt32) return Just(false); in TryFastArrayFill() 218 if (!receiver->IsJSObject()) return Just(false); in TryFastArrayFill() 221 return Just(false); in TryFastArrayFill() 247 return Just(tru in TryFastArrayFill() [all...] |
| /third_party/icu/icu4c/source/tools/icuinfo/ |
| H A D | icuplugins_windows_sample.txt | 9 # where ## is the major and minor ICU versions (i.e. just 96 for version 9.6.3) 39 # The configuration string isn't used, but is just an example 57 ## A low level plugin that just prints a message when uprv_malloc and related functions are called
|
| /third_party/mesa3d/src/imagination/vulkan/ |
| H A D | pvr_csb_enum_helpers.h | 85 /* enum values are identical, so we can just cast the input directly. */ in pvr_ta_cmpmode() 91 /* enum values are identical, so we can just cast the input directly. */ in pvr_ta_stencilop() 129 /* enum values are identical, so we can just cast the input directly. */ in pvr_texstate_cmpmode()
|
| /third_party/vk-gl-cts/external/vulkan-docs/src/appendices/ |
| H A D | VK_EXT_texture_compression_astc_hdr.adoc | 44 The feature is strictly speaking redundant as long as this is just an 45 extension; it would be sufficient to just enable the extension. 58 textures internally and just treat them as the same format, i.e. if this
|
| H A D | VK_EXT_texture_compression_astc_hdr.txt | 35 The feature is strictly speaking redundant as long as this is just an 36 extension; it would be sufficient to just enable the extension. 49 textures internally and just treat them as the same format, i.e. if this
|
| /third_party/skia/third_party/externals/icu/source/tools/icuinfo/ |
| H A D | icuplugins_windows_sample.txt | 9 # where ## is the major and minor ICU versions (i.e. just 96 for version 9.6.3) 39 # The configuration string isn't used, but is just an example 57 ## A low level plugin that just prints a message when uprv_malloc and related functions are called
|
| /third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
| H A D | Freezable.java | 139 * These are the easiest. You just use the interface to reflect that, by adding 199 * Any subclass of a <code>Freezable</code> will just use its superclass's 202 * override <code>isFrozen()</code>. It must then just pay attention to its 221 * converting UnicodeSet to be <code>Freezable</code> is just accomplished 246 * work in the <code>freeze()</code> function. Just make all of your internal 265 * collection from outside your object, then just wrap it to prevent future 294 * course is to just create a new collection:
|
| /third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
| H A D | Freezable.java | 140 * These are the easiest. You just use the interface to reflect that, by adding 200 * Any subclass of a <code>Freezable</code> will just use its superclass's 203 * override <code>isFrozen()</code>. It must then just pay attention to its 222 * converting UnicodeSet to be <code>Freezable</code> is just accomplished 247 * work in the <code>freeze()</code> function. Just make all of your internal 266 * collection from outside your object, then just wrap it to prevent future 295 * course is to just create a new collection:
|
| /third_party/nghttp2/doc/sources/ |
| H A D | tutorial-client.rst | 194 events, we just simply tear down the connection. 259 needed for this tiny example program, it just demonstrates use of the 361 Since we use bufferevent to abstract network I/O, we just write the 386 As described earlier, we just write off all data in `send_callback()`, 425 In this tutorial, we just print the name/value pairs on stderr. 447 In this tutorial, we are just interested in the HTTP response HEADERS 468 stream ID, we just write the received data to stdout. Note the output
|
| /third_party/node/deps/minimatch/src/dist/cjs/ |
| H A D | brace-expressions.js.map | 1 {"version":3,"file":"brace-expressions.js","sourceRoot":"","sources":["../../src/brace-expressions.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,wCAAwC;;;AAExC,8DAA8D;AAC9D,MAAM,YAAY,GAA0D;IAC1E,WAAW,EAAE,CAAC,sBAAsB,EAAE,IAAI,CAAC;IAC3C,WAAW,EAAE,CAAC,eAAe,EAAE,IAAI,CAAC;IACpC,WAAW,EAAE,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,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,IAAI,CAAC,GAAG,GAAG,CAAA;IACpE,MAAM,IAAI,GACR,MAAM,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM;QAC1B,CAAC,CAAC,GAAG,GAAG,OAAO,GAAG,GAAG,GAAG,KAAK,GAAG,GAAG;QACnC,CAAC,CAAC,MAAM,CAAC,MAAM;YACf,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,KAAK,CAAA;IAEX,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG,EAAE,IAAI,CAAC,CAAA;AAC1C,CAAC,CAAA;AAhIY,QAAA,UAAU,cAgItB","sourcesContent":["// translate the various posix character classes into unicode properties\n// this works across all unicode locales\n\n// { <posix class>: [<translation>, /u flag required, negated]\nconst posixClasses: { [k: string]: [e: string, u: boolean, n?: boolean] } = {\n '[:alnum:]': ['\\\\p{L}\\\\p{Nl}\\\\p{Nd}', true],\n '[:alpha:]': ['\\\\p{L}\\\\p{Nl}', true],\n '[:ascii:]': ['\\\\x' + '00-\\\\x' + '7f', false],\n '[:blank:]': ['\\\\p{Zs}\\\\t', true],\n '[:cntrl:]': ['\\\\p{Cc}', true],\n '[:digit:]': ['\\\\p{Nd}', true],\n '[:graph:]': ['\\\\p{Z}\\\\p{C}', true, true],\n '[:lower:]': ['\\\\p{Ll}', true],\n '[:print:]': ['\\\\p{C}', true],\n '[:punct:]': ['\\\\p{P}', true],\n '[:space:]': ['\\\\p{Z}\\\\t\\\\r\\\\n\\\\v\\\\f', true],\n '[:upper:]': ['\\\\p{Lu}', true],\n '[:word:]': ['\\\\p{L}\\\\p{Nl}\\\\p{Nd}\\\\p{Pc}', true],\n '[:xdigit:]': ['A-Fa-f0-9', false],\n}\n\n// only need to escape a few things inside of brace expressions\n// escapes: [ \\ ] -\nconst braceEscape = (s: string) => s.replace(/[[\\]\\\\-]/g, '\\\\$&')\n// escape all regexp magic characters\nconst regexpEscape = (s: string) =>\n s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\n\n// everything has already been escaped, we just have to join\nconst rangesToString = (ranges: string[]): string => ranges.join('')\n\nexport type ParseClassResult = [\n src: string,\n uFlag: boolean,\n consumed: number,\n hasMagic: boolean\n]\n\n// takes a glob string at a posix brace expression, and returns\n// an equivalent regular expression source, and boolean indicating\n// whether the /u flag needs to be applied, and the number of chars\n// consumed to parse the character class.\n// This also removes out of order ranges, and returns ($.) if the\n// entire class just no good.\nexport const parseClass = (\n glob: string,\n position: number\n): ParseClassResult => {\n const pos = position\n /* c8 ignore start */\n if (glob.charAt(pos) !== '[') {\n throw new Error('not in a brace expression')\n }\n /* c8 ignore stop */\n const ranges: string[] = []\n const negs: string[] = []\n\n let i = pos + 1\n let sawStart = false\n let uflag = false\n let escaping = false\n let negate = false\n let endPos = pos\n let rangeStart = ''\n WHILE: while (i < glob.length) {\n const c = glob.charAt(i)\n if ((c === '!' || c === '^') && i === pos + 1) {\n negate = true\n i++\n continue\n }\n\n if (c === ']' && sawStart && !escaping) {\n endPos = i + 1\n break\n }\n\n sawStart = true\n if (c === '\\\\') {\n if (!escaping) {\n escaping = true\n i++\n continue\n }\n // escaped \\ char, fall through and treat like normal char\n }\n if (c === '[' && !escaping) {\n // either a posix class, a collation equivalent, or just a [\n for (const [cls, [unip, u, neg]] of Object.entries(posixClasses)) {\n if (glob.startsWith(cls, i)) {\n // invalid, [a-[] is fine, but not [a-[:alpha]]\n if (rangeStart) {\n return ['$.', false, glob.length - pos, true]\n }\n i += cls.length\n if (neg) negs.push(unip)\n else ranges.push(unip)\n uflag = uflag || u\n continue WHILE\n }\n }\n }\n\n // now it's just a normal character, effectively\n escaping = false\n if (rangeStart) {\n // throw this range away if it's not valid, but others\n // can still match.\n if (c > rangeStart) {\n ranges.push(braceEscape(rangeStart) + '-' + braceEscape(c))\n } else if (c === rangeStart) {\n ranges.push(braceEscape(c))\n }\n rangeStart = ''\n i++\n continue\n }\n\n // now might be the start of a range.\n // can be either c-d or c-] or c<more...>] or c] at this point\n if (glob.startsWith('-]', i + 1)) {\n ranges.push(braceEscape(c + '-'))\n i += 2\n continue\n }\n if (glob.startsWith('-', i + 1)) {\n rangeStart = c\n i += 2\n continue\n }\n\n // not the start of a range, just a single character\n ranges.push(braceEscape(c))\n i++\n }\n\n if (endPos < i) {\n // didn't see the end of the class, not a valid class,\n // but might still be valid as a literal match.\n return ['', false, 0, false]\n }\n\n // if we got no ranges and no negates, then we have a range that\n // cannot possibly match anything, and that poisons the whole glob\n if (!ranges.length && !negs.length) {\n return ['$.', false, glob.length - pos, true]\n }\n\n // if we got one positive range, and it's a single character, then that's\n // not actually a magic pattern, it's just that one literal character.\n // we should not treat that as \"magic\", we should just return the literal\n // character. [_] is a perfectly valid way to escape glob magic chars.\n if (…)
|