mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-04 06:18:35 +03:00
22 lines
331 B
C++
22 lines
331 B
C++
|
#ifndef ranked_match_hh_INCLUDED
|
||
|
#define ranked_match_hh_INCLUDED
|
||
|
|
||
|
#include "string.hh"
|
||
|
#include "vector.hh"
|
||
|
|
||
|
namespace Kakoune
|
||
|
{
|
||
|
|
||
|
struct RankedMatch
|
||
|
{
|
||
|
StringView word;
|
||
|
int rank;
|
||
|
};
|
||
|
using RankedMatchList = Vector<RankedMatch>;
|
||
|
|
||
|
int match_rank(StringView candidate, StringView query);
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif // ranked_match_hh_INCLUDED
|