#include "qgis.h"
#include "qgsversion.h"
#include <QCoreApplication>
#include <QColor>
#include <QDate>
#include <QTime>
#include <QLocale>
#include <QDateTime>
#include "qgsconfig.h"
#include "qgslogger.h"
#include "qgsgdalutils.h"
#include "qgswkbtypes.h"
#include <gdal.h>
#include <geos_c.h>
#include <ogr_api.h>
Go to the source code of this file.
|
void | qgsFree (void *ptr) |
| Frees the memory space pointed to by ptr.
|
|
void * | qgsMalloc (size_t size) |
| Allocates size bytes and returns a pointer to the allocated memory.
|
|
double | qgsPermissiveToDouble (QString string, bool &ok) |
| Converts a string to a double in a permissive way, e.g., allowing for incorrect numbers of digits between thousand separators.
|
|
int | qgsPermissiveToInt (QString string, bool &ok) |
| Converts a string to an integer in a permissive way, e.g., allowing for incorrect numbers of digits between thousand separators.
|
|
qlonglong | qgsPermissiveToLongLong (QString string, bool &ok) |
| Converts a string to an qlonglong in a permissive way, e.g., allowing for incorrect numbers of digits between thousand separators.
|
|
bool | qgsVariantEqual (const QVariant &lhs, const QVariant &rhs) |
| Compares two QVariant values and returns whether they are equal, two NULL values are always treated as equal and 0 is not treated as equal with NULL.
|
|
bool | qgsVariantGreaterThan (const QVariant &lhs, const QVariant &rhs) |
| Compares two QVariant values and returns whether the first is greater than the second.
|
|
bool | qgsVariantLessThan (const QVariant &lhs, const QVariant &rhs) |
| Compares two QVariant values and returns whether the first is less than the second.
|
|
QString | qgsVsiPrefix (const QString &path) |
|
uint | qHash (const QVariant &variant) |
| Hash for QVariant.
|
|
◆ str
◆ xstr
◆ qgsFree()
void qgsFree |
( |
void * |
ptr | ) |
|
Frees the memory space pointed to by ptr.
Works like C free().
- Parameters
-
ptr | pointer to memory space |
Definition at line 115 of file qgis.cpp.
◆ qgsMalloc()
void * qgsMalloc |
( |
size_t |
size | ) |
|
Allocates size bytes and returns a pointer to the allocated memory.
Works like C malloc() but prints debug message by QgsLogger if allocation fails.
- Parameters
-
Definition at line 93 of file qgis.cpp.
◆ qgsPermissiveToDouble()
double qgsPermissiveToDouble |
( |
QString |
string, |
|
|
bool & |
ok |
|
) |
| |
Converts a string to a double in a permissive way, e.g., allowing for incorrect numbers of digits between thousand separators.
- Parameters
-
string | string to convert |
ok | will be set to true if conversion was successful |
- Returns
- string converted to double if possible
- See also
- permissiveToInt
Definition at line 72 of file qgis.cpp.
◆ qgsPermissiveToInt()
int qgsPermissiveToInt |
( |
QString |
string, |
|
|
bool & |
ok |
|
) |
| |
Converts a string to an integer in a permissive way, e.g., allowing for incorrect numbers of digits between thousand separators.
- Parameters
-
string | string to convert |
ok | will be set to true if conversion was successful |
- Returns
- string converted to int if possible
- See also
- permissiveToDouble
Definition at line 79 of file qgis.cpp.
◆ qgsPermissiveToLongLong()
qlonglong qgsPermissiveToLongLong |
( |
QString |
string, |
|
|
bool & |
ok |
|
) |
| |
Converts a string to an qlonglong in a permissive way, e.g., allowing for incorrect numbers of digits between thousand separators.
- Parameters
-
string | string to convert |
ok | will be set to true if conversion was successful |
- Returns
- string converted to int if possible
- See also
- permissiveToInt
- Since
- QGIS 3.4
Definition at line 86 of file qgis.cpp.
◆ qgsVariantEqual()
bool qgsVariantEqual |
( |
const QVariant & |
lhs, |
|
|
const QVariant & |
rhs |
|
) |
| |
Compares two QVariant values and returns whether they are equal, two NULL values are always treated as equal and 0 is not treated as equal with NULL.
- Parameters
-
lhs | first value |
rhs | second value |
- Returns
true
if values are equal
Definition at line 247 of file qgis.cpp.
◆ qgsVariantGreaterThan()
bool qgsVariantGreaterThan |
( |
const QVariant & |
lhs, |
|
|
const QVariant & |
rhs |
|
) |
| |
Compares two QVariant values and returns whether the first is greater than the second.
Useful for sorting lists of variants, correctly handling sorting of the various QVariant data types (such as strings, numeric values, dates and times)
- See also
- qgsVariantLessThan()
Definition at line 188 of file qgis.cpp.
◆ qgsVariantLessThan()
bool qgsVariantLessThan |
( |
const QVariant & |
lhs, |
|
|
const QVariant & |
rhs |
|
) |
| |
Compares two QVariant values and returns whether the first is less than the second.
Useful for sorting lists of variants, correctly handling sorting of the various QVariant data types (such as strings, numeric values, dates and times)
Invalid < NULL < Values
- See also
- qgsVariantGreaterThan()
Definition at line 120 of file qgis.cpp.
◆ qgsVsiPrefix()
QString qgsVsiPrefix |
( |
const QString & |
path | ) |
|
◆ qHash()
uint qHash |
( |
const QVariant & |
variant | ) |
|
Hash for QVariant.
Definition at line 198 of file qgis.cpp.