--- extern/rapidfuzz-cpp/rapidfuzz/distance.hpp.orig 2023-09-26 11:15:29 UTC +++ extern/rapidfuzz-cpp/rapidfuzz/distance.hpp @@ -16,13 +16,13 @@ template -std::basic_string editops_apply(const Editops& ops, InputIt1 first1, InputIt1 last1, InputIt2 first2, - InputIt2 last2) +std::vector editops_apply(const Editops& ops, InputIt1 first1, InputIt1 last1, InputIt2 first2, + InputIt2 last2) { auto len1 = static_cast(std::distance(first1, last1)); auto len2 = static_cast(std::distance(first2, last2)); - std::basic_string res_str; + std::vector res_str; res_str.resize(len1 + len2); size_t src_pos = 0; size_t dest_pos = 0; @@ -62,20 +62,20 @@ template -std::basic_string editops_apply(const Editops& ops, const Sentence1& s1, const Sentence2& s2) +std::vector editops_apply(const Editops& ops, const Sentence1& s1, const Sentence2& s2) { return editops_apply(ops, detail::to_begin(s1), detail::to_end(s1), detail::to_begin(s2), detail::to_end(s2)); } template -std::basic_string opcodes_apply(const Opcodes& ops, InputIt1 first1, InputIt1 last1, InputIt2 first2, - InputIt2 last2) +std::vector opcodes_apply(const Opcodes& ops, InputIt1 first1, InputIt1 last1, InputIt2 first2, + InputIt2 last2) { auto len1 = static_cast(std::distance(first1, last1)); auto len2 = static_cast(std::distance(first2, last2)); - std::basic_string res_str; + std::vector res_str; res_str.resize(len1 + len2); size_t dest_pos = 0; @@ -101,7 +101,7 @@ template -std::basic_string opcodes_apply(const Opcodes& ops, const Sentence1& s1, const Sentence2& s2) +std::vector opcodes_apply(const Opcodes& ops, const Sentence1& s1, const Sentence2& s2) { return opcodes_apply(ops, detail::to_begin(s1), detail::to_end(s1), detail::to_begin(s2), detail::to_end(s2));