1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-04 06:18:35 +03:00
kakoune/src/ranked_match.hh

22 lines
331 B
C++
Raw Normal View History

#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