Edit operations used by the Levenshtein distance. More...
#include <rapidfuzz_amalgamated.hpp>
Public Member Functions | |
| EditOp () | |
| EditOp (EditType type_, int64_t src_pos_, int64_t dest_pos_) | |
Public Attributes | |
| EditType | type |
| int64_t | src_pos |
| int64_t | dest_pos |
Edit operations used by the Levenshtein distance.
This represents an edit operation of type type which is applied to the source string
Replace: replace character at src_pos with character at dest_pos Insert: insert character from dest_pos at src_pos Delete: delete character at src_pos
|
inline |
|
inline |
| int64_t rapidfuzz::EditOp::dest_pos |
index into the destination string
| int64_t rapidfuzz::EditOp::src_pos |
index into the source string
| EditType rapidfuzz::EditOp::type |
type of the edit operation