ArcdpsExtension
 
Loading...
Searching...
No Matches
rapidfuzz::fuzz Namespace Reference

Namespaces

namespace  detail
 

Classes

struct  CachedPartialRatio
 
struct  CachedPartialTokenRatio
 
struct  CachedPartialTokenSetRatio
 
struct  CachedPartialTokenSortRatio
 
struct  CachedQRatio
 
struct  CachedRatio
 
struct  CachedTokenRatio
 
struct  CachedTokenSetRatio
 
struct  CachedTokenSortRatio
 
struct  CachedWRatio
 

Functions

template<typename InputIt1 , typename InputIt2 >
double ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0)
 calculates a simple ratio between two strings
 
template<typename Sentence1 , typename Sentence2 >
double ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0)
 
template<typename InputIt1 , typename InputIt2 >
double partial_ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0)
 calculates the fuzz::ratio of the optimal string alignment
 
template<typename Sentence1 , typename Sentence2 >
double partial_ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0)
 
template<typename InputIt1 , typename InputIt2 >
double token_sort_ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0)
 Sorts the words in the strings and calculates the fuzz::ratio between them.
 
template<typename Sentence1 , typename Sentence2 , typename CharT1 = char_type<Sentence1>, typename CharT2 = char_type<Sentence2>>
double token_sort_ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0)
 
template<typename InputIt1 , typename InputIt2 >
double partial_token_sort_ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0)
 Sorts the words in the strings and calculates the fuzz::partial_ratio between them.
 
template<typename Sentence1 , typename Sentence2 >
double partial_token_sort_ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0)
 
template<typename InputIt1 , typename InputIt2 >
double token_set_ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0)
 Compares the words in the strings based on unique and common words between them using fuzz::ratio.
 
template<typename Sentence1 , typename Sentence2 >
double token_set_ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0)
 
template<typename InputIt1 , typename InputIt2 >
double partial_token_set_ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0)
 Compares the words in the strings based on unique and common words between them using fuzz::partial_ratio.
 
template<typename Sentence1 , typename Sentence2 >
double partial_token_set_ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0)
 
template<typename InputIt1 , typename InputIt2 >
double token_ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0)
 Helper method that returns the maximum of fuzz::token_set_ratio and fuzz::token_sort_ratio (faster than manually executing the two functions)
 
template<typename Sentence1 , typename Sentence2 >
double token_ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0)
 
template<typename InputIt1 , typename InputIt2 >
double partial_token_ratio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0)
 Helper method that returns the maximum of fuzz::partial_token_set_ratio and fuzz::partial_token_sort_ratio (faster than manually executing the two functions)
 
template<typename Sentence1 , typename Sentence2 >
double partial_token_ratio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0)
 
template<typename InputIt1 , typename InputIt2 >
double WRatio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0)
 Calculates a weighted ratio based on the other ratio algorithms.
 
template<typename Sentence1 , typename Sentence2 >
double WRatio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0)
 
template<typename InputIt1 , typename InputIt2 >
double QRatio (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0)
 Calculates a quick ratio between two strings using fuzz.ratio.
 
template<typename Sentence1 , typename Sentence2 >
double QRatio (const Sentence1 &s1, const Sentence2 &s2, double score_cutoff=0)