📄 weights.hpp
字号:
#ifndef __aspeller_weights_hh__#define __aspeller_weights_hh__namespace aspeller { struct EditDistanceWeights { int del1; // the cost of deleting a char in the first string int del2; // the cost of inserting a character or deleting a char // in the next string int swap; // the cost of a swapping two adjesent letters int sub; // the cost of a replasing one letter with another int similar; // the cost of a "similar" but not exact match for // two characters int min; // the max of del1, del2, swap and sub. int max; // the min of del1, del2, swap and sub. EditDistanceWeights() : del1(1), del2(1), swap(1), sub(1), similar(0), min(1), max(1) {} }; }#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -