Coverage Report

Created: 2025-08-28 06:20

/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
1.02k
    : word_begin(0), word_end(0), end(0), 
15
1.02k
      begin_pos(0), end_pos(0),
16
1.02k
      conv_(0) 
17
1.02k
  {}
18
19
  Tokenizer::~Tokenizer()
20
1.02k
  {}
21
22
  void Tokenizer::reset (FilterChar * start, FilterChar * stop)
23
1.01k
  {
24
1.01k
    bool can_encode = conv_->encode(start, stop, buf_);
25
1.01k
    assert(can_encode);
26
1.01k
    end_pos = 0;
27
1.01k
    word_end = start;
28
1.01k
    end = stop;
29
1.01k
  }
30
31
}