Coverage Report

Created: 2023-12-08 06:59

/src/aspell/modules/speller/default/phonetic.hpp
Line
Count
Source
1
// Copyright 2000 by Kevin Atkinson under the terms of the LGPL
2
3
#ifndef __aspeller_phonetic__
4
#define __aspeller_phonetic__
5
6
#include "string.hpp"
7
8
using namespace acommon;
9
10
namespace acommon {struct Conv;}
11
12
namespace aspeller {
13
14
  class Language;
15
16
  class Soundslike {
17
  public:
18
    virtual String soundslike_chars() const = 0;
19
    // string must be null terminated even if len is given
20
    virtual char * to_soundslike(char *, const char *, int len = -1) const = 0;
21
    virtual const char * name() const = 0;
22
    virtual const char * version() const = 0;
23
    virtual PosibErr<void> setup(Conv &) = 0;
24
718
    virtual ~Soundslike() {}
25
  };
26
27
  PosibErr<Soundslike *> new_soundslike(ParmString name,
28
                                        Conv & conv,
29
                                        const Language * lang);
30
};
31
32
#endif