| 959 | -------------------------------------------------------------------------*/ |
| 960 | |
| 961 | inline bool |
| 962 | MIMEField::name_is_valid(uint32_t invalid_char_bits) const |
| 963 | { |
| 964 | auto name{name_get()}; |
| 965 | for (auto c : name) { |
| 966 | if (ParseRules::is_type(c, invalid_char_bits)) { |
| 967 | return false; |
| 968 | } |
| 969 | } |
| 970 | return true; |
| 971 | } |
| 972 | |
| 973 | /*------------------------------------------------------------------------- |
| 974 | -------------------------------------------------------------------------*/ |