| 1977 | */ |
| 1978 | public: |
| 1979 | std::pair<string_t, std::vector<bool> > patch_apply(const Patches &patches, const string_t &text) const |
| 1980 | { std::pair<string_t, std::vector<bool> > res; patch_apply(patches, text, res); return res; } |
| 1981 | void patch_apply(const Patches &patches, const string_t &sourceText, std::pair<string_t, std::vector<bool> >& res) const { |
| 1982 | if (patches.empty()) { |
| 1983 | res.first = sourceText; |