Coverage Report

Created: 2025-07-12 06:08

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