Template Class Path

Template Parameter Order

  1. typename Allocator

Class Documentation

template<typename Allocator>
class Path

Describes a path.

Template Parameters:

Allocator – The allocator to use

Public Types

using PathList = frg::vector<frg::string<Allocator>, Allocator>

Public Functions

inline Path(frg::string_view path)

Construct a new Path object.

Parameters:

path – The path string

inline PathList parse()

Parses the path.

Returns:

An array of strings representing the segments of the path

inline size_t length()
Returns:

The number of segments the path has