| 1711 | Options options; |
| 1712 | |
| 1713 | Parser(const std::shared_ptr<std::string>& template_str, const Options & options) : template_str(template_str), options(options) { |
| 1714 | if (!template_str) throw std::runtime_error("Template string is null"); |
| 1715 | start = it = this->template_str->begin(); |
| 1716 | end = this->template_str->end(); |
| 1717 | } |
| 1718 | |
| 1719 | bool consumeSpaces(SpaceHandling space_handling = SpaceHandling::Strip) { |
| 1720 | if (space_handling == SpaceHandling::Strip) { |