/src/libreoffice/include/o3tl/environment.hxx
Line | Count | Source |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ |
2 | | /* |
3 | | * This file is part of the LibreOffice project. |
4 | | * |
5 | | * This Source Code Form is subject to the terms of the Mozilla Public |
6 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
7 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
8 | | */ |
9 | | |
10 | | #pragma once |
11 | | |
12 | | #include <sal/config.h> |
13 | | |
14 | | #include <osl/process.h> |
15 | | #include <rtl/ustring.hxx> |
16 | | |
17 | | namespace o3tl |
18 | | { |
19 | | inline OUString getEnvironment(const OUString& name) |
20 | 136k | { |
21 | 136k | OUString ret; |
22 | 136k | osl_getEnvironment(name.pData, &ret.pData); |
23 | 136k | return ret; |
24 | 136k | } |
25 | | |
26 | | inline void setEnvironment(const OUString& name, const OUString& value) |
27 | 0 | { |
28 | 0 | osl_setEnvironment(name.pData, value.pData); |
29 | 0 | } |
30 | | } |
31 | | |
32 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |