ZipLib von mindless-area ist absoluter Schrott. Vom c++11 Spirit seh ich nichts im Code aber das schlimmste ist die Laufzeit. Ein einfaches unzippen von zwei 30MB Datei mit ZipFile::Open() dauerte 3 Minuten. Das gunzip Programm schaff es in 5 Sekunden. 180sec vs. 5sec. Was macht der Typ da? Vor allem hat er den eigentlichen ZIP […]
14.11.2015
13.11.2015
std::string trimmed std::string_view
There is no trim() trimmed() member function in std::string. A free function is better. Here is one nice solution which has a linear running time and not quadratic like using erase(). (Stupid programmer out there) From: http://stackoverflow.com/questions/216823/whats-the-best-way-to-trim-stdstring
Comments Off on std::string trimmed std::string_view