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 Fri Oct 11 2024 12:11:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.