wren
Vulkan-based game engine
Loading...
Searching...
No Matches
wren::utils::StringReader Class Reference

#include <string_reader.hpp>

Public Member Functions

 StringReader (const std::string_view &input)
 
void skip_to_text_end (const std::string_view &text)
 
auto read_to_end_line () -> std::string_view
 
auto read_to_text_start (const std::string_view &text) -> std::string_view
 
auto at_end () const
 

Private Member Functions

auto substr (std::string_view::size_type start, std::string_view::size_type end) -> std::string_view
 

Private Attributes

std::string_view input_
 
std::string_view::size_type position_ {}
 

Constructor & Destructor Documentation

◆ StringReader()

wren::utils::StringReader::StringReader ( const std::string_view & input)
inline

Member Function Documentation

◆ at_end()

auto wren::utils::StringReader::at_end ( ) const
inline

◆ read_to_end_line()

auto wren::utils::StringReader::read_to_end_line ( ) -> std::string_view

◆ read_to_text_start()

auto wren::utils::StringReader::read_to_text_start ( const std::string_view & text) -> std::string_view

◆ skip_to_text_end()

void wren::utils::StringReader::skip_to_text_end ( const std::string_view & text)

◆ substr()

auto wren::utils::StringReader::substr ( std::string_view::size_type start,
std::string_view::size_type end ) -> std::string_view
private

Member Data Documentation

◆ input_

std::string_view wren::utils::StringReader::input_
private

◆ position_

std::string_view::size_type wren::utils::StringReader::position_ {}
private

The documentation for this class was generated from the following files: