weights.hpp

来自「unix/linux下拼写检查程序源码」· HPP 代码 · 共 24 行

HPP
24
字号
#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 + =
减小字号Ctrl + -
显示快捷键?