Home
last modified time | relevance | path

Searched full:world (Results 1 – 25 of 2519) sorted by relevance

12345678910>>...101

/third_party/jerryscript/tests/jerry/
Dstring-prototype-substring.js55 assert("hello world!".substring(0, 11) === "hello world");
57 assert("hello world!".substring(11, 0) === "hello world");
59 assert("hello world!".substring(0, 12) === "hello world!");
61 assert("hello world!".substring(12, 0) === "hello world!");
64 assert("hello world!".substring(NaN, 12) === "hello world!");
67 assert("hello world!".substring(2, NaN) === "he");
70 assert("hello world!".substring(2, undefined) === "llo world!");
73 assert("hello world!".substring(-1,8) === "hello wo");
79 assert("hello world!".substring(-1,-8) === "");
82 assert("hello world!".substring(-1,10000) === "hello world!");
[all …]
Dstring-prototype-substr.js55 assert("Hello world!".substr(0, 11) === "Hello world");
57 assert("Hello world!".substr(11, 0) === "");
59 assert("Hello world!".substr(0, 12) === "Hello world!");
61 assert("Hello world!".substr(12, 0) === "");
63 assert("Hello world!".substr(NaN, 12) === "Hello world!");
66 assert("Hello world!".substr(2, NaN) === "");
69 assert("Hello world!".substr(2, undefined) === "llo world!");
72 assert("Hello world!".substr(-1,8) === "!");
78 assert("Hello world!".substr(-1,-8) === "");
81 assert("Hello world!".substr(-1,10000) === "!");
[all …]
Dstring-prototype-trim.js56 assert(" hello world".trim() === "hello world");
58 assert("hello world ".trim() === "hello world");
60 assert(" hello world ".trim() === "hello world");
62 assert("\t hello world\n".trim() === "hello world");
64 assert("\t\n hello world\t \n ".trim() === "hello world");
66 assert("hello world\n \t\t".trim() === "hello world");
68 assert(" hello world \\ ".trim() === "hello world \\");
70 assert("**hello world**".trim() === "**hello world**");
Dstring-prototype-indexof.js34 assert("Hello world, welcome to the universe.".indexOf("welcome") === 13);
36 assert("Hello world, welcome to the universe.".indexOf("Hello world, welcome to the universe.") ===…
38 assert("Hello world, welcome to the universe.".indexOf("welcome",10) == 13);
40 assert("Hello world, welcome to the universe.".indexOf("welcome",-100) == 13);
42 assert("Hello world, welcome to the universe.".indexOf("welcome", 15) === -1);
44 assert("Hello world, welcome to the universe.".indexOf("o", 15) === 17);
72 assert("Hello world, welcome to the universe.".indexOf(NaN) === -1);
74 assert("Hello world, welcome to the universe.".indexOf("welcome",NaN) === 13);
80 assert("hello world!".indexOf("world", -Infinity) === 6);
82 assert("hello world!".indexOf("world", Infinity) === -1);
[all …]
Dstring-prototype-charcodeat.js41 assert("hello world!".charCodeAt(0) === 104);
43 assert("hello world!".charCodeAt(1) === 101);
45 assert("HELLO WORLD".charCodeAt(10) === 68);
48 assert(isNaN("hello world!".charCodeAt(-Infinity)));
50 assert(isNaN("hello world!".charCodeAt(Infinity)));
52 assert("hello world!".charCodeAt(11) === 33);
54 assert(isNaN("hello world!".charCodeAt(12)));
66 assert(isNaN("hello world!".charCodeAt(-1)));
68 assert(isNaN("hello world!".charCodeAt(-9999999)));
70 assert("hello world!".charCodeAt(-0) === 104);
[all …]
Dstring-prototype-charat.js38 assert("hello world!".charAt(NaN) === "h");
44 assert("hello world!".charAt(0) === "h");
46 assert("hello world!".charAt(1) === "e");
49 assert("hello world!".charAt(-Infinity) === "");
51 assert("hello world!".charAt(Infinity) === "");
53 assert("hello world!".charAt(11) === "!");
55 assert("hello world!".charAt(12) === "");
67 assert("hello world!".charAt(-1) === "");
69 assert("hello world!".charAt(-9999999) === "");
71 assert("hello world!".charAt(-0) === "h");
[all …]
/third_party/boost/libs/mpi/doc/
Dcollective.qbk16 following program broadcasts "Hello, World!" from process 0 to every
28 mpi::communicator world;
31 if (world.rank() == 0) {
32 value = "Hello, World!";
35 broadcast(world, value, 0);
37 std::cout << "Process #" << world.rank() << " says " << value
46 Process #0 says Hello, World!
47 Process #2 says Hello, World!
48 Process #1 says Hello, World!
49 Process #4 says Hello, World!
[all …]
Dcommunicator.qbk11 When the MPI environment is initialized, only the "world" communicator
13 available. The "world" communicator, accessed by default-constructing
17 duplicating or building subsets of the "world" communicator. For
30 void generate_data(mpi::communicator local, mpi::communicator world);
31 void collect_data(mpi::communicator local, mpi::communicator world);
36 mpi::communicator world;
38 bool is_generator = world.rank() < 2 * world.size() / 3;
39 mpi::communicator local = world.split(is_generator? 0 : 1);
40 if (is_generator) generate_data(local, world);
41 else collect_data(local, world);
[all …]
Dpoint_to_point.qbk15 The following program uses two MPI processes to write "Hello, world!"
27 mpi::communicator world;
29 if (world.rank() == 0) {
30 world.send(1, 0, std::string("Hello"));
32 world.recv(1, 1, msg);
36 world.recv(0, 0, msg);
39 world.send(0, 1, std::string("world"));
47 it receives, along with a comma, then passes the message "world" back
68 Let's revisit our "Hello, world!" program from the previous
72 if (world.rank() == 0) {
[all …]
/third_party/boost/libs/mpi/example/
Dgenerate_collect_optional.cpp19 void generate_data(mpi::communicator local, mpi::communicator world) in generate_data() argument
24 // The rank of the collector within the world communicator in generate_data()
27 srand(time(0) + world.rank()); in generate_data()
42 world.send(master_collector, msg_data_packet, data); in generate_data()
51 world.send(master_collector, msg_finished); in generate_data()
54 void collect_data(mpi::communicator local, mpi::communicator world) in collect_data() argument
56 // The rank of the collector within the world communicator in collect_data()
57 int master_collector = world.size() - local.size(); in collect_data()
59 if (world.rank() == master_collector) { in collect_data()
62 mpi::status msg = world.probe(); in collect_data()
[all …]
Dgenerate_collect.cpp18 void generate_data(mpi::communicator local, mpi::communicator world) in generate_data() argument
23 // The rank of the collector within the world communicator in generate_data()
26 srand(time(0) + world.rank()); in generate_data()
41 world.send(master_collector, msg_data_packet, data); in generate_data()
50 world.send(master_collector, msg_finished); in generate_data()
53 void collect_data(mpi::communicator local, mpi::communicator world) in collect_data() argument
55 // The rank of the collector within the world communicator in collect_data()
56 int master_collector = world.size() - local.size(); in collect_data()
58 if (world.rank() == master_collector) { in collect_data()
61 mpi::status msg = world.probe(); in collect_data()
[all …]
Dparallel_example.cpp30 mpi::communicator world; in calculate_samples() local
31 mpi::communicator calculate_communicator = world.split(0); in calculate_samples()
42 if (world.rank()==0) in calculate_samples()
43 world.send(master_accumulate_rank,sample_skeleton_tag,mpi::skeleton(sample)); in calculate_samples()
77 world.send(master_accumulate_rank,sample_tag,sample_content); in calculate_samples()
87 if (world.rank()==0) in calculate_samples()
88 world.send(master_accumulate_rank,quit_tag); in calculate_samples()
99 mpi::communicator world; in accumulate_samples() local
100 mpi::communicator accumulate_communicator = world.split(1); in accumulate_samples()
107 world.recv(0,sample_skeleton_tag,mpi::skeleton(sample)); in accumulate_samples()
[all …]
Drandom_content.cpp21 mpi::communicator world; in main() local
23 if (world.size() < 2 || world.size() > 4) { in main()
24 if (world.rank() == 0) in main()
26 world.abort(-1); in main()
29 if (world.rank() == 0) { in main()
38 world.abort(-1); in main()
43 broadcast(world, mpi::skeleton(l), 0); in main()
62 broadcast(world, c, 0); in main()
67 broadcast(world, c, 0); in main()
72 broadcast(world, mpi::skeleton(l), 0); in main()
[all …]
Dreduce_performance_test.cpp63 mpi::communicator world; in main() local
71 if (world.rank() == 0) in main()
72 std::cout << "# of processors: " << world.size() << std::endl in main()
75 int value = world.rank(); in main()
77 wrapped_int wi_value = world.rank(); in main()
79 serialized_int si_value = world.rank(); in main()
84 reduce(world, value, result, std::plus<int>(), 0); in main()
85 reduce(world, value, result, add_int(), 0); in main()
86 reduce(world, wi_value, wi_result, std::plus<wrapped_int>(), 0); in main()
87 reduce(world, si_value, si_result, std::plus<serialized_int>(), 0); in main()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/lv2/
Dgstlv2.c133 const LilvPlugins *plugins = lilv_world_get_all_plugins (world); in lv2_plugin_discover()
227 world = lilv_world_new (); in plugin_init()
228 lilv_world_load_all (world); in plugin_init()
239 atom_class = lilv_new_uri (world, LILV_URI_ATOM_PORT); in plugin_init()
240 audio_class = lilv_new_uri (world, LILV_URI_AUDIO_PORT); in plugin_init()
241 control_class = lilv_new_uri (world, LILV_URI_CONTROL_PORT); in plugin_init()
242 cv_class = lilv_new_uri (world, LILV_URI_CV_PORT); in plugin_init()
243 event_class = lilv_new_uri (world, LILV_URI_EVENT_PORT); in plugin_init()
244 input_class = lilv_new_uri (world, LILV_URI_INPUT_PORT); in plugin_init()
245 output_class = lilv_new_uri (world, LILV_URI_OUTPUT_PORT); in plugin_init()
[all …]
/third_party/boost/libs/mpi/test/python/
Dbroadcast_test.py22 broadcast_test(mpi.world, 17, 'integer', 0)
23 broadcast_test(mpi.world, 'Hello, World!', 'string', 0)
24 broadcast_test(mpi.world, ['Hello', 'MPI', 'Python', 'World'],
26 if mpi.world.size > 1:
27 broadcast_test(mpi.world, 17, 'integer', 1)
28 broadcast_test(mpi.world, 'Hello, World!', 'string', 1)
29 broadcast_test(mpi.world, ['Hello', 'MPI', 'Python', 'World'],
Dring_test.py34 if mpi.world.size < 2:
36 mpi.world.abort(-1);
38 ring_test(mpi.world, 17, 'integers', 0)
39 ring_test(mpi.world, 17, 'integers', 1)
40 ring_test(mpi.world, 'Hello, World!', 'string', 0)
41 ring_test(mpi.world, 'Hello, World!', 'string', 1)
42 ring_test(mpi.world, ['Hello', 'MPI', 'Python', 'World'], 'list of strings', 0)
43 ring_test(mpi.world, ['Hello', 'MPI', 'Python', 'World'], 'list of strings', 1)
/third_party/boost/libs/mpi/test/
Dwait_any_test.cpp25 mpi::communicator world; in BOOST_AUTO_TEST_CASE() local
27 std::vector<std::string> ss(world.size()); in BOOST_AUTO_TEST_CASE()
32 for (int i = 0; i < world.size(); ++i) { in BOOST_AUTO_TEST_CASE()
33 rreqs.push_back(world.irecv(i, i, ss[i])); in BOOST_AUTO_TEST_CASE()
38 std::string msg = "Hello, World! this is "; in BOOST_AUTO_TEST_CASE()
39 fmt << msg << world.rank(); in BOOST_AUTO_TEST_CASE()
42 for (int i = 0; i < world.size(); ++i) { in BOOST_AUTO_TEST_CASE()
43 sreqs.push_back(world.isend(i, world.rank(), fmt.str())); in BOOST_AUTO_TEST_CASE()
46 for (int i = 0; i < world.size(); ++i) { in BOOST_AUTO_TEST_CASE()
49 out << "Proc " << world.rank() << " got message from " << completed.first.source() << '\n'; in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/toybox/tests/
Dgzip.test19 testing "no files (stdin to stdout)" "echo hello world | gzip > f.gz &&
20 test -f f.gz && zcat f.gz" "hello world\n" "" ""
33 echo "hello world" | gzip > f.gz
35 test -f f && ! test -f f.gz && cat f" "hello world\n" "" ""
38 echo "hello world" | gzip > f.gz
40 ! test -f f && test -f f.gz" "hello world\n" "" ""
44 echo "hello world" > f1
48 "refused\nhello world\nprecious data\n" "" ""
51 "allowed\nhello world\n" "" ""
55 echo "hello world" > f1
[all …]
/third_party/libphonenumber/cpp/test/phonenumbers/
Dstringutil_test.cc41 EXPECT_TRUE(HasPrefixString("hello world", "hello")); in TEST()
42 EXPECT_FALSE(HasPrefixString("hello world", "hellO")); in TEST()
50 EXPECT_EQ(string::npos, FindNth("hello world", 'o', -1)); in TEST()
54 EXPECT_EQ(string::npos, FindNth("hello world", 'o', 3)); in TEST()
58 EXPECT_EQ(7U, FindNth("hello world", 'o', 2)); in TEST()
75 SplitStringUsing(":hello:world:", ":", &result); in TEST()
78 EXPECT_EQ("world", result[1]); in TEST()
83 SplitStringUsing("hello::world", ":", &result); in TEST()
86 EXPECT_EQ("world", result[1]); in TEST()
93 EXPECT_TRUE(TryStripPrefixString("hello world", "hello", &s)); in TEST()
[all …]
/third_party/boost/libs/python/test/
Dpickle3.cpp8 The world class below contains member data (secret_number) that
31 class world class
34 world(const std::string& _country) : secret_number(0) { in world() function in boost_python_test::world
50 getinitargs(const world& w) in getinitargs()
59 world const& w = boost::python::extract<world const&>(w_obj)(); in getstate()
71 world& w = extract<world&>(w_obj)(); in setstate()
100 boost::python::class_<world>( in BOOST_PYTHON_MODULE()
101 "world", boost::python::init<const std::string&>()) in BOOST_PYTHON_MODULE()
102 .def("greet", &world::greet) in BOOST_PYTHON_MODULE()
103 .def("get_secret_number", &world::get_secret_number) in BOOST_PYTHON_MODULE()
[all …]
Dpickle2.cpp8 The world class below contains member data (secret_number) that
34 class world class
37 world(const std::string& _country) : secret_number(0) { in world() function in boost_python_test::world
53 getinitargs(const world& w) in getinitargs()
60 getstate(const world& w) in getstate()
67 setstate(world& w, boost::python::tuple state) in setstate()
90 boost::python::class_<world>( in BOOST_PYTHON_MODULE()
91 "world", boost::python::init<const std::string&>()) in BOOST_PYTHON_MODULE()
92 .def("greet", &world::greet) in BOOST_PYTHON_MODULE()
93 .def("get_secret_number", &world::get_secret_number) in BOOST_PYTHON_MODULE()
[all …]
/third_party/boost/libs/numeric/odeint/examples/mpi/
Dphase_chain.cpp41 const bool have_left = x.world.rank() > 0, in operator ()()
42 have_right = x.world.rank() < x.world.size()-1; in operator ()()
47 x.world.isend( x.world.rank()-1 , 0 , x().front() ); // send to x_right in operator ()()
48 r_left = x.world.irecv( x.world.rank()-1 , 0 , x_left ); // receive from x().back() in operator ()()
52 x.world.isend( x.world.rank()+1 , 0 , x().back() ); // send to x_left in operator ()()
53 r_right = x.world.irecv( x.world.rank()+1 , 0 , x_right ); // receive from x().front() in operator ()()
88 boost::mpi::communicator world; in main() local
92 if( world.rank() == 0 ) in main()
100 state_type x_split( world ); in main()
112 if( world.rank() == 0 ) in main()
/third_party/node/deps/npm/node_modules/ansistyles/
DREADME.md16 console.log(styles.bright('hello world')); // prints hello world in 'bright' white
17 console.log(styles.underline('hello world')); // prints hello world underlined
18 console.log(styles.inverse('hello world')); // prints hello world black on white
32 // prints hello world underlined in blue on a green background
33 colors.bgGreen(colors.blue(styles.underline('hello world')))
54 Therefore the below only underlines `hell` only, but not `world`.
57 console.log(styles.underline('hell' + styles.reset('o') + ' world'));
63 console.log(styles.underline('hell') + styles.reset('') + 'o world');
/third_party/boost/libs/nowide/test/
Dtest_fstream_cxx11.cpp60 TEST(s == "World"); in test_ifstream()
72 TEST(s == "World"); in test_ifstream()
85 TEST(s == "World"); in test_ifstream()
104 TEST(f << " world"); in test_ofstream()
106 TEST(get_file_contents(filename) == "Hello world"); in test_ofstream()
116 TEST(f << " world"); in test_ofstream()
118 TEST(get_file_contents(filename) == "Hello world"); in test_ofstream()
129 TEST(f << " world"); in test_ofstream()
131 TEST(get_file_contents(filename) == "Hello world"); in test_ofstream()
150 TEST(f << " world"); in test_fstream()
[all …]

12345678910>>...101