Home
last modified time | relevance | path

Searched full:substitute (Results 1 – 25 of 11548) sorted by relevance

12345678910>>...462

/external/cldr/common/supplemental/
Dcharacters.xml14 <substitute>(C)</substitute>
17 <substitute>&lt;&lt;</substitute>
20 <substitute>-</substitute>
23 <substitute>(R)</substitute>
26 <substitute>&gt;&gt;</substitute>
29 <substitute> 1/4</substitute>
32 <substitute> 1/2</substitute>
35 <substitute> 3/4</substitute>
38 <substitute>AE</substitute>
41 <substitute>ss</substitute>
[all …]
/external/abseil-cpp/absl/strings/
Dsubstitute_test.cc15 #include "absl/strings/substitute.h"
25 TEST(SubstituteTest, Substitute) { in TEST() argument
27 EXPECT_EQ("Hello, world!", absl::Substitute("$0, $1!", "Hello", "world")); in TEST()
31 absl::Substitute("$0 $1 $2 $3 $4 $5 $6", 123, 0.2, 0.1f, in TEST()
40 absl::Substitute( in TEST()
49 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
58 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
67 std::string str = absl::Substitute("$0", int_p); in TEST()
74 str = absl::Substitute("$0", volptr); in TEST()
77 // null is special. StrCat prints 0x0. Substitute prints NULL. in TEST()
[all …]
Dsubstitute.h17 // File: substitute.h
22 // `Substitute()` and `SubstituteAndAppend()`.
24 // Unlike printf-style format specifiers, `Substitute()` functions do not need
30 // `Substitute()` does not allow you to specify *how* to format a value, beyond
42 // std::string s = Substitute("$1 purchased $0 $2 for $$10. Thanks $1!",
59 // If an invalid format string is provided, Substitute returns an empty string
65 // e.g. Substitute("Hello $2", "world"), or
94 // This class provides an argument type for `absl::Substitute()` and
490 // Substitute()
495 // The declarations of `Substitute()` below consist of overloads for passing 0
[all …]
/external/tensorflow/third_party/absl/abseil-cpp/absl/strings/
Dsubstitute_test.cc15 #include "absl/strings/substitute.h"
25 TEST(SubstituteTest, Substitute) { in TEST() argument
27 EXPECT_EQ("Hello, world!", absl::Substitute("$0, $1!", "Hello", "world")); in TEST()
31 absl::Substitute("$0 $1 $2 $3 $4 $5 $6", 123, 0.2, 0.1f, in TEST()
40 absl::Substitute( in TEST()
49 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
58 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
67 std::string str = absl::Substitute("$0", int_p); in TEST()
74 str = absl::Substitute("$0", volptr); in TEST()
77 // null is special. StrCat prints 0x0. Substitute prints NULL. in TEST()
[all …]
Dsubstitute.h17 // File: substitute.h
22 // `Substitute()` and `SubstituteAndAppend()`.
24 // Unlike printf-style format specifiers, `Substitute()` functions do not need
30 // `Substitute()` does not allow you to specify *how* to format a value, beyond
42 // std::string s = Substitute("$1 purchased $0 $2 for $$10. Thanks $1!",
59 // If an invalid format string is provided, Substitute returns an empty string
65 // e.g. Substitute("Hello $2", "world"), or
94 // This class provides an argument type for `absl::Substitute()` and
506 // Substitute()
511 // The declarations of `Substitute()` below consist of overloads for passing 0
[all …]
/external/angle/third_party/abseil-cpp/absl/strings/
Dsubstitute_test.cc15 #include "absl/strings/substitute.h"
35 TEST(SubstituteTest, Substitute) { in TEST() argument
37 EXPECT_EQ("Hello, world!", absl::Substitute("$0, $1!", "Hello", "world")); in TEST()
41 absl::Substitute("$0 $1 $2 $3 $4 $5 $6", 123, 0.2, 0.1f, in TEST()
50 absl::Substitute( in TEST()
59 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
68 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
77 std::string str = absl::Substitute("$0", int_p); in TEST()
84 str = absl::Substitute("$0", volptr); in TEST()
87 // null is special. StrCat prints 0x0. Substitute prints NULL. in TEST()
[all …]
Dchar_formatting_test.cc20 #include "absl/strings/substitute.h"
32 EXPECT_EQ(absl::Substitute("$0B", v), "AB"); in TEST()
47 EXPECT_EQ(absl::Substitute("$0B", v), "AB"); in TEST()
60 EXPECT_EQ(absl::Substitute("$0B", v), "AB"); in TEST()
68 EXPECT_EQ(absl::Substitute("$0B", v), "65B"); in TEST()
74 EXPECT_EQ(absl::Substitute("$0B", w), "255B"); in TEST()
83 EXPECT_EQ(absl::Substitute("$0B", v), "65B"); in TEST()
89 EXPECT_EQ(absl::Substitute("$0B", w), "-128B"); in TEST()
98 EXPECT_EQ(absl::Substitute("$0B", v), "65B"); in TEST()
104 EXPECT_EQ(absl::Substitute("$0B", w), "255B"); in TEST()
[all …]
/external/cronet/third_party/abseil-cpp/absl/strings/
Dsubstitute_test.cc15 #include "absl/strings/substitute.h"
35 TEST(SubstituteTest, Substitute) { in TEST() argument
37 EXPECT_EQ("Hello, world!", absl::Substitute("$0, $1!", "Hello", "world")); in TEST()
41 absl::Substitute("$0 $1 $2 $3 $4 $5 $6", 123, 0.2, 0.1f, in TEST()
50 absl::Substitute( in TEST()
59 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
68 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
77 std::string str = absl::Substitute("$0", int_p); in TEST()
84 str = absl::Substitute("$0", volptr); in TEST()
87 // null is special. StrCat prints 0x0. Substitute prints NULL. in TEST()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dsubstitute_test.cc15 #include "absl/strings/substitute.h"
35 TEST(SubstituteTest, Substitute) { in TEST() argument
37 EXPECT_EQ("Hello, world!", absl::Substitute("$0, $1!", "Hello", "world")); in TEST()
41 absl::Substitute("$0 $1 $2 $3 $4 $5 $6", 123, 0.2, 0.1f, in TEST()
50 absl::Substitute( in TEST()
59 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
68 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
77 std::string str = absl::Substitute("$0", int_p); in TEST()
84 str = absl::Substitute("$0", volptr); in TEST()
87 // null is special. StrCat prints 0x0. Substitute prints NULL. in TEST()
[all …]
Dsubstitute.h17 // File: substitute.h
22 // `Substitute()` and `SubstituteAndAppend()`.
24 // Unlike printf-style format specifiers, `Substitute()` functions do not need
30 // `Substitute()` does not allow you to specify *how* to format a value, beyond
42 // std::string s = Substitute("$1 purchased $0 $2 for $$10. Thanks $1!",
61 // If an invalid format string is provided, Substitute returns an empty string
67 // e.g. Substitute("Hello $2", "world"), or
97 // This class provides an argument type for `absl::Substitute()` and
515 // Substitute()
520 // The declarations of `Substitute()` below consist of overloads for passing 0
[all …]
/external/openscreen/third_party/abseil/src/absl/strings/
Dsubstitute_test.cc15 #include "absl/strings/substitute.h"
25 TEST(SubstituteTest, Substitute) { in TEST() argument
27 EXPECT_EQ("Hello, world!", absl::Substitute("$0, $1!", "Hello", "world")); in TEST()
31 absl::Substitute("$0 $1 $2 $3 $4 $5 $6", 123, 0.2, 0.1f, in TEST()
40 absl::Substitute( in TEST()
49 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
58 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
67 std::string str = absl::Substitute("$0", int_p); in TEST()
74 str = absl::Substitute("$0", volptr); in TEST()
77 // null is special. StrCat prints 0x0. Substitute prints NULL. in TEST()
[all …]
Dsubstitute.h17 // File: substitute.h
22 // `Substitute()` and `SubstituteAndAppend()`.
24 // Unlike printf-style format specifiers, `Substitute()` functions do not need
30 // `Substitute()` does not allow you to specify *how* to format a value, beyond
42 // std::string s = Substitute("$1 purchased $0 $2 for $$10. Thanks $1!",
59 // If an invalid format string is provided, Substitute returns an empty string
65 // e.g. Substitute("Hello $2", "world"), or
94 // This class provides an argument type for `absl::Substitute()` and
469 // Substitute()
474 // The declarations of `Substitute()` below consist of overloads for passing 0
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dsubstitute_test.cc15 #include "absl/strings/substitute.h"
25 TEST(SubstituteTest, Substitute) { in TEST() argument
27 EXPECT_EQ("Hello, world!", absl::Substitute("$0, $1!", "Hello", "world")); in TEST()
31 absl::Substitute("$0 $1 $2 $3 $4 $5 $6", 123, 0.2, 0.1f, in TEST()
40 absl::Substitute( in TEST()
49 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
58 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
67 std::string str = absl::Substitute("$0", int_p); in TEST()
74 str = absl::Substitute("$0", volptr); in TEST()
77 // null is special. StrCat prints 0x0. Substitute prints NULL. in TEST()
[all …]
Dsubstitute.h17 // File: substitute.h
22 // `Substitute()` and `SubstituteAndAppend()`.
24 // Unlike printf-style format specifiers, `Substitute()` functions do not need
30 // `Substitute()` does not allow you to specify *how* to format a value, beyond
42 // std::string s = Substitute("$1 purchased $0 $2 for $$10. Thanks $1!",
59 // If an invalid format string is provided, Substitute returns an empty string
65 // e.g. Substitute("Hello $2", "world"), or
94 // This class provides an argument type for `absl::Substitute()` and
469 // Substitute()
474 // The declarations of `Substitute()` below consist of overloads for passing 0
[all …]
/external/libtextclassifier/abseil-cpp/absl/strings/
Dsubstitute_test.cc15 #include "absl/strings/substitute.h"
25 TEST(SubstituteTest, Substitute) { in TEST() argument
27 EXPECT_EQ("Hello, world!", absl::Substitute("$0, $1!", "Hello", "world")); in TEST()
31 absl::Substitute("$0 $1 $2 $3 $4 $5 $6", 123, 0.2, 0.1f, in TEST()
40 absl::Substitute( in TEST()
49 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
58 absl::Substitute("$0$1$2$3$4 $5", // in TEST()
67 std::string str = absl::Substitute("$0", int_p); in TEST()
74 str = absl::Substitute("$0", volptr); in TEST()
77 // null is special. StrCat prints 0x0. Substitute prints NULL. in TEST()
[all …]
Dsubstitute.h17 // File: substitute.h
22 // `Substitute()` and `SubstituteAndAppend()`.
24 // Unlike printf-style format specifiers, `Substitute()` functions do not need
30 // `Substitute()` does not allow you to specify *how* to format a value, beyond
42 // std::string s = Substitute("$1 purchased $0 $2 for $$10. Thanks $1!",
59 // If an invalid format string is provided, Substitute returns an empty string
65 // e.g. Substitute("Hello $2", "world"), or
94 // This class provides an argument type for `absl::Substitute()` and
469 // Substitute()
474 // The declarations of `Substitute()` below consist of overloads for passing 0
[all …]
/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/harfbuzz_ng/src/OT/Layout/GSUB/
DSequence.hh15 substitute; /* String of GlyphIDs to substitute */ member
17 DEFINE_SIZE_ARRAY (2, substitute);
22 return_trace (substitute.sanitize (c)); in sanitize()
26 { return hb_all (substitute, glyphs); } in intersects()
29 { c->output->add_array (substitute.arrayZ, substitute.len); } in closure()
32 { c->output->add_array (substitute.arrayZ, substitute.len); } in collect_glyphs()
37 unsigned int count = substitute.len; in apply()
51 c->replace_glyph (substitute.arrayZ[0]); in apply()
105 c->output_glyph_for_component (substitute.arrayZ[i], klass); in apply()
138 return_trace (substitute.serialize (c, subst)); in serialize()
[all …]
DSingleSubstFormat2.hh19 substitute; /* Array of substitute member
23 DEFINE_SIZE_ARRAY (4 + Types::size, substitute);
28 return_trace (coverage.sanitize (c, this) && substitute.sanitize (c)); in sanitize()
42 if (substitute.len > glyph_set.get_population () * 4) in closure()
47 if (i == NOT_COVERED || i >= substitute.len) in closure()
49 c->output->add (substitute.arrayZ[i]); in closure()
55 + hb_zip (cov, substitute) in closure()
67 + hb_zip (this+coverage, substitute) in collect_glyphs()
84 if (unlikely (index >= substitute.len)) return_trace (false); in apply()
94 c->replace_glyph (substitute[index]); in apply()
[all …]
DReverseChainSingleSubstFormat1.hh26 substituteX; /* Array of substitute
39 const auto &substitute = StructAfter<decltype (substituteX)> (lookahead); in sanitize() local
40 return_trace (substitute.sanitize (c)); in sanitize()
73 const auto &substitute = StructAfter<decltype (substituteX)> (lookahead); in closure() local
75 + hb_zip (this+coverage, substitute) in closure()
99 const auto &substitute = StructAfter<decltype (substituteX)> (lookahead); in collect_glyphs() local
100 count = substitute.len; in collect_glyphs()
101 c->output->add_array (substitute.arrayZ, substitute.len); in collect_glyphs()
119 const auto &substitute = StructAfter<decltype (substituteX)> (lookahead); in apply() local
121 if (unlikely (index >= substitute.len)) return_trace (false); in apply()
[all …]
/external/fonttools/Tests/mtiLib/data/mti/
Dgsubreversechanined.ttx.GSUB30 <Substitute index="0" value="rayf1"/>
31 <Substitute index="1" value="reyf1"/>
32 <Substitute index="2" value="yayf1"/>
33 <Substitute index="3" value="zayf1"/>
55 <Substitute index="0" value="ayehf1"/>
56 <Substitute index="1" value="hamzayeharabf1"/>
57 <Substitute index="2" value="hamzayehf1"/>
58 <Substitute index="3" value="yehf1"/>
75 <Substitute index="0" value="dal1"/>
76 <Substitute index="1" value="del1"/>
[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/libtextclassifier/native/utils/strings/
Dsubstitute_test.cc17 #include "utils/strings/substitute.h"
29 TEST(SubstituteTest, Substitute) { in TEST() argument
31 strings::Substitute("$0, $1!", {"Hello", "world"})); in TEST()
35 strings::Substitute("$1, $0!", {"Hello", "world"})); in TEST()
37 strings::Substitute("$1, $0, $2, $1", {"a", "b", "c"})); in TEST()
40 EXPECT_EQ("$", strings::Substitute("$$", {})); in TEST()
41 EXPECT_EQ("$1", strings::Substitute("$$1", {})); in TEST()
44 EXPECT_EQ("Text: ''", strings::Substitute("Text: '$0'", {null_cstring})); in TEST()
/external/fonttools/Tests/feaLib/data/
DGSUB_8.ttx67 <Substitute index="0" value="Q"/>
107 <Substitute index="0" value="S"/>
108 <Substitute index="1" value="T"/>
109 <Substitute index="2" value="U"/>
110 <Substitute index="3" value="V"/>
111 <Substitute index="4" value="W"/>
112 <Substitute index="5" value="X"/>
113 <Substitute index="6" value="Y"/>
114 <Substitute index="7" value="Z"/>
123 <Substitute index="0" value="P"/>
/external/tensorflow/tensorflow/lite/delegates/gpu/common/task/
Dtensor_desc.cc24 #include "absl/strings/substitute.h"
113 *result = absl::Substitute(conversion, *result); in MayBeAddConversion()
775 result = absl::Substitute("$0(image2d, smp_zero, (int2)($1, $2))", in Read()
779 result = absl::Substitute("image2d.read(ushort2($0, $1))", coords[0], in Read()
796 absl::Substitute("$0(image3d, smp_zero, (int4)($1, $2, $3, 0))", in Read()
800 result = absl::Substitute("image3d.read(ushort3($0, $1, $2))", in Read()
816 result = absl::Substitute( in Read()
821 result = absl::Substitute("image2d_array.read(ushort2($0, $1), $2)", in Read()
840 result = absl::Substitute("image_buffer.read(uint($0))", coords[0]); in Read()
877 write_expr = absl::Substitute(conversion, write_expr); in Write()
[all …]

12345678910>>...462