userver: userver/formats/common/path.hpp File Reference
Loading...
Searching...
No Matches
path.hpp File Reference

Detailed Description

Definition in file path.hpp.

Go to the source code of this file.

#include <string>
#include <string_view>
+ This graph shows which files directly or indirectly include 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 [] = ":/"