Initially
# df -h -x tmpfs Filesystem Size Used Avail Use% Mounted on udev 7.8G 0 7.8G 0% /dev /dev/sda1 9.4G 6.1G 3.3G 66% / /dev/sda2 923G 439G 482G 48% /home # btrfs fi show Label: none uuid: 1c8212fb-88ff-4f39-912a-5178a3547e6c
<manuelschneid3r> does QString("text") allocate exactly the necessary memory or do i have to squeeze? | |
<suy> qout: { QString t("text"); qDebug() << t.capacity(); } | |
<qout> 4 | |
<suy> qout: { QString t("a much, much, much longer text"); qDebug() << t.capacity() << t.size(); } | |
<qout> 30 30 |
Initially
# df -h -x tmpfs Filesystem Size Used Avail Use% Mounted on udev 7.8G 0 7.8G 0% /dev /dev/sda1 9.4G 6.1G 3.3G 66% / /dev/sda2 923G 439G 482G 48% /home # btrfs fi show Label: none uuid: 1c8212fb-88ff-4f39-912a-5178a3547e6c
#include <QtCore> | |
class TurtleRunnable : public QRunnable | |
{ | |
void run() override { | |
for (int i = 0; i < 15; ++i) { | |
qDebug("Tick %i", i); | |
QThread::sleep(1); | |
} | |
} |
#include <QtCore> | |
static void dump(const char* name, const QStringList& variable) { | |
QTextStream out(stdout); | |
out << variable.count() << " " << name << endl; | |
foreach (const QString& item, variable) { | |
out << " " << item << endl; | |
} | |
} |
9 | |
14 | |
19 | |
5 | |
12 | |
14 | |
5 | |
7 | |
3 | |
13 |
title = '<h3>Swashbuckler 15 (+3 TH&D), 23 Strength, specialization VS Plate Mail' | |
[[DamageCalculations]] | |
acidDamage1bonus = 0 | |
acidDamage1number = 0 | |
acidDamage1probability = 100 | |
acidDamage1sides = 2 | |
acidDamage2bonus = 0 | |
acidDamage2number = 0 | |
acidDamage2probability = 100 |