1
1
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
2
2
// SPDX-License-Identifier: MIT
3
3
// RapidFuzz v1.0.2
4
- // Generated: 2024-12-25 03:52:00.425895
4
+ // Generated: 2024-12-25 03:55:48.239375
5
5
// ----------------------------------------------------------
6
6
// This file is an amalgamation of multiple different files.
7
7
// You probably shouldn't edit it directly.
@@ -1741,7 +1741,7 @@ DecomposedSet<InputIt1, InputIt2, InputIt1> set_decomposition(SplittedSentenceVi
1741
1741
}
1742
1742
1743
1743
template <class InputIt1 , class InputIt2 >
1744
- std::pair<InputIt1, InputIt2> mismatch (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2)
1744
+ std::pair<InputIt1, InputIt2> rf_mismatch (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2)
1745
1745
{
1746
1746
while (first1 != last1 && first2 != last2 && *first1 == *first2)
1747
1747
++first1, ++first2;
@@ -1757,7 +1757,7 @@ size_t remove_common_prefix(Range<InputIt1>& s1, Range<InputIt2>& s2)
1757
1757
{
1758
1758
auto first1 = std::begin (s1);
1759
1759
size_t prefix = static_cast <size_t >(
1760
- std::distance (first1, mismatch (first1, std::end (s1), std::begin (s2), std::end (s2)).first ));
1760
+ std::distance (first1, rf_mismatch (first1, std::end (s1), std::begin (s2), std::end (s2)).first ));
1761
1761
s1.remove_prefix (prefix);
1762
1762
s2.remove_prefix (prefix);
1763
1763
return prefix;
@@ -1771,7 +1771,7 @@ size_t remove_common_suffix(Range<InputIt1>& s1, Range<InputIt2>& s2)
1771
1771
{
1772
1772
auto rfirst1 = s1.rbegin ();
1773
1773
size_t suffix = static_cast <size_t >(
1774
- std::distance (rfirst1, mismatch (rfirst1, s1.rend (), s2.rbegin (), s2.rend ()).first ));
1774
+ std::distance (rfirst1, rf_mismatch (rfirst1, s1.rend (), s2.rbegin (), s2.rend ()).first ));
1775
1775
s1.remove_suffix (suffix);
1776
1776
s2.remove_suffix (suffix);
1777
1777
return suffix;
0 commit comments