MauiKit File Browsing

Environment.cpp
1#include <QString>
2
3#include "Environment.hpp"
4
5QString Environment::get(QString key)
6{
7 char *val = getenv(key.toStdString().c_str());
8 return val == nullptr ? QString(QStringLiteral("")) : QString::fromUtf8(val);
9}
std::string toStdString() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:32:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.