KVIrc 5.2.4
Developer APIs
Namespaces | Functions
KviMiscUtils.h File Reference

Helper functions. More...

#include "kvi_settings.h"

Go to the source code of this file.

Namespaces

namespace  KviMiscUtils
 A namespace for helper functions.
 

Functions

int KviMiscUtils::compareVersions (const QString &szVersion1, const QString &szVersion2)
 Compares two x.y.z... version strings The function behaves like strcmp: it returns 0 when the versions are equal, -1 if the szVersion1 is greater and 1 if szVersion2 is greater.
 
bool KviMiscUtils::isValidVersionString (const QString &szVersion)
 Checks if the argument string is a valid x.y.z... version string.
 

Detailed Description

Helper functions.

Author
Szymon Stefanek