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

Function test

lib_acl_cpp/samples/string/string3/main.cpp:20–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18};
19
20static void test(void)
21{
22 for (int j = 0; j < 10000000; j++)
23 {
24// const char* tmpstr = "this,is,a,test.";
25 const char* tmpstr = ",,,,";
26 acl::string aclstr(tmpstr); // = acl::string(tmpstr);
27 std::vector<acl::string>& aclstr_vec = aclstr.split2(",");
28 if (j >= 10)
29 continue;
30 int vecsize = (int) aclstr_vec.size();
31 for (int i = 0; i< vecsize;++i)
32 printf("%s\r\n", aclstr_vec[i].c_str());
33 }
34
35 printf("enter any key to continue...");
36 fflush(stdout);
37 getchar();
38}
39
40int main(void)
41{

Callers 1

mainFunction · 0.70

Calls 2

sizeMethod · 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…