Coverage Report

Created: 2025-10-10 06:18

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/aspell/modules/speller/default/weights.hpp
Line
Count
Source
1
2
#ifndef __aspeller_weights_hh__
3
#define __aspeller_weights_hh__
4
5
namespace aspeller {
6
7
  struct EditDistanceWeights {
8
    int del1;    // the cost of deleting a char in the first string
9
    int del2;    // the cost of inserting a character or deleting a char
10
                    // in the second string
11
    int swap;    // the cost of swapping two adjacent letters
12
    int sub;     // the cost of replacing one letter with another
13
    int similar; // the cost of a "similar" but not exact match for
14
                    // two characters
15
    int min;     // the min of del1, del2, swap and sub.
16
    int max;     // the max of del1, del2, swap and sub.
17
    EditDistanceWeights()
18
2.15k
      : del1(1), del2(1), swap(1), sub(1), similar(0), min(1), max(1) {}
19
  };
20
  
21
}
22
23
#endif