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
|