Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::IO::parser::PathParser Struct Reference

Public Member Functions

constexpr PathParser (AZStd::string_view path, ParserState state, const char preferredSeparator) noexcept
 
constexpr PathParser (AZStd::string_view path, AZStd::string_view entry, ParserState state, const char preferredSeparator) noexcept
 
constexpr PosPtr Peek () const noexcept
 
constexpr void Increment () noexcept
 
constexpr void Decrement () noexcept
 
constexpr AZStd::string_view operator* () const noexcept
 Return a view of the current element in the path processor state.
 
constexpr operator bool () const noexcept
 
constexpr PathParseroperator++ () noexcept
 
constexpr PathParseroperator-- () noexcept
 
constexpr bool AtEnd () const noexcept
 
constexpr bool InRootDir () const noexcept
 
constexpr bool InRootName () const noexcept
 
constexpr bool InRootPath () const noexcept
 

Static Public Member Functions

static constexpr PathParser CreateBegin (AZStd::string_view path, const char preferredSeparator) noexcept
 
static constexpr PathParser CreateEnd (AZStd::string_view path, const char preferredSeparator) noexcept
 

Public Attributes

AZStd::string_view m_path_view
 
AZStd::string_view m_path_raw_entry
 
ParserState m_parser_state {}
 
const char m_preferred_separator { AZ_TRAIT_OS_PATH_SEPARATOR }
 

Member Function Documentation

◆ Peek()

constexpr PosPtr AZ::IO::parser::PathParser::Peek ( ) const
inlineconstexprnoexcept

Returns the pointer to the beginning of the next parser token If there are no more tokens, nullptr is returned


The documentation for this struct was generated from the following file: