Coverage Report

Created: 2026-09-03 06:09

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/aspell/common/tokenizer.cpp
Line
Count
Source
1
// This file is part of The New Aspell
2
// Copyright (C) 2002 by Kevin Atkinson under the GNU LGPL license
3
// version 2.0 or 2.1.  You should have received a copy of the LGPL
4
// license along with this library if you did not you can find
5
// it at http://www.gnu.org/.
6
7
#include "tokenizer.hpp"
8
#include "convert.hpp"
9
10
namespace acommon
11
{
12
13
  Tokenizer::Tokenizer() 
14
899
    : word_begin(0), word_end(0), end(0), 
15
899
      begin_pos(0), end_pos(0),
16
899
      conv_(0) 
17
899
  {}
18
19
  Tokenizer::~Tokenizer()
20
899
  {}
21
22
  void Tokenizer::reset (FilterChar * start, FilterChar * stop)
23
891
  {
24
891
    bool can_encode = conv_->encode(start, stop, buf_);
25
891
    assert(can_encode);
26
891
    end_pos = 0;
27
891
    word_end = start;
28
891
    end = stop;
29
891
  }
30
31
}