| 18 | }; |
| 19 | |
| 20 | static 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 | |
| 40 | int main(void) |
| 41 | { |