| 90 | } |
| 91 | |
| 92 | static size_t FindPlus(std::string_view s, size_t index) |
| 93 | { |
| 94 | while (true) |
| 95 | { |
| 96 | index = s.find('+', index); |
| 97 | if (index != std::string::npos && index != 0 && s[index - 1] == ' ') |
| 98 | { |
| 99 | index++; |
| 100 | continue; |
| 101 | } |
| 102 | |
| 103 | break; |
| 104 | } |
| 105 | return index; |
| 106 | } |
| 107 | |
| 108 | ShortcutInput::ShortcutInput(std::string_view value) |
| 109 | { |