Home
last modified time | relevance | path

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

12345678910>>...12

/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/llvm-project/llvm/test/CodeGen/NVPTX/
Dwmma.py305 test_params["intrinsic"] = Template(intrinsic_template).substitute(params)
307 test_params["instruction"] = Template(instruction_template).substitute(params)
318 print(Template(load_template).substitute(test_params))
379 test_params["intrinsic"] = Template(intrinsic_template).substitute(params)
381 test_params["instruction"] = Template(instruction_template).substitute(params)
392 print(Template(store_template).substitute(test_params))
469 test_params["intrinsic"] = Template(intrinsic_template).substitute(params)
471 test_params["instruction"] = Template(instruction_template).substitute(params)
480 print(Template(mma_template).substitute(test_params))
Dld-st-addrrspace.py90 params["generic_ptr"] = Template(generic_ptr_template).substitute(params)
92 print(Template(load_template).substitute(params))
/external/harfbuzz_ng/src/
Dhb-ot-layout-gsub-table.hh150 + hb_zip (this+coverage, substitute) in closure()
160 + hb_zip (this+coverage, substitute) in collect_glyphs()
177 if (unlikely (index >= substitute.len)) return_trace (false); in apply()
179 c->replace_glyph (substitute[index]); in apply()
200 if (unlikely (!substitute.serialize (c, substitutes))) return_trace (false); in serialize()
212 + hb_zip (this+coverage, substitute) in subset()
227 return_trace (coverage.sanitize (c, this) && substitute.sanitize (c)); in sanitize()
236 substitute; /* Array of substitute member
239 DEFINE_SIZE_ARRAY (6, substitute);
304 { return hb_all (substitute, glyphs); } in intersects()
[all …]
/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.py23 return _TabMenuTemplate.substitute(table_name=escaped)
57 return _ResultsSectionHTML.substitute(
198 return _MainHTML.substitute(
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DUnitConverter.java179 resultCollector.substitute(new BigDecimal("0.3048"), this.CONSTANT_FT2M); in getConversionRate()
180 …resultCollector.substitute(new BigDecimal("411557987.0").divide(new BigDecimal("131002976.0"), DEC… in getConversionRate()
181 resultCollector.substitute(new BigDecimal("9.80665"), this.CONSTANT_GRAVITY); in getConversionRate()
182 resultCollector.substitute(new BigDecimal("6.67408E-11"), this.CONSTANT_G); in getConversionRate()
183 resultCollector.substitute(new BigDecimal("0.00454609"), this.CONSTANT_GAL_IMP2M3); in getConversionRate()
184 resultCollector.substitute(new BigDecimal("0.45359237"), this.CONSTANT_LB2KG); in getConversionRate()
189 private void substitute(BigDecimal value, int power) { in substitute() method in UnitConverter.Factor
/external/icu/android_icu4j/src/main/java/android/icu/impl/units/
DUnitConverter.java186 resultCollector.substitute(new BigDecimal("0.3048"), this.CONSTANT_FT2M); in getConversionRate()
187 …resultCollector.substitute(new BigDecimal("411557987.0").divide(new BigDecimal("131002976.0"), DEC… in getConversionRate()
188 resultCollector.substitute(new BigDecimal("9.80665"), this.CONSTANT_GRAVITY); in getConversionRate()
189 resultCollector.substitute(new BigDecimal("6.67408E-11"), this.CONSTANT_G); in getConversionRate()
190 resultCollector.substitute(new BigDecimal("0.00454609"), this.CONSTANT_GAL_IMP2M3); in getConversionRate()
191 resultCollector.substitute(new BigDecimal("0.45359237"), this.CONSTANT_LB2KG); in getConversionRate()
196 private void substitute(BigDecimal value, int power) { in substitute() method in UnitConverter.Factor
/external/python/cpython2/Tools/bgen/bgen/
DbgenType.py216 def __init__(self, substitute): argument
217 self.substitute = substitute
233 return self.substitute
/external/icu/icu4c/source/common/
Dlocdspnm.cpp294 UDisplayContext substitute; member in LocaleDisplayNamesImpl
341 UnicodeString& result, bool substitute) const;
363 , substitute(UDISPCTX_SUBSTITUTE) in LocaleDisplayNamesImpl()
376 , substitute(UDISPCTX_SUBSTITUTE) in LocaleDisplayNamesImpl()
392 substitute = value; in LocaleDisplayNamesImpl()
545 return substitute; in getContext()
620 localeIdName(lang, resultName, substitute == UDISPCTX_SUBSTITUTE); in localeDisplayName()
719 UnicodeString& result, bool substitute) const { in localeIdName()
726 if (substitute) { in localeIdName()
745 if (substitute == UDISPCTX_SUBSTITUTE) { in languageDisplayName()
[all …]
/external/llvm-project/clang/test/CodeGen/
Dbuiltins-nvptx-mma.py198 "intrinsic" : Template(intrinsic_template).substitute({
206 results[(min_ptx,min_sm)] += Template(load_template).substitute(params)
265 "intrinsic" : Template(intrinsic_template).substitute({
273 results[(min_ptx, min_sm)] += Template(mma_template).substitute(params)
303 print(Template(run_template).substitute({
/external/fonttools/Tests/feaLib/data/
Dmini.fea10 substitute f i by f_i;
11 substitute f l by f_l;
/external/cldr/tools/java/org/unicode/cldr/util/
DCharacterFallbacks.java40 String substitute = characterFallbacks.getStringValue(path); in CharacterFallbacks() local
46 substitutes.add(substitute); in CharacterFallbacks()
DSimpleXMLSource.java181 public static String replace(UnicodeSet unicodeSet, String valueToMatch, String substitute) { in replace() argument
194 if (substitute.length() != 0) { in replace()
195 b.append(substitute); in replace()
/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/pybind11/
Dsetup.py58 return string.Template(contents.decode()).substitute(opts).encode()
60 return string.Template(contents).substitute(opts)
/external/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/regex/
DVarString.java77 RegexTransformer.substitute(varString, '%', c -> varMap.getOrDefault(c, "%" + c))) in resolve()
84 return RegexTransformer.substitute(varString, '%', c -> varMap.getOrDefault(c, "%" + c)); in get()
/external/python/google-api-python-client/
Ddescribe.py250 return string.Template(METHOD_TEMPLATE).substitute(
320 string.Template(COLLECTION_LINK).substitute(href=href, name=name)
330 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/deqp-deps/SPIRV-Tools/test/tools/
Dplaceholder.py210 return Template(self.filename).substitute(vars(testcase))
213 return Template(self.filename).substitute(vars(testcase))
/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))

12345678910>>...12