Home
last modified time | relevance | path

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

12345678

/external/python/cpython3/Lib/test/
Dtest_string.py211 self.assertEqual(s.substitute(dict(who='tim', what='ham')),
213 self.assertRaises(KeyError, s.substitute, dict(who='tim'))
214 self.assertRaises(TypeError, Template.substitute)
219 self.assertEqual(s.substitute(d), 'tim likes ham for dinner')
220 self.assertRaises(KeyError, s.substitute,
226 eq(s.substitute(dict(who='tim', what='ham')),
229 eq(s.substitute(dict(who='tim', what='ham')), 'tim likes $')
235 eq(s.substitute(d), '%(foo)s baz baz')
242 eq(s.substitute(d), 'tim has eaten 7 bags of ham today')
245 eq(s.substitute(d), 'tim has eaten 7 bags of ham today')
[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/harfbuzz_ng/src/
Dhb-ot-layout-gsub-table.hh129 unsigned int count = substitute.len; in closure()
135 c->glyphs->add (substitute[iter.get_coverage ()]); in closure()
144 unsigned int count = substitute.len; in collect_glyphs()
149 c->output->add (substitute[iter.get_coverage ()]); in collect_glyphs()
171 if (unlikely (index >= substitute.len)) return_trace (false); in apply()
173 glyph_id = substitute[index]; in apply()
186 if (unlikely (!substitute.serialize (c, substitutes, num_glyphs))) return_trace (false); in serialize()
194 return_trace (coverage.sanitize (c, this) && substitute.sanitize (c)); in sanitize()
203 substitute; /* Array of substitute member
206 DEFINE_SIZE_ARRAY (6, substitute);
[all …]
Dhb-ot-shape-private.hh59 …inline void substitute (hb_font_t *font, hb_buffer_t *buffer) const { map.substitute (this, font, … in substitute() function
/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/skia/tools/bookmaker/
DincludeWriter.cpp1597 string substitute; in ConvertRef() local
1604 substitute += c; in ConvertRef()
1607 return substitute; in ConvertRef()
1615 string substitute; in resolveMethod() local
1618 substitute = methodname + "()"; in resolveMethod()
1632 substitute = methodname + "()"; in resolveMethod()
1650 return substitute; in resolveMethod()
1666 string substitute; in resolveRef() local
1686 substitute = fBmhStructDef->fName; in resolveRef()
1690 if (!rootDef && !substitute.length()) { in resolveRef()
[all …]
/external/libmojo/base/android/jni_generator/
Djni_generator.py796 return WrapOutput(template.substitute(values))
848 ret += [template.substitute(values)]
889 return template.substitute(values)
990 return template.substitute(values)
994 'base::android::JavaParamRef<${TYPE}>(env, ${NAME})').substitute({
1067 return RemoveIndentedEmptyLines(template.substitute(values))
1169 function_signature_template.substitute(values))
1172 function_header_with_unused_template.substitute(values))
1174 values['FUNCTION_HEADER'] = function_header_template.substitute(values)
1175 return RemoveIndentedEmptyLines(template.substitute(values))
[all …]
/external/skqp/tools/bookmaker/
DincludeWriter.cpp1495 string substitute; in ConvertRef() local
1502 substitute += c; in ConvertRef()
1505 return substitute; in ConvertRef()
1513 string substitute; in resolveMethod() local
1516 substitute = methodname + "()"; in resolveMethod()
1530 substitute = methodname + "()"; in resolveMethod()
1548 return substitute; in resolveMethod()
1591 string substitute; in resolveRef() local
1595 substitute = string(child->fContentStart, in resolveRef()
1600 if (!substitute.length()) { in resolveRef()
[all …]
/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/python/cpython3/Tools/unicode/
Dgencjkcodecs.py60 code = TEMPLATE.substitute(ENCODING=enc.upper(),
/external/python/cpython2/Tools/unicode/
Dgencjkcodecs.py60 code = TEMPLATE.substitute(ENCODING=enc.upper(),
/external/tensorflow/tensorflow/core/framework/
Dattr_value_util.cc526 bool SubstitutePlaceholders(const SubstituteFunc& substitute, in SubstitutePlaceholders() argument
532 if (!SubstitutePlaceholders(substitute, &p.second)) { in SubstitutePlaceholders()
541 if (!SubstitutePlaceholders(substitute, &p.second)) { in SubstitutePlaceholders()
547 return substitute(value->placeholder(), value); in SubstitutePlaceholders()
/external/curl/tests/data/
Dtest108535 # use the startup of the IPv6 test server as a substitute check for this).
/external/swiftshader/third_party/LLVM/test/lib/
Dllvm.exp48 proc substitute { line test tmpFile } { procedure
171 set runline [ substitute $runline $test $tmpFile ]
/external/clang/docs/tools/
Ddump_format_style.py16 def substitute(text, tag, contents): function
195 contents = substitute(contents, 'FORMAT_STYLE_OPTIONS', options_text)
/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTString.h328 CPVRTString& substitute(char _src,char _subDes, bool _all = true);
337 CPVRTString& substitute(const char* _src, const char* _subDes, bool _all = true);
/external/swiftshader/third_party/LLVM/test/CodeGen/PowerPC/
D2009-08-17-inline-asm-addr-mode-breakage.ll5 ; It is wrong on powerpc to substitute reg+reg for $0; the stw opcode
/external/python/cpython3/Doc/tutorial/
Dstdlib2.rst85 >>> t.substitute(village='Nottingham', cause='the ditch fund')
88 The :meth:`~string.Template.substitute` method raises a :exc:`KeyError` when a
96 >>> t.substitute(d)
118 ... newname = t.substitute(d=date, n=i, f=ext)
126 of multiple output formats. This makes it possible to substitute custom
/external/python/cpython2/Doc/tutorial/
Dstdlib2.rst85 >>> t.substitute(village='Nottingham', cause='the ditch fund')
88 The :meth:`~string.Template.substitute` method raises a :exc:`KeyError` when a
96 >>> t.substitute(d)
118 ... newname = t.substitute(d=date, n=i, f=ext)
126 of multiple output formats. This makes it possible to substitute custom
/external/llvm/test/CodeGen/PowerPC/
D2009-08-17-inline-asm-addr-mode-breakage.ll5 ; It is wrong on powerpc to substitute reg+reg for $0; the stw opcode
/external/skia/tools/skqp/
Dgn_to_bp.py199 print >>f, bp.substitute({
/external/skqp/tools/skqp/
Dgn_to_bp.py201 print >>f, bp.substitute({

12345678