replace piForeach* to for(:)

another c++11 try ...
This commit is contained in:
2020-07-30 20:08:33 +03:00
parent 2ffc457566
commit 557f2a4d0d
18 changed files with 151 additions and 235 deletions

View File

@@ -34,17 +34,22 @@ int main() {
#include "picodeparser.h"
int main() {
piDebug = false;
//piDebug = false;
double min = -1, max = -1, mean = 0;
for (int i = 0; i < 50; ++i) {
for (int i = 0; i < 1; ++i) {
PITimeMeasurer tm;
/*PICodeParser cp;
cp.parseFile("SH_plugin_base.h");*/
PIStringList sl;
for (int i = 0; i < 5000; ++i) {
//PIString s("1234567890-=");
//sl << s;
sl << PIString("1234567890-=");
sl.reserve(10);
for (int i = 0; i < 10; ++i) {
//PIString s = PIString("1234567890-=").repeated(100);
//sl.push_back(PIString("1234567890-=").repeated(100));
sl << PIString("abc").repeated(i + 1);
}
for (PIString & s : sl) {
s = s.toUpperCase();
piCout << s;
}
double ms = tm.elapsed_m();
if (min < 0) min = ms;