Ninja
Functions
edit_distance.h File Reference
#include "string_piece.h"
Include dependency graph for edit_distance.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int EditDistance (const StringPiece &s1, const StringPiece &s2, bool allow_replacements=true, int max_edit_distance=0)
 

Function Documentation

int EditDistance ( const StringPiece s1,
const StringPiece s2,
bool  allow_replacements = true,
int  max_edit_distance = 0 
)

Definition at line 19 of file edit_distance.cc.

References StringPiece::len_, and StringPiece::str_.

Referenced by State::SpellcheckNode(), SpellcheckStringV(), and TEST().