| /third_party/ninja/misc/ |
| D | ninja_syntax.py | 29 def escape_path(word: str) -> str: 40 def comment(self, text: str) -> None: 47 key: str, 48 value: Optional[Union[bool, int, float, str, List[str]]], 57 def pool(self, name: str, depth: int) -> None: 63 name: str, 64 command: str, 65 description: Optional[str] = None, 66 depfile: Optional[str] = None, 68 pool: Optional[str] = None, [all …]
|
| /third_party/rust/crates/nom/benchmarks/benches/ |
| D | ini_str.rs | 21 fn space_or_line_ending(i: &str) -> IResult<&str, &str> { in space_or_line_ending() 25 fn category(i: &str) -> IResult<&str, &str> { in category() 32 fn key_value(i: &str) -> IResult<&str, (&str, &str)> { in key_value() 42 fn keys_and_values_aggregator(i: &str) -> IResult<&str, Vec<(&str, &str)>> { in keys_and_values_aggregator() 46 fn keys_and_values(input: &str) -> IResult<&str, HashMap<&str, &str>> { in keys_and_values() 53 fn category_and_keys(i: &str) -> IResult<&str, (&str, HashMap<&str, &str>)> { in category_and_keys() 57 fn categories_aggregator(i: &str) -> IResult<&str, Vec<(&str, HashMap<&str, &str>)>> { in categories_aggregator() 61 fn categories(input: &str) -> IResult<&str, HashMap<&str, HashMap<&str, &str>>> { in categories()
|
| D | ini.rs | 19 fn category(i: &[u8]) -> IResult<&[u8], &str> { in category() 26 fn key_value(i: &[u8]) -> IResult<&[u8], (&str, &str)> { in key_value() 34 fn categories(i: &[u8]) -> IResult<&[u8], HashMap<&str, HashMap<&str, &str>>> { in categories() 49 let str = "[owner] in bench_ini() localVariable 67 let str = "server=192.0.2.62 in bench_ini_keys_and_values() localVariable 72 fn acc(i: &[u8]) -> IResult<&[u8], Vec<(&str, &str)>> { in bench_ini_keys_and_values() 84 let str = "server=192.0.2.62\n"; in bench_ini_key_value() localVariable
|
| /third_party/rust/crates/nom/tests/ |
| D | ini_str.rs | 16 fn not_line_ending(i: &str) -> IResult<&str, &str> { in not_line_ending() 20 fn space_or_line_ending(i: &str) -> IResult<&str, &str> { in space_or_line_ending() 24 fn category(i: &str) -> IResult<&str, &str> { in category() 31 fn key_value(i: &str) -> IResult<&str, (&str, &str)> { in key_value() 42 fn keys_and_values_aggregator(i: &str) -> IResult<&str, Vec<(&str, &str)>> { in keys_and_values_aggregator() 46 fn keys_and_values(input: &str) -> IResult<&str, HashMap<&str, &str>> { in keys_and_values() 53 fn category_and_keys(i: &str) -> IResult<&str, (&str, HashMap<&str, &str>)> { in category_and_keys() 57 fn categories_aggregator(i: &str) -> IResult<&str, Vec<(&str, HashMap<&str, &str>)>> { in categories_aggregator() 61 fn categories(input: &str) -> IResult<&str, HashMap<&str, HashMap<&str, &str>>> { in categories()
|
| D | custom_errors.rs | 16 fn from(error: (&'a str, ErrorKind)) -> Self { in from() 22 fn from_error_kind(_: &'a str, kind: ErrorKind) -> Self { in from_error_kind() 26 fn append(_: &'a str, kind: ErrorKind, other: CustomError) -> Self { in append() 31 fn test1(input: &str) -> IResult<&str, &str, CustomError> { in test1() 36 fn test2(input: &str) -> IResult<&str, &str, CustomError> { in test2() 41 fn test3(input: &str) -> IResult<&str, &str, CustomError> { in test3() 46 fn test4(input: &str) -> IResult<&str, Vec<&str>, CustomError> { in test4()
|
| /third_party/jinja2/ |
| D | ext.py | 26 def gettext(self, message: str) -> str: 29 def ngettext(self, singular: str, plural: str, n: int) -> str: 33 def pgettext(self, context: str, message: str) -> str: 36 def npgettext(self, context: str, singular: str, plural: str, n: int) -> str: 99 self, source: str, name: t.Optional[str], filename: t.Optional[str] = None 126 self, name: str, lineno: t.Optional[int] = None 139 name: str, 170 def _make_new_gettext(func: t.Callable[[str], str]) -> t.Callable[..., str]: 172 def gettext(__context: Context, __string: str, **variables: t.Any) -> str: 184 def _make_new_ngettext(func: t.Callable[[str, str, int], str]) -> t.Callable[..., str]: argument [all …]
|
| D | environment.py | 108 extensions: t.Sequence[t.Union[str, t.Type["Extension"]]], 294 block_start_string: str = BLOCK_START_STRING, 295 block_end_string: str = BLOCK_END_STRING, 296 variable_start_string: str = VARIABLE_START_STRING, 297 variable_end_string: str = VARIABLE_END_STRING, 298 comment_start_string: str = COMMENT_START_STRING, 299 comment_end_string: str = COMMENT_END_STRING, 300 line_statement_prefix: t.Optional[str] = LINE_STATEMENT_PREFIX, 301 line_comment_prefix: t.Optional[str] = LINE_COMMENT_PREFIX, 306 extensions: t.Sequence[t.Union[str, t.Type["Extension"]]] = (), [all …]
|
| D | loaders.py | 24 def split_template_path(template: str) -> t.List[str]: 75 self, environment: "Environment", template: str 110 name: str, 111 globals: t.Optional[t.MutableMapping[str, t.Any]] = None, 180 searchpath: t.Union[str, os.PathLike, t.Sequence[t.Union[str, os.PathLike]]], 181 encoding: str = "utf-8", 192 self, environment: "Environment", template: str 273 package_name: str, 274 package_path: "str" = "templates", 275 encoding: str = "utf-8", [all …]
|
| /third_party/python/Tools/peg_generator/pegen/ |
| D | sccutils.py | 7 vertices: AbstractSet[str], edges: Dict[str, AbstractSet[str]] 28 def dfs(v: str) -> Iterator[Set[str]]: 53 data: Dict[AbstractSet[str], Set[AbstractSet[str]]] 101 graph: Dict[str, AbstractSet[str]], scc: AbstractSet[str], start: str 120 def dfs(node: str, path: List[str]) -> Iterator[List[str]]:
|
| D | build.py | 22 def get_extra_flags(compiler_flags: str, compiler_py_flags_nodist: str) -> List[str]: 31 generated_source_path: str, 32 build_dir: Optional[str] = None, 36 library_dir: Optional[str] = None, 169 grammar_file: str, verbose_tokenizer: bool = False, verbose_parser: bool = False 182 def generate_token_definitions(tokens: IO[str]) -> TokenDefinitions: 213 grammar_file: str, 214 tokens_file: str, 215 output_file: str, 242 grammar_file: str, [all …]
|
| /third_party/backends/backend/genesys/ |
| D | serialize.h | 35 inline void serialize_newline(std::ostream& str) { str << '\n'; } in serialize_newline() 36 inline void serialize_newline(std::istream& str) { (void) str; } in serialize_newline() 38 inline void serialize(std::ostream& str, bool x) { str << static_cast<unsigned>(x) << " "; } in serialize() 39 inline void serialize(std::istream& str, bool& x) { unsigned v; str >> v; x = v; } in serialize() 40 inline void serialize(std::ostream& str, char x) { str << static_cast<int>(x) << " "; } in serialize() 41 inline void serialize(std::istream& str, char& x) { int v; str >> v; x = v; } in serialize() 42 inline void serialize(std::ostream& str, unsigned char x) { str << static_cast<unsigned>(x) << " ";… in serialize() 43 inline void serialize(std::istream& str, unsigned char& x) { unsigned v; str >> v; x = v; } in serialize() 44 inline void serialize(std::ostream& str, signed char x) { str << static_cast<int>(x) << " "; } in serialize() 45 inline void serialize(std::istream& str, signed char& x) { int v; str >> v; x = v; } in serialize() [all …]
|
| /third_party/rust/crates/memchr/bench/src/memmem/ |
| D | imp.rs | 22 pub(crate) fn available(_: &str) -> &'static [&'static str] { in available() 29 pub(crate) fn oneshot(haystack: &str, needle: &str) -> bool { in oneshot() 34 needle: &str, in prebuilt() 41 haystack: &'a str, in oneshotiter() 42 needle: &'a str, in oneshotiter() 57 haystack: &'a str, in iter() 67 pub(crate) fn oneshot(haystack: &str, needle: &str) -> bool { in oneshot() 72 needle: &str, in prebuilt() 79 haystack: &'a str, in oneshotiter() 80 needle: &'a str, in oneshotiter() [all …]
|
| /third_party/rust/crates/memchr/bench/src/ |
| D | data.rs | 10 pub const SUBTITLE_EN_HUGE: &'static str = variable 12 pub const SUBTITLE_EN_MEDIUM: &'static str = variable 14 pub const SUBTITLE_EN_SMALL: &'static str = variable 16 pub const SUBTITLE_EN_TINY: &'static str = variable 18 pub const SUBTITLE_EN_TEENY: &'static str = variable 21 pub const SUBTITLE_RU_HUGE: &'static str = variable 23 pub const SUBTITLE_RU_MEDIUM: &'static str = variable 25 pub const SUBTITLE_RU_SMALL: &'static str = variable 27 pub const SUBTITLE_RU_TINY: &'static str = variable 29 pub const SUBTITLE_RU_TEENY: &'static str = variable [all …]
|
| /third_party/rust/crates/nom/examples/ |
| D | s_expression.rs | 68 fn parse_builtin_op<'a>(i: &'a str) -> IResult<&'a str, BuiltIn, VerboseError<&'a str>> { in parse_builtin_op() 87 fn parse_builtin<'a>(i: &'a str) -> IResult<&'a str, BuiltIn, VerboseError<&'a str>> { in parse_builtin() 99 fn parse_bool<'a>(i: &'a str) -> IResult<&'a str, Atom, VerboseError<&'a str>> { in parse_bool() 112 fn parse_keyword<'a>(i: &'a str) -> IResult<&'a str, Atom, VerboseError<&'a str>> { in parse_keyword() 121 fn parse_num<'a>(i: &'a str) -> IResult<&'a str, Atom, VerboseError<&'a str>> { in parse_num() 134 fn parse_atom<'a>(i: &'a str) -> IResult<&'a str, Atom, VerboseError<&'a str>> { in parse_atom() 144 fn parse_constant<'a>(i: &'a str) -> IResult<&'a str, Expr, VerboseError<&'a str>> { in parse_constant() 155 fn s_exp<'a, O1, F>(inner: F) -> impl FnMut(&'a str) -> IResult<&'a str, O1, VerboseError<&'a str>> in s_exp() 175 fn parse_application<'a>(i: &'a str) -> IResult<&'a str, Expr, VerboseError<&'a str>> { in parse_application() 189 fn parse_if<'a>(i: &'a str) -> IResult<&'a str, Expr, VerboseError<&'a str>> { in parse_if() [all …]
|
| D | json.rs | 30 fn sp<'a, E: ParseError<&'a str>>(i: &'a str) -> IResult<&'a str, &'a str, E> { in sp() argument 53 fn parse_str<'a, E: ParseError<&'a str>>(i: &'a str) -> IResult<&'a str, &'a str, E> { in parse_str() argument 94 fn string<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in string() 96 ) -> IResult<&'a str, &'a str, E> { in string() 107 fn array<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in array() 109 ) -> IResult<&'a str, Vec<JsonValue>, E> { in array() 122 fn key_value<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in key_value() 124 ) -> IResult<&'a str, (&'a str, JsonValue), E> { in key_value() 132 fn hash<'a, E: ParseError<&'a str> + ContextError<&'a str>>( in hash() 134 ) -> IResult<&'a str, HashMap<String, JsonValue>, E> { in hash() [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/ccsrc/plugin/device/ascend/kernel/ascendc/cmake/util/ |
| D | opdesc_parser.py | 40 def __init__(self: any, op_type: str): 69 def _parse_digit(conf: str) -> int: 73 def _parse_flag(conf: str) -> bool: 79 def _parse_str(conf: str) -> str: 83 def _parse_list(conf: str) -> list: 86 def parse_input(self: any, conf: str): 99 def parse_output(self: any, conf: str): 112 def parse_op_format(self: any, conf: str): 115 def parse_check_support(self: any, conf: str): 118 def parse_range_limit(self: any, conf: str): [all …]
|
| /third_party/mindspore/mindspore-src/source/mindspore/lite/tools/kernel_builder/ascend/ascendc/cmake/util/ |
| D | opdesc_parser.py | 13 def __init__(self: any, op_type: str): 40 def _parse_digit(conf: str) -> int: 44 def _parse_flag(conf: str) -> bool: 50 def _parse_str(conf: str) -> str: 54 def _parse_list(conf: str) -> list: 57 def parse_input(self: any, conf: str): 72 def parse_output(self: any, conf: str): 87 def parse_op_format(self: any, conf: str): 92 def parse_check_support(self: any, conf: str): 96 def parse_range_limit(self: any, conf: str): [all …]
|
| /third_party/mesa3d/bin/ |
| D | commit_in_branch.py | 8 def print_(args: argparse.Namespace, success: bool, message: str) -> None: 41 def is_commit_valid(commit: str) -> bool: 48 def branch_has_commit(upstream: str, branch: str, commit: str) -> bool: 59 def branch_has_backport_of_commit(upstream: str, branch: str, commit: str) -> str: 71 def canonicalize_commit(commit: str) -> str: 85 def validate_branch(branch: str) -> str:
|
| /third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/val/ |
| D | val_data_test.cpp | 108 std::string str = header + R"( in TEST_F() local 118 std::string str = header + R"( in TEST_F() local 128 std::string str = header + R"( in TEST_F() local 137 std::string str = header + R"( in TEST_F() local 146 std::string str = header + R"( in TEST_F() local 155 std::string str = header + R"( in TEST_F() local 165 std::string str = header + R"( in TEST_F() local 175 std::string str = header_with_vec16_cap + R"( in TEST_F() local 184 std::string str = header + R"( in TEST_F() local 194 std::string str = header_with_vec16_cap + R"( in TEST_F() local [all …]
|
| /third_party/skia/third_party/externals/spirv-tools/test/val/ |
| D | val_data_test.cpp | 108 std::string str = header + R"( in TEST_F() local 118 std::string str = header + R"( in TEST_F() local 128 std::string str = header + R"( in TEST_F() local 137 std::string str = header + R"( in TEST_F() local 146 std::string str = header + R"( in TEST_F() local 155 std::string str = header + R"( in TEST_F() local 165 std::string str = header + R"( in TEST_F() local 175 std::string str = header_with_vec16_cap + R"( in TEST_F() local 184 std::string str = header + R"( in TEST_F() local 194 std::string str = header_with_vec16_cap + R"( in TEST_F() local [all …]
|
| /third_party/spirv-tools/test/val/ |
| D | val_data_test.cpp | 107 std::string str = header + R"( in TEST_F() local 117 std::string str = header + R"( in TEST_F() local 127 std::string str = header + R"( in TEST_F() local 136 std::string str = header + R"( in TEST_F() local 145 std::string str = header + R"( in TEST_F() local 154 std::string str = header + R"( in TEST_F() local 164 std::string str = header + R"( in TEST_F() local 174 std::string str = header_with_vec16_cap + R"( in TEST_F() local 183 std::string str = header + R"( in TEST_F() local 193 std::string str = header_with_vec16_cap + R"( in TEST_F() local [all …]
|
| /third_party/skia/third_party/externals/angle2/src/tests/preprocessor_tests/ |
| D | if_test.cpp | 18 const char *str = in TEST_F() local 36 const char *str = in TEST_F() local 54 const char *str = in TEST_F() local 76 const char *str = in TEST_F() local 98 const char *str = in TEST_F() local 132 const char *str = in TEST_F() local 162 const char *str = in TEST_F() local 192 const char *str = in TEST_F() local 224 const char *str = in TEST_F() local 256 const char *str = in TEST_F() local [all …]
|
| /third_party/python/Tools/scripts/ |
| D | deepfreeze.py | 60 names: Tuple[str, ...], 90 def analyze_character_width(s: str) -> Tuple[int, bool]: 105 def removesuffix(base: str, suffix: str) -> str: 135 def write(self, arg: str) -> None: 139 def block(self, prefix: str, suffix: str = "") -> None: 145 def object_head(self, typename: str) -> None: 150 def object_var_head(self, typename: str, size: int) -> None: 155 def field(self, obj: object, name: str) -> None: 158 def generate_bytes(self, name: str, b: bytes) -> str: 175 def generate_unicode(self, name: str, s: str) -> str: [all …]
|
| /third_party/mbedtls/scripts/mbedtls_dev/ |
| D | macro_collector.py | 25 def __init__(self, filename: str, line_number: Union[int, str]) -> None: argument 51 def __init__(self, filename: str, binary: bool = False) -> None: 123 def is_internal_name(self, name: str) -> bool: 150 def _format_arguments(name: str, arguments: Iterable[str]) -> str: 160 def _argument_split(cls, arguments: str) -> List[str]: 163 def distribute_arguments(self, name: str) -> Iterator[str]: 194 self, seen: Set[str], name: str 202 def generate_expressions(self, names: Iterable[str]) -> Iterator[str]: 240 def algorithm_tester(name: str) -> str: 260 def record_algorithm_subtype(self, name: str, expansion: str) -> None: [all …]
|
| /third_party/mbedtls/scripts/ |
| D | code_size_compare.py | 55 version: str, 56 git_rev: str, 57 arch: str, 58 config: str, 59 compiler: str, 60 opt_level: str, 90 host_arch: str, 91 measure_cmd: str, 109 record_dir: str, 110 comp_dir: str, [all …]
|