MySQL 9.0.0
Source Code Documentation
options_parser.cc File Reference
#include "sql/options_parser.h"
#include <assert.h>
#include <stddef.h>
#include <algorithm>
#include <cctype>
#include <stdexcept>
#include <utility>
#include "my_inttypes.h"
#include "my_sys.h"
#include "mysqld_error.h"
#include "sql_string.h"

Classes

struct  options_parser::result
 Struct for storing the parsing result. More...
 

Namespaces

namespace  options_parser
 

Enumerations

enum class  options_parser::parser_status {
  options_parser::OK , options_parser::MISSING_SEPARATOR , options_parser::MORE_THAN_ONE_SEPARATOR , options_parser::SEQUENTIAL_SEPARATORS ,
  options_parser::SEQUENTIAL_DELIMITERS , options_parser::STARTS_WITH_INVALID_CHARACTER , options_parser::ENDS_WITH_INVALID_CHARACTER , options_parser::DUPLICATE_KEY
}
 

Functions

result options_parser::parse_options_string (String *str, char delimiter, char key_value_separator, std::map< std::string, std::string > *options)
 Parses the options string into keys and values. More...
 
bool options_parser::resolve_parser_result (result result, const char *function_name)
 Determines result of parsing operation, raises error if parsing was unsuccessful. More...
 
bool options_parser::parse_string (String *str, std::map< std::string, std::string > *map, const char *func_name)
 Parses options string into a map of keys and values, raises an error if parsing is unsuccessful. More...