FOSSredder 0.5.0
Loading...
Searching...
No Matches
ui::strings Namespace Reference

Functions

std::string toStdString (const QString &value)
 Converts a QString to a UTF-8 encoded std::string.
std::string toEncodedPath (const QString &path)
 Converts a filesystem path to the platform-encoded byte representation.
std::vector< std::string > toStdList (const QStringList &values)
 Converts a Qt string list into a standard string vector.
QString normalizedText (const QString &value)
 Normalizes text for case-insensitive UI comparisons.

Function Documentation

◆ normalizedText()

QString ui::strings::normalizedText ( const QString & value)
inline

Normalizes text for case-insensitive UI comparisons.

Parameters
valueInput text.
Returns
Trimmed, simplified, lower-case text.

Definition at line 59 of file StringConversions.h.

Here is the caller graph for this function:

◆ toEncodedPath()

std::string ui::strings::toEncodedPath ( const QString & path)
inline

Converts a filesystem path to the platform-encoded byte representation.

Parameters
pathQt filesystem path.
Returns
Platform-encoded path string.

Definition at line 34 of file StringConversions.h.

Here is the caller graph for this function:

◆ toStdList()

std::vector< std::string > ui::strings::toStdList ( const QStringList & values)
inline

Converts a Qt string list into a standard string vector.

Parameters
valuesQt string list.
Returns
Standard string vector.

Definition at line 45 of file StringConversions.h.

Here is the caller graph for this function:

◆ toStdString()

std::string ui::strings::toStdString ( const QString & value)
inline

Converts a QString to a UTF-8 encoded std::string.

Parameters
valueQt string value.
Returns
UTF-8 encoded standard string.

Definition at line 23 of file StringConversions.h.

Here is the caller graph for this function: