Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
sdl_parser.ipp
Go to the documentation of this file.
1#pragma once
2
3#include "SDL/sdl_parser.h"
4
5#include <Common/Utility/string_utils.h>
6
7namespace ph::sdl_parser
8{
9
10inline bool is_specifier(const char ch)
11{
12 return ch == persistent_specifier || ch == cached_specifier;
13}
14
15inline bool starts_with_specifier(std::string_view valueToken)
16{
17 valueToken = string_utils::trim_head(valueToken);
18 return !valueToken.empty() && is_specifier(valueToken[0]);
19}
20
21}// end namespace ph::sdl_parser
Definition sdl_parser.cpp:8
constexpr char cached_specifier
Definition sdl_parser.h:10
constexpr char persistent_specifier
Definition sdl_parser.h:9
bool is_specifier(char ch)
Definition sdl_parser.ipp:10
bool starts_with_specifier(std::string_view valueToken)
Definition sdl_parser.ipp:15