Home
last modified time | relevance | path

Searched +full:- +full:print +full:- +full:file +full:- +full:name (Results 1 – 25 of 1103) sorted by relevance

12345678910>>...45

/third_party/protobuf/src/google/protobuf/compiler/php/
Dphp_generator.cc1 // Protocol Buffers - Google's data interchange format
3 // https://developers.google.com/protocol-buffers/
15 // * Neither the name of Google Inc. nor the names of its
60 "new", "or", "print", "private", "protected",
94 std::string GeneratedMetadataFileName(const FileDescriptor* file,
96 std::string UnderscoresToCamelCase(const std::string& name,
101 void GenerateAddFilesToPool(const FileDescriptor* file, const Options& options,
124 const FileDescriptor* file) { in ReservedNamePrefix() argument
138 if (file->package() == "google.protobuf") { in ReservedNamePrefix()
151 return StringReplace(desc->full_name(), in DescriptorFullName()
[all …]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
Dpromote.py3 # Copyright 2016-2024 The Khronos Group Inc.
5 # SPDX-License-Identifier: Apache-2.0
10 # Usage: promote.py [-overwrite] [-out dir] [-suffix str] files
11 # -overwrite updates in place (can be risky, make sure there are backups)
12 # -out specifies directory to create output file in, default 'out'
13 # -suffix specifies suffix to add to output files, default ''
16 # For error and file-loading interfaces only
25 return 'promoted-' + str(anchor)
31 print('[[' + anchorname(anchor) + ']]', file=fp)
32 print('This anchor:', anchorname(anchor), file=fp)
[all …]
DgenRef.py3 # Copyright 2016-2024 The Khronos Group Inc.
5 # SPDX-License-Identifier: Apache-2.0
7 # genRef.py - create API ref pages from spec source files
39 # Other refpage types - SPIR-V builtins, API feature blocks, etc. - which do
49 def makeExtensionInclude(name): argument
51 - name - extension name"""
55 name,
59 def makeAPIInclude(type, name): argument
61 - type - type of the API, e.g. 'flags', 'handles', etc
62 - name - name of the API"""
[all …]
/third_party/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc1 // Protocol Buffers - Google's data interchange format
3 // https://developers.google.com/protocol-buffers/
15 // * Neither the name of Google Inc. nor the names of its
33 // This module outputs pure-Python protocol message classes that will
42 // performance-minded Python code leverage the fast C++ implementation
73 return sp.size() >= x.size() && sp.substr(sp.size() - x.size()) == x; in StrEndsWith()
85 // Returns the Python module name expected for a given .proto filename.
88 ReplaceCharacters(&basename, "-", '_'); in ModuleName()
99 // We can't have dots in the module name, so we replace each with _dot_. in ModuleAlias()
114 "return", "try", "while", "with", "yield", "print",
[all …]
/third_party/mksh/
Dcheck.pl3 #-
10 # is granted to deal in this work without restriction, including un-
22 #-
24 # name: a-test
27 # arguments: !-x!-f!
29 # echo -n *
31 # expected-stdout: !
33 # expected-stderr:
34 # + echo -n *
36 # expected-exit: 1
[all …]
/third_party/python/Tools/scripts/
Dparse_html5_entities.py20 """Download the json file from the url and returns a decoded object."""
22 data = f.read().decode('utf-8')
28 for name, value in entities.items():
29 new_html5[name.lstrip('&')] = value['characters']
33 """Compare the old and new dicts and print the differences."""
34 added = new.keys() - old.keys()
36 print('{} entitie(s) have been added:'.format(len(added)))
37 for name in sorted(added):
38 print(' {!r}: {!r}'.format(name, new[name]))
39 removed = old.keys() - new.keys()
[all …]
Dtexi2html.py3 # Convert GNU texinfo files into HTML, one file per node.
5 # Usage: texi2html [-d] [-d] [-c] inputfile outputdirectory
6 # The input file must be a complete texinfo file, e.g. emacs.texi.
8 # overwriting existing files of the same name. All files created have
13 # - handle @comment*** correctly
14 # - handle @xref {some words} correctly
15 # - handle @ftable correctly (items aren't indexed?)
16 # - handle @itemx properly
17 # - handle @exdent properly
18 # - add links directly to the proper line from indices
[all …]
Dobjgraph.py5 # Read "nm -o" input of a set of libraries or modules and print various
8 # - which names are used but not defined in the set (and used where),
9 # - which names are defined in the set (and where),
10 # - which modules use which other modules,
11 # - which modules are used by which other modules.
13 # Usage: objgraph [-cdu] [file] ...
14 # -c: print callers per objectfile
15 # -d: print callees per objectfile
16 # -u: print usage of undefined symbols
17 # If none of -cdu is specified, all are assumed.
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/scripts/
Dupdate.py6 # you may not use this file except in compliance with the License.
9 # http://www.apache.org/licenses/LICENSE-2.0
29 # LLVM_BRANCH must match the value of the same variable in third_party/update-llvm-10.sh
32 … must be set to the commit hash that we last updated to when running third_party/update-llvm-10.sh.
33 # Run 'git show -s origin/llvm10-clean' and look for 'llvm-10-update: <hash>' to retrieve it.
37 LLVM_STAGING_DIR = path.abspath(path.join(tempfile.gettempdir(), "llvm-10"))
51 # Per-platform arches
54 ('__x86_64__', 'x86_64-linux-android'),
55 ('__i386__', 'i686-linux-android'),
56 ('__arm__', 'armv7-linux-androideabi'),
[all …]
/third_party/protobuf/src/google/protobuf/compiler/ruby/
Druby_generator.cc1 // Protocol Buffers - Google's data interchange format
3 // https://developers.google.com/protocol-buffers/
15 // * Neither the name of Google Inc. nor the names of its
80 if (field->has_optional_keyword() && in LabelForField()
81 field->file()->syntax() == FileDescriptor::SYNTAX_PROTO3) { in LabelForField()
84 switch (field->label()) { in LabelForField()
93 switch (field->type()) { in TypeName()
131 switch(field->cpp_type()) { in DefaultValueForField()
133 return NumberToString(field->default_value_int32()); in DefaultValueForField()
135 return NumberToString(field->default_value_int64()); in DefaultValueForField()
[all …]
/third_party/toybox/tests/
Dfind.test3 [ -f testing.sh ] && . testing.sh
7 touch file
9 # fs timestamp granularity isn't always enough for -newer to tell, so wait
11 ln -s fifo link
16 touch perm/all-read-only
17 chmod a=r perm/all-read-only
19 #testing "name" "command" "result" "infile" "stdin"
23 testing "-type l -a -type d -o -type p" \
24 "find dir -type l -a -type d -o -type p" "dir/fifo\n" "" ""
25 testing "-type l -type d -o -type p" "find dir -type l -type d -o -type p" \
[all …]
/third_party/icu/tools/scripts/
Dbldicures.py1 #!/usr/bin/python -B
6 # Copyright (C) 2013-2014 IBM Corporation and Others. All Rights Reserved.
8 print("NOTE: this tool is a TECHNOLOGY PREVIEW and not a supported ICU tool.")
10 # @author Steven R. Loomis <srl@icu-project.org>
19 ##$ rm -rf ./out
20 ##$ bldicures.py --name myapp --from ./loc -d ./out
23 # use 'bldicures.py --help' for help.
36 # for utf-8
38 #sys.setdefaultencoding("utf-8")
45 … ICU Resource Builder', epilog='ICU tool, http://icu-project.org - master copy at http://source.ic…
[all …]
/third_party/python/Lib/ctypes/
Dutil.py6 # find_library(name) returns the pathname of a library, or None.
7 if os.name == "nt":
18 if i == -1:
22 majorVersion = int(s[:-2]) - 6
35 """Return the name of the VC runtime dll"""
55 def find_library(name): argument
56 if name in ('c', 'm'):
60 fname = os.path.join(directory, name)
70 elif os.name == "posix" and sys.platform == "darwin":
72 def find_library(name): argument
[all …]
/third_party/flatbuffers/grpc/src/compiler/
Dts_generator.cc5 * you may not use this file except in compliance with the License.
8 * http://www.apache.org/licenses/LICENSE-2.0
18 * NOTE: The following implementation is a translation for the Swift-grpc
20 * please open an issue in the flatbuffers repository. This file should always
21 * be maintained according to the Swift-grpc repository
57 // MARK: - Shared code
64 printer->Print( in GenerateImports()
66 printer->Print("import * as flatbuffers from 'flatbuffers';\n"); in GenerateImports()
70 for (auto it = 0; it < service->method_count(); it++) { in GenerateImports()
71 auto method = service->method(it); in GenerateImports()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_enum.cc1 // Protocol Buffers - Google's data interchange format
3 // https://developers.google.com/protocol-buffers/
15 // * Neither the name of Google Inc. nor the names of its
57 name_resolver_(context->GetNameResolver()) { in EnumGenerator()
58 for (int i = 0; i < descriptor_->value_count(); i++) { in EnumGenerator()
59 const EnumValueDescriptor* value = descriptor_->value(i); in EnumGenerator()
61 descriptor_->FindValueByNumber(value->number()); in EnumGenerator()
79 printer->Print( in Generate()
82 "classname", descriptor_->name(), "deprecation", in Generate()
83 descriptor_->options().deprecated() ? "@java.lang.Deprecated " : ""); in Generate()
[all …]
Djava_enum_field.cc1 // Protocol Buffers - Google's data interchange format
3 // https://developers.google.com/protocol-buffers/
15 // * Neither the name of Google Inc. nor the names of its
63 name_resolver->GetImmutableClassName(descriptor->enum_type()); in SetEnumVariables()
65 name_resolver->GetMutableClassName(descriptor->enum_type()); in SetEnumVariables()
68 StrCat(descriptor->default_value_enum()->number()); in SetEnumVariables()
72 internal::WireFormat::TagSize(descriptor->number(), GetType(descriptor))); in SetEnumVariables()
76 descriptor->options().deprecated() ? "@java.lang.Deprecated " : ""; in SetEnumVariables()
104 (*variables)["name"] + "_ != " + (*variables)["default"] + in SetEnumVariables()
118 if (SupportUnknownEnumValue(descriptor->file())) { in SetEnumVariables()
[all …]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/Retired/
DfixupRef.py3 # Copyright 2016-2024 The Khronos Group Inc.
5 # SPDX-License-Identifier: Apache-2.0
7 # fixupRef.py - replace old // refBegin .. // refEnd syntax with new
10 # Usage: fixupRef.py [-outdir path] [-overwrite] files
30 print("[open,refpage='" + pi.name +
34 file=fp)
36 print("[open,refpage='" + pi.name +
39 file=fp)
40 print('--', file=fp)
44 print('--', file=fp)
[all …]
/third_party/vk-gl-cts/external/vulkancts/scripts/
Dgen_vulkan_header.py7 # you may not use this file except in compliance with the License.
10 # http://www.apache.org/licenses/LICENSE-2.0
47 if "_SPEC_VERSION" in y.get("name"):
62 name = x.get("name")
65 baseextensions[name] = specver
67 if name not in currentheader:
69 missing.append(name)
72 print ("!! Warning: Current header contains extension with version 0:", name)
74 print ("!! Warning: Current header contains extension with unknown version:", name)
76 print ("!! Warning: current header does not include following base extension(s)")
[all …]
/third_party/mesa3d/src/freedreno/registers/
Dgen_header.py12 def __init__(self, name): argument
13 self.name = name
19 for (name, value) in self.values:
23 print("enum %s {" % self.name)
24 for (name, value) in self.values:
26 print("\t%s = 0x%08x," % (name, value))
28 print("\t%s = %d," % (name, value))
29 print("};\n")
35 def __init__(self, name, low, high, shr, type, parser): argument
36 self.name = name
[all …]
/third_party/skia/third_party/externals/libpng/scripts/
Doptions.awk1 #!/bin/awk -f
2 # scripts/options.awk - library build configuration control
4 # last changed in libpng version 1.6.11 - June 5, 2014
6 # Copyright (c) 1998-2014 Glenn Randers-Pehrson
12 # The output of this script is written to the file given by
14 # an intermediate output file, 'options.tmp' then again on
15 # that file to produce the final output:
17 # awk -f scripts/options.awk out=options.tmp scripts/options.dfa 1>&2
18 # awk -f scripts/options.awk out=options.dfn options.tmp 1>&2
29 # These options may also be specified in the original input file (and
[all …]
/third_party/rust/crates/clap/clap_complete_fig/tests/snapshots/
Dspecial_commands.fig.js2 name: "my-app", property
6 name: "test", property
10 name: "--case", property
14 name: "case", property
19 name: ["-h", "--help"], property
20 description: "Print help",
23 name: ["-V", "--version"], property
24 description: "Print version",
29 name: "some_cmd", property
33 name: "--config", property
[all …]
Dsub_subcommands.fig.js2 name: "my-app", property
6 name: "test", property
10 name: "--case", property
14 name: "case", property
19 name: ["-h", "--help"], property
20 description: "Print help",
23 name: ["-V", "--version"], property
24 description: "Print version",
29 name: "some_cmd", property
33 name: "sub_cmd", property
[all …]
/third_party/mesa3d/src/mapi/glapi/gen/
Dgl_apitemp.py18 # FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
36 self.name = "gl_apitemp.py (from Mesa)"
38 """Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
46 self.undef_list.append( "NAME" )
54 def printFunction(self, f, name): argument
60 if f.is_static_entry_point(name):
65 n = f.static_name(name)
69 for p in f.parameterIterator(name):
79 p_string = p_string + comma + p.name
80 o_string = o_string + comma + cast + p.name
[all …]
/third_party/icu/icu4c/source/i18n/
Dregexcst.pl6 # * Copyright (c) 2002-2016, International Business Machines Corporation and
16 # The output file, regexcst.h, is included by some of the .cpp regex
19 # regexcst.h generated file is put back into the source code repository.
30 $line_num = 0; # The line number in the input file.
46 @fields = @fields[0 .. $i-1];
57 # Does the first token end with a ":"? If so, it's the name of a state.
59 # so that we can later look up the number from the name.
63 $state_name =~ s/://; # strip off the colon from the state name.
66 print " rbbicst: at line $line-num duplicate definition of state $state_name\n";
83 # character [n] target-state [^push-state] [function-name]
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dregexcst.pl6 # * Copyright (c) 2002-2016, International Business Machines Corporation and
16 # The output file, regexcst.h, is included by some of the .cpp regex
19 # regexcst.h generated file is put back into the source code repository.
30 $line_num = 0; # The line number in the input file.
46 @fields = @fields[0 .. $i-1];
57 # Does the first token end with a ":"? If so, it's the name of a state.
59 # so that we can later look up the number from the name.
63 $state_name =~ s/://; # strip off the colon from the state name.
66 print " rbbicst: at line $line-num duplicate definition of state $state_name\n";
83 # character [n] target-state [^push-state] [function-name]
[all …]

12345678910>>...45