Lines Matching defs:text
291 parse(const std::string& text) const = 0;
381 option_syntax_exception(const std::string& text)
382 : OptionParseException("Argument " + LQUOTE + text + RQUOTE +
492 operator()(bool negative, U u, const std::string& text)
498 throw argument_incorrect_type(text);
505 throw argument_incorrect_type(text);
521 check_signed_range(bool negative, U value, const std::string& text)
523 SignedCheck<T, std::numeric_limits<T>::is_signed>()(negative, value, text);
539 checked_negate(T&&, const std::string& text, std::false_type)
541 throw argument_incorrect_type(text);
546 integer_parser(const std::string& text, T& value)
549 std::regex_match(text, match, integer_pattern);
553 throw argument_incorrect_type(text);
590 throw argument_incorrect_type(text);
596 throw argument_incorrect_type(text);
602 detail::check_signed_range<T>(negative, result, text);
607 text,
617 void stringstream_parser(const std::string& text, T& value)
619 std::stringstream in(text);
622 throw argument_incorrect_type(text);
628 parse_value(const std::string& text, uint8_t& value)
630 integer_parser(text, value);
635 parse_value(const std::string& text, int8_t& value)
637 integer_parser(text, value);
642 parse_value(const std::string& text, uint16_t& value)
644 integer_parser(text, value);
649 parse_value(const std::string& text, int16_t& value)
651 integer_parser(text, value);
656 parse_value(const std::string& text, uint32_t& value)
658 integer_parser(text, value);
663 parse_value(const std::string& text, int32_t& value)
665 integer_parser(text, value);
670 parse_value(const std::string& text, uint64_t& value)
672 integer_parser(text, value);
677 parse_value(const std::string& text, int64_t& value)
679 integer_parser(text, value);
684 parse_value(const std::string& text, bool& value)
687 std::regex_match(text, result, truthy_pattern);
695 std::regex_match(text, result, falsy_pattern);
702 throw argument_incorrect_type(text);
707 parse_value(const std::string& text, std::string& value)
709 value = text;
717 parse_value(const std::string& text, T& value) {
718 stringstream_parser(text, value);
723 parse_value(const std::string& text, std::vector<T>& value)
725 std::stringstream in(text);
737 parse_value(const std::string& text, std::optional<T>& value)
740 parse_value(text, result);
795 parse(const std::string& text) const
797 parse_value(text, *m_store);
1045 const std::string& text
1050 m_value->parse(text);