Project Alice
Loading...
Searching...
No Matches
parsers.hpp File Reference
#include <string_view>
#include <stdint.h>
#include <string>
#include "date_interface.hpp"
Include dependency graph for parsers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  parsers::token_and_type
 
class  parsers::token_generator
 
class  parsers::error_handler
 
struct  parsers::separator_scan_result
 

Namespaces

namespace  parsers
 

Enumerations

enum class  parsers::token_type {
  parsers::identifier , parsers::quoted_string , parsers::special_identifier , parsers::brace ,
  parsers::open_brace , parsers::close_brace , parsers::unknown
}
 
enum class  parsers::association_type : unsigned short {
  parsers::none , parsers::eq , parsers::lt , parsers::le ,
  parsers::gt , parsers::ge , parsers::ne , parsers::eq_default ,
  parsers::list
}
 

Functions

bool parsers::float_from_chars (char const *start, char const *end, float &float_out)
 
bool parsers::double_from_chars (char const *start, char const *end, double &dbl_out)
 
std::string_view parsers::remove_surrounding_whitespace (std::string_view txt)
 
float parsers::parse_float (std::string_view content, int32_t line, error_handler &err)
 
double parsers::parse_double (std::string_view content, int32_t line, error_handler &err)
 
bool parsers::parse_bool (std::string_view content, int32_t, error_handler &)
 
int32_t parsers::parse_int (std::string_view content, int32_t line, error_handler &err)
 
uint32_t parsers::parse_uint (std::string_view content, int32_t line, error_handler &err)
 
uint32_t parsers::parse_tag (std::string_view tag, int32_t line, error_handler &err)
 
association_type parsers::parse_association_type (std::string_view content, int32_t line, error_handler &err)
 
std::string_view parsers::parse_text (std::string_view content, int32_t line, error_handler &err)
 
sys::year_month_day parsers::parse_date (std::string_view content, int32_t line, error_handler &err)
 
char const * parsers::csv_advance (char const *start, char const *end, char seperator)
 
char const * parsers::csv_advance_n (uint32_t n, char const *start, char const *end, char seperator)
 
char const * parsers::csv_advance_to_next_line (char const *start, char const *end)
 
separator_scan_result parsers::csv_find_separator_token (char const *start, char const *end, char seperator)
 
template<size_t count_values, typename T >
char const * parsers::parse_fixed_amount_csv_values (char const *start, char const *end, char separator, T &&function)
 
template<typename T >
char const * parsers::parse_first_and_nth_csv_values (uint32_t nth, char const *start, char const *end, char separator, T &&function)
 
template<size_t count_values, typename T >
char const * parsers::parse_first_and_fixed_amount_csv_values (char const *start, char const *end, char separator, T &&function)
 
bool parsers::is_integer (char const *start, char const *end)
 
template<size_t N>
bool parsers::has_fixed_prefix (char const *start, char const *end, char const (&t)[N])
 
template<size_t N>
bool parsers::has_fixed_prefix_ci (char const *start, char const *end, char const (&t)[N])
 
template<size_t N>
bool parsers::has_fixed_suffix (char const *start, char const *end, char const (&t)[N])
 
template<size_t N>
bool parsers::has_fixed_suffix_ci (char const *start, char const *end, char const (&t)[N])
 
template<size_t N>
bool parsers::native_has_fixed_suffix_ci (char const *start, char const *end, char const (&t)[N])
 
template<size_t N>
bool parsers::is_fixed_token (char const *start, char const *end, char const (&t)[N])
 
template<size_t N>
bool parsers::is_fixed_token_ci (char const *start, char const *end, char const (&t)[N])