userver: userver/formats/common/path.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
path.hpp File Reference
#include <string>
#include <string_view>
+ Include dependency graph for path.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  formats::common::Path
 

Namespaces

namespace  formats
 Value formats representation, parsing and serialization.
 
namespace  formats::common
 Common utilities for all the formats.
 

Functions

std::string formats::common::GetIndexString (size_t index)
 Returns string of [idx], e.g. "[0]" or "[1025]".
 
void formats::common::AppendPath (std::string &path, std::string_view key)
 
void formats::common::AppendPath (std::string &path, std::size_t index)
 
std::string formats::common::MakeChildPath (std::string_view parent, std::string_view key)
 
std::string formats::common::MakeChildPath (std::string &&parent, std::string_view key)
 
std::string formats::common::MakeChildPath (std::string_view parent, std::size_t index)
 
std::string formats::common::MakeChildPath (std::string &&parent, std::size_t index)
 

Variables

constexpr char formats::common::kPathSeparator = '.'
 
constexpr char formats::common::kPathRoot [] = "/"
 
constexpr char formats::common::kPathPrefixSeparator [] = ":/"
 

Detailed Description

Definition in file path.hpp.