ArcdpsExtension
 
Loading...
Searching...
No Matches
rapidfuzz::EditOp Struct Reference

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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ EditOp() [1/2]

rapidfuzz::EditOp::EditOp ( )
inline

◆ EditOp() [2/2]

rapidfuzz::EditOp::EditOp ( EditType  type_,
int64_t  src_pos_,
int64_t  dest_pos_ 
)
inline

Member Data Documentation

◆ dest_pos

int64_t rapidfuzz::EditOp::dest_pos

index into the destination string

◆ src_pos

int64_t rapidfuzz::EditOp::src_pos

index into the source string

◆ type

EditType rapidfuzz::EditOp::type

type of the edit operation


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