undoStudio
The IDE of the undoRT ecosystem
Loading...
Searching...
No Matches
undoApp::ST::NameMatch Struct Reference

How a typed pattern lines up with a candidate name. More...

#include <undoAppSTSemantic.hpp>

Collaboration diagram for undoApp::ST::NameMatch:
Collaboration graph

Public Attributes

bool matched = false
 Pattern occurs in order inside the name.
 
int score = 0
 Higher is better; only meaningful if matched.
 
std::vector< int > positions
 Matched indices into the name, ascending.
 

Detailed Description

How a typed pattern lines up with a candidate name.

The positions are what the list highlights, so a fuzzy hit shows the user why it matched instead of just claiming it did.

Member Data Documentation

◆ matched

bool undoApp::ST::NameMatch::matched = false

Pattern occurs in order inside the name.

◆ positions

std::vector<int> undoApp::ST::NameMatch::positions

Matched indices into the name, ascending.

◆ score

int undoApp::ST::NameMatch::score = 0

Higher is better; only meaningful if matched.


The documentation for this struct was generated from the following file: