#include <common/args.h>
#include <common/settings.h>
#include <logging.h>
#include <sync.h>
#include <tinyformat.h>
#include <univalue.h>
#include <util/chaintype.h>
#include <util/fs.h>
#include <util/string.h>
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
Go to the source code of this file.
|
| static bool | GetConfigOptions (std::istream &stream, const std::string &filepath, std::string &error, std::vector< std::pair< std::string, std::string > > &options, std::list< SectionInfo > §ions) |
| bool | IsConfSupported (KeyInfo &key, std::string &error) |
| fs::path | AbsPathForConfigVal (const ArgsManager &args, const fs::path &path, bool net_specific) |
| | Most paths passed as configuration arguments are treated as relative to the datadir if they are not absolute.
|
| std::string | TrimString (std::string_view str, std::string_view pattern=" \f\n\r\t\v") |
| std::string_view | TrimStringView (std::string_view str, std::string_view pattern=" \f\n\r\t\v") |
◆ AbsPathForConfigVal()
Most paths passed as configuration arguments are treated as relative to the datadir if they are not absolute.
- Parameters
-
| args | Parsed arguments and settings. |
| path | The path to be conditionally prefixed with datadir. |
| net_specific | Use network specific datadir variant |
- Returns
- The normalized path.
Definition at line 226 of file config.cpp.
◆ GetConfigOptions()
| bool GetConfigOptions |
( |
std::istream & | stream, |
|
|
const std::string & | filepath, |
|
|
std::string & | error, |
|
|
std::vector< std::pair< std::string, std::string > > & | options, |
|
|
std::list< SectionInfo > & | sections ) |
|
static |
◆ IsConfSupported()
| bool IsConfSupported |
( |
KeyInfo & | key, |
|
|
std::string & | error ) |
◆ TrimString()
| std::string util::TrimString |
( |
std::string_view | str, |
|
|
std::string_view | pattern = " \f\n\r\t\v" ) |
|
inlinenodiscard |
◆ TrimStringView()
| std::string_view util::TrimStringView |
( |
std::string_view | str, |
|
|
std::string_view | pattern = " \f\n\r\t\v" ) |
|
inlinenodiscard |