--- extern/rapidfuzz-cpp/rapidfuzz/details/SplittedSentenceView.hpp.orig 2023-09-26 11:15:29 UTC +++ extern/rapidfuzz-cpp/rapidfuzz/details/SplittedSentenceView.hpp @@ -34,7 +34,7 @@ class SplittedSentenceView { (public) return m_sentence.size(); } - std::basic_string join() const; + std::vector join() const; const RangeVec& words() const { @@ -68,19 +68,19 @@ template } template -auto SplittedSentenceView::join() const -> std::basic_string +auto SplittedSentenceView::join() const -> std::vector { if (m_sentence.empty()) { - return std::basic_string(); + return std::vector(); } auto sentence_iter = m_sentence.begin(); - std::basic_string joined(sentence_iter->begin(), sentence_iter->end()); - const std::basic_string whitespace{0x20}; + std::vector joined(sentence_iter->begin(), sentence_iter->end()); + const std::vector whitespace{0x20}; ++sentence_iter; for (; sentence_iter != m_sentence.end(); ++sentence_iter) { joined.append(whitespace) - .append(std::basic_string(sentence_iter->begin(), sentence_iter->end())); + .append(std::vector(sentence_iter->begin(), sentence_iter->end())); } return joined; }