#include <Tools.h>
|
static std::string | getUniqueName (const std::string &, const std::vector< std::string > &, int d=0) |
|
static std::string | addNumber (const std::string &, unsigned int, int d=0) |
|
static std::string | getIdentifier (const std::string &) |
|
static std::wstring | widen (const std::string &str) |
|
static std::string | narrow (const std::wstring &str) |
|
static QString | escapeEncodeString (const QString &s) |
|
static std::string | escapeEncodeString (const std::string &s) |
|
static QString | escapeEncodeFilename (const QString &s) |
|
static std::string | escapeEncodeFilename (const std::string &s) |
|
static std::string | toStdString (const QString &s) |
| toStdString Convert a QString into a UTF-8 encoded std::string. More...
|
|
static QString | fromStdString (const std::string &s) |
| fromStdString Convert a std::string encoded as UTF-8 into a QString. More...
|
|
◆ addNumber()
static std::string Base::Tools::addNumber |
( |
const std::string & |
, |
|
|
unsigned int |
, |
|
|
int |
d = 0 |
|
) |
| |
|
static |
◆ escapeEncodeFilename() [1/2]
static QString Base::Tools::escapeEncodeFilename |
( |
const QString & |
s | ) |
|
|
static |
◆ escapeEncodeFilename() [2/2]
static std::string Base::Tools::escapeEncodeFilename |
( |
const std::string & |
s | ) |
|
|
static |
◆ escapeEncodeString() [1/2]
static QString Base::Tools::escapeEncodeString |
( |
const QString & |
s | ) |
|
|
static |
◆ escapeEncodeString() [2/2]
static std::string Base::Tools::escapeEncodeString |
( |
const std::string & |
s | ) |
|
|
static |
◆ fromStdString()
static QString Base::Tools::fromStdString |
( |
const std::string & |
s | ) |
|
|
inlinestatic |
fromStdString Convert a std::string encoded as UTF-8 into a QString.
- Parameters
-
s | std::string, expected to be UTF-8 encoded. |
- Returns
- String represented as a QString.
◆ getIdentifier()
static std::string Base::Tools::getIdentifier |
( |
const std::string & |
| ) |
|
|
static |
◆ getUniqueName()
static std::string Base::Tools::getUniqueName |
( |
const std::string & |
, |
|
|
const std::vector< std::string > & |
, |
|
|
int |
d = 0 |
|
) |
| |
|
static |
◆ narrow()
static std::string Base::Tools::narrow |
( |
const std::wstring & |
str | ) |
|
|
static |
◆ toStdString()
static std::string Base::Tools::toStdString |
( |
const QString & |
s | ) |
|
|
inlinestatic |
toStdString Convert a QString into a UTF-8 encoded std::string.
- Parameters
-
- Returns
- A std::string encoded as UTF-8.
◆ widen()
static std::wstring Base::Tools::widen |
( |
const std::string & |
str | ) |
|
|
static |
The documentation for this struct was generated from the following file:
- D:/CadworkJobs/SoftwareProjekte/Lexocad/LexoGit/Lexocad/lexocad/Base/include/Base/Tools.h