File: phonetic.hpp

package info (click to toggle)
aspell 0.60.8.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,336 kB
  • sloc: cpp: 24,378; sh: 12,340; perl: 1,924; ansic: 1,661; makefile: 852; sed: 16
file content (32 lines) | stat: -rw-r--r-- 824 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2000 by Kevin Atkinson under the terms of the LGPL

#ifndef __aspeller_phonetic__
#define __aspeller_phonetic__

#include "string.hpp"

using namespace acommon;

namespace acommon {struct Conv;}

namespace aspeller {

  class Language;

  class Soundslike {
  public:
    virtual String soundslike_chars() const = 0;
    // string must be null terminated even if len is given
    virtual char * to_soundslike(char *, const char *, int len = -1) const = 0;
    virtual const char * name() const = 0;
    virtual const char * version() const = 0;
    virtual PosibErr<void> setup(Conv &) = 0;
    virtual ~Soundslike() {}
  };

  PosibErr<Soundslike *> new_soundslike(ParmString name,
                                        Conv & conv,
                                        const Language * lang);
};

#endif