Home
last modified time | relevance | path

Searched refs:substitute (Results 1 – 25 of 238) sorted by relevance

12345678910

/external/python/cpython3/Lib/test/
Dtest_string.py210 self.assertEqual(s.substitute(dict(who='tim', what='ham')),
212 self.assertRaises(KeyError, s.substitute, dict(who='tim'))
213 self.assertRaises(TypeError, Template.substitute)
218 self.assertEqual(s.substitute(d), 'tim likes ham for dinner')
219 self.assertRaises(KeyError, s.substitute,
225 self.assertEqual(s.substitute(d), 'tim likes ham for dinner')
230 self.assertEqual(s.substitute(d), 'tim likes ham for dinner')
235 eq(s.substitute(dict(who='tim', what='ham')),
238 eq(s.substitute(dict(who='tim', what='ham')), 'tim likes $')
244 eq(s.substitute(d), '%(foo)s baz baz')
[all …]
/external/python/cpython2/Lib/test/
Dtest_string.py242 self.assertEqual(s.substitute(dict(who='tim', what='ham')),
244 self.assertRaises(KeyError, s.substitute, dict(who='tim'))
245 self.assertRaises(TypeError, Template.substitute)
250 self.assertEqual(s.substitute(d), 'tim likes ham for dinner')
251 self.assertRaises(KeyError, s.substitute,
257 eq(s.substitute(dict(who='tim', what='ham')),
260 eq(s.substitute(dict(who='tim', what='ham')), 'tim likes $')
266 eq(s.substitute(d), '%(foo)s baz baz')
273 eq(s.substitute(d), 'tim has eaten 7 bags of ham today')
276 eq(s.substitute(d), 'tim has eaten 7 bags of ham today')
[all …]
/external/deqp/modules/glshared/
DglsLongStressTestUtil.cpp58 string ProgramLibrary::substitute (const string& templ, const map<string, string>& additionalParams… in substitute() function in deqp::gls::LongStressTestUtil::ProgramLibrary
77 string ProgramLibrary::substitute (const std::string& templ) const in substitute() function in deqp::gls::LongStressTestUtil::ProgramLibrary
79 return substitute(templ, map<string, string>()); in substitute()
122 firstLevelParams["VTX_DUMMY_INPUTS"] = substitute(vtxDummyInputs); in generateBufferContext()
126 …gls::ProgramContext context(substitute(vertexTemplate, firstLevelParams).c_str(), substitute(fragm… in generateBufferContext()
161 …gls::ProgramContext context(substitute(vertexTemplate).c_str(), substitute(fragmentTemplate).c_str… in generateTextureContext()
222 firstLevelParams["VTX_TEX_COORD_INPUTS"] = substitute(vtxTexCoordInputs); in generateBufferAndTextureContext()
223 firstLevelParams["VTX_TEX_COORD_OUTPUTS"] = substitute(vtxTexCoordOutputs); in generateBufferAndTextureContext()
225 firstLevelParams["FRAG_TEX_COORD_INPUTS"] = substitute(fragTexCoordInputs); in generateBufferAndTextureContext()
227 firstLevelParams["FRAG_COLOR_EXPRESSION"] = substitute(fragColorExpression); in generateBufferAndTextureContext()
[all …]
DglsLongStressTestUtil.hpp51 std::string substitute (const std::string&) const;
52 …std::string substitute (const std::string&, const std::map<std::string, std::string>&)…
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/NVPTX/
Dwmma.py90 test_params["intrinsic"] = Template(intrinsic_template).substitute(params)
92 test_params["instruction"] = Template(instruction_template).substitute(params)
106 print(Template(load_template).substitute(test_params))
158 test_params["intrinsic"] = Template(intrinsic_template).substitute(params)
160 test_params["instruction"] = Template(instruction_template).substitute(params)
171 print(Template(store_template).substitute(test_params))
212 test_params["intrinsic"] = Template(intrinsic_template).substitute(params)
214 test_params["instruction"] = Template(instruction_template).substitute(params)
224 print(Template(mma_template).substitute(test_params))
Dld-st-addrrspace.py88 params["generic_ptr"] = Template(generic_ptr_template).substitute(params)
90 print(Template(load_template).substitute(params))
/external/harfbuzz_ng/src/
Dhb-ot-layout-gsub-table.hh151 unsigned int count = substitute.len; in closure()
157 c->out->add (substitute[iter.get_coverage ()]); in closure()
165 unsigned int count = substitute.len; in collect_glyphs()
170 c->output->add (substitute[iter.get_coverage ()]); in collect_glyphs()
188 if (unlikely (index >= substitute.len)) return_trace (false); in apply()
190 c->replace_glyph (substitute[index]); in apply()
201 if (unlikely (!substitute.serialize (c, substitutes))) return_trace (false); in serialize()
217 to.push ()->set (glyph_map[substitute[iter.get_coverage ()]]); in subset()
227 return_trace (coverage.sanitize (c, this) && substitute.sanitize (c)); in sanitize()
236 substitute; /* Array of substitute member
[all …]
/external/autotest/client/cros/update_engine/
Dnano_omaha_devserver.py113 return EOL_TEMPLATE.substitute(appid=appid)
134 rollback_flags = ROLLBACK_TEMPLATE.substitute(
144 per_url += PER_URL_TEMPLATE.substitute(template_keys)
151 FLAG_TEMPLATE.substitute(key=key, value=value))
163 return RESPONSE_TEMPLATE.substitute(template_keys)
/external/libchrome/base/android/jni_generator/
Djni_registration_generator.py131 return template.substitute(registration_dict)
180 forward_declaration += template.substitute(value)
194 register_body = template.substitute(value)
239 return template.substitute(values)
256 ret += [template.substitute(values)]
287 self._SetDictValue('JNI_NATIVE_METHOD', template.substitute(values))
Djni_generator.py832 return template.substitute(values)
864 ret += [template.substitute(values)]
889 ret += [template.substitute(values)]
964 return WrapOutput(template.substitute(values))
1021 'base::android::JavaParamRef<${TYPE}>(env, ${NAME})').substitute({
1116 return RemoveIndentedEmptyLines(template.substitute(values))
1242 function_signature_template.substitute(values))
1245 function_header_with_unused_template.substitute(values))
1247 values['FUNCTION_HEADER'] = function_header_template.substitute(values)
1253 return RemoveIndentedEmptyLines(template.substitute(values))
[all …]
/external/toolchain-utils/crosperf/
Dresults_report_templates.py21 return _TabMenuTemplate.substitute(table_name=escaped)
55 return _ResultsSectionHTML.substitute(
196 return _MainHTML.substitute(
/external/python/cpython2/Tools/bgen/bgen/
DbgenType.py216 def __init__(self, substitute): argument
217 self.substitute = substitute
233 return self.substitute
/external/fonttools/Tests/feaLib/data/
Dmini.fea10 substitute f i by f_i;
11 substitute f l by f_l;
/external/v8/
Dgenmakefiles.py38 ''').substitute({'module_name': module_name, 'srcs' : _bpList(sorted(sources))}))
96 ''').substitute({'srcs': _bpList(sorted(sources)),
120 ''').substitute({'srcs' : _bpList(sources)})) ## Not sorted intentionally
155 ''').substitute({'srcs' : _bpList(sorted(sources))}))
/external/cldr/tools/java/org/unicode/cldr/util/
DCharacterFallbacks.java41 String substitute = characterFallbacks.getStringValue(path); in CharacterFallbacks() local
47 substitutes.add(substitute); in CharacterFallbacks()
DSimpleXMLSource.java162 public static String replace(UnicodeSet unicodeSet, String valueToMatch, String substitute) { in replace() argument
175 if (substitute.length() != 0) { in replace()
176 b.append(substitute); in replace()
/external/u-boot/cmd/
Dsetexpr.c80 static char *substitute(char *string, /* string buffer */ in substitute() function
259 np = substitute(np, &nlen, in regex_sub()
270 datap = substitute(datap, &len, SLRE_BUFSZ, in regex_sub()
/external/skia/tools/bookmaker/
DincludeWriter.cpp2093 string substitute; in resolveMethod() local
2096 substitute = methodname + "()"; in resolveMethod()
2110 substitute = methodname + "()"; in resolveMethod()
2125 substitute = methodname + "()"; in resolveMethod()
2148 return substitute; in resolveMethod()
2176 string substitute; in resolveRef() local
2196 substitute = fBmhStructDef->fName; in resolveRef()
2203 if (!rootDef && !substitute.length()) { in resolveRef()
2222 substitute = this->resolveAlias(rootDef); in resolveRef()
2224 if (!substitute.length()) { in resolveRef()
[all …]
/external/skqp/tools/bookmaker/
DincludeWriter.cpp2094 string substitute; in resolveMethod() local
2097 substitute = methodname + "()"; in resolveMethod()
2111 substitute = methodname + "()"; in resolveMethod()
2126 substitute = methodname + "()"; in resolveMethod()
2149 return substitute; in resolveMethod()
2177 string substitute; in resolveRef() local
2197 substitute = fBmhStructDef->fName; in resolveRef()
2204 if (!rootDef && !substitute.length()) { in resolveRef()
2223 substitute = this->resolveAlias(rootDef); in resolveRef()
2225 if (!substitute.length()) { in resolveRef()
[all …]
/external/python/google-api-python-client/
Ddescribe.py235 return string.Template(METHOD_TEMPLATE).substitute(
304 html.append(string.Template(COLLECTION_LINK).substitute(
313 html.append(string.Template(METHOD_LINK).substitute(
/external/python/cpython2/Misc/Vim/
Dvim_syntax.py68 skip = skip_regex.substitute(sep=separator)
72 yield regex_template.substitute(raw=raw, sep=separator, skip=skip,
/external/swiftshader/third_party/SPIRV-Tools/test/tools/
Dplaceholder.py210 return Template(self.filename).substitute(vars(testcase))
213 return Template(self.filename).substitute(vars(testcase))
/external/deqp-deps/SPIRV-Tools/test/tools/
Dplaceholder.py210 return Template(self.filename).substitute(vars(testcase))
213 return Template(self.filename).substitute(vars(testcase))
/external/python/cpython2/Tools/unicode/
Dgencjkcodecs.py60 code = TEMPLATE.substitute(ENCODING=enc.upper(),
/external/python/cpython3/Tools/unicode/
Dgencjkcodecs.py60 code = TEMPLATE.substitute(ENCODING=enc.upper(),

12345678910