Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
config.cpp File Reference
#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>
Include dependency graph for config.cpp:

Go to the source code of this file.

Functions

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 > &sections)
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")

Function Documentation

◆ AbsPathForConfigVal()

fs::path AbsPathForConfigVal ( const ArgsManager & args,
const fs::path & path,
bool net_specific = true )

Most paths passed as configuration arguments are treated as relative to the datadir if they are not absolute.

Parameters
argsParsed arguments and settings.
pathThe path to be conditionally prefixed with datadir.
net_specificUse network specific datadir variant
Returns
The normalized path.

Definition at line 226 of file config.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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

Definition at line 34 of file config.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsConfSupported()

bool IsConfSupported ( KeyInfo & key,
std::string & error )

Definition at line 79 of file config.cpp.

Here is the caller graph for this function:

◆ TrimString()

std::string util::TrimString ( std::string_view str,
std::string_view pattern = " \f\n\r\t\v" )
inlinenodiscard

Definition at line 169 of file string.h.

Here is the caller graph for this function:

◆ TrimStringView()

std::string_view util::TrimStringView ( std::string_view str,
std::string_view pattern = " \f\n\r\t\v" )
inlinenodiscard

Definition at line 159 of file string.h.

Here is the caller graph for this function: