Photon Engine 2.0.0-beta
A physically based renderer.
|
Functions | |
bool | is_single_name_with_specifier (std::string_view valueToken) |
auto | 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 | 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 | get_data_packet_name (std::string_view dataPacketNameToken) |
std::string_view | 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 | is_double_quoted (std::string_view str) |
bool | is_specifier (char ch) |
bool | starts_with_specifier (std::string_view valueToken) |
Variables | |
constexpr char | persistent_specifier = '@' |
constexpr char | cached_specifier = '$' |
std::string_view ph::sdl_parser::get_data_packet_name | ( | std::string_view | dataPacketNameToken | ) |
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
.
bool ph::sdl_parser::is_double_quoted | ( | std::string_view | str | ) |
bool ph::sdl_parser::is_single_name_with_specifier | ( | std::string_view | valueToken | ) |
|
inline |
|
inline |
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.
str
is not enclosed by double quotes, a trimmed str
is returned.
|
inlineconstexpr |
|
inlineconstexpr |