Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
sdl_parser.cpp File Reference
#include "SDL/sdl_parser.h"
#include "SDL/sdl_exceptions.h"
#include <Common/assertion.h>
#include <Common/Utility/string_utils.h>

Namespaces

namespace  ph
 The root for all renderer implementations.
 
namespace  ph::sdl_parser
 

Functions

bool ph::sdl_parser::is_single_name_with_specifier (std::string_view valueToken)
 
auto ph::sdl_parser::get_name_with_specifier (std::string_view nameToken) -> std::pair< std::string_view, char >
 Retrieve name and specifier from a single name token.
 
std::string_view ph::sdl_parser::get_reference (std::string_view referenceToken)
 Retrieve reference from a single reference token. A reference token is not the same as a reference. Reference token contains additional specifiers such as a persistence indicator (the @ character). For example, @name is a reference token, while name is a reference (with @ being its specifier), and this function will return name given @name.
 
std::string_view ph::sdl_parser::get_data_packet_name (std::string_view dataPacketNameToken)
 
std::string_view ph::sdl_parser::trim_double_quotes (std::string_view str)
 Remove the enclosing double quotes and whitespaces from str. Note that if only a single double quote exists (not in a pair), it does not count as being enclosed by double quotes and thus will not be removed.
 
bool ph::sdl_parser::is_double_quoted (std::string_view str)