MQTTSuite
Loading...
Searching...
No Matches
smtp-address-validator.hpp
Go to the documentation of this file.
1#ifndef SMTP_ADDRESS_PARSER_HPP_INCLUDED
2#define SMTP_ADDRESS_PARSER_HPP_INCLUDED
3
4/*
5
6Snarfed from <https://github.com/gene-hightower/smtp-address-validator>
7
8<http://opensource.org/licenses/MIT>:
9
10Copyright (c) 2021 Gene Hightower
11
12Permission is hereby granted, free of charge, to any person obtaining a copy of
13this software and associated documentation files (the "Software"), to deal in
14the Software without restriction, including without limitation the rights to
15use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
16of the Software, and to permit persons to whom the Software is furnished to do
17so, subject to the following conditions:
18
19The above copyright notice and this permission notice shall be included in all
20copies or substantial portions of the Software.
21
22THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28SOFTWARE.
29
30*/
31
32bool is_address(const char *p, const char *pe);
33
34#endif // SMTP_ADDRESS_PARSER_HPP_INCLUDED
static const short _address_index_offsets[]
static const short _address_eof_trans[]
static const signed char _address_range_lengths[]
static const short _address_cond_targs[]
static const short _address_key_offsets[]
static const int address_start
bool is_address(const char *p, const char *pe)
static const signed char _address_single_lengths[]
static const signed char _address_trans_keys[]
static const signed char _address_cond_actions[]
static const signed char _address_actions[]