| 419 | } |
| 420 | |
| 421 | int FindNextChar(std::span<const char> sp, const char m) |
| 422 | { |
| 423 | for (int i = 0; i < (int)sp.size(); ++i) { |
| 424 | if (sp[i] == m) return i; |
| 425 | // We only search within the current parentheses |
| 426 | if (sp[i] == ')') break; |
| 427 | } |
| 428 | return -1; |
| 429 | } |
| 430 | |
| 431 | } // namespace internal |
| 432 | } // namespace miniscript |