MCPcopy Create free account
hub / github.com/acl-dev/acl / test1

Function test1

lib_acl_cpp/samples/benchmark/split/main.cpp:8–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6const char *sep = ",;'?! \t\r\n";
7
8static void test1() {
9 for (int i = 0; i < max; i++) {
10 acl::string buf(str);
11 std::list<acl::string>& tokens = buf.split(sep);
12 if (i > 0) {
13 continue;
14 }
15
16 printf("Use acl::string::split:\r\n");
17 for (std::list<acl::string>::const_iterator cit = tokens.begin();
18 cit != tokens.end(); ++cit) {
19 printf("%s ", (*cit).c_str());
20 }
21 printf("\r\n");
22 }
23}
24
25static void test2() {
26 for (int i = 0; i < max; i++) {

Callers 1

mainFunction · 0.70

Calls 3

beginMethod · 0.80
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…