blob: 77bc933a8ecf07f07cbffc11865308211d97bf34 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include <util/generic/strbuf.h>
#include <optional>
#include <string>
#include <vector>
namespace NYT {
////////////////////////////////////////////////////////////////////////////////
// NB: Currently not supported on other platforms.
#if defined(_linux_) || defined(_darwin_)
std::vector<std::string> GetEnvironNameValuePairs();
#endif
std::pair<TStringBuf, std::optional<TStringBuf>> ParseEnvironNameValuePair(TStringBuf pair);
////////////////////////////////////////////////////////////////////////////////
} // namespace NYT
|