5 #define SNOWBALL_RUNTIME_THROW_EXCEPTIONS
37 std::string
operator()(
const std::string& word)
override {
39 const symbol* s =
reinterpret_cast<const symbol*
>(word.data());
40 int s_size = word.size() > INT_MAX ? INT_MAX : word.size();
44 return std::string(
reinterpret_cast<const char*
>(z->
p),
SIZE(z->
p));
static int stem(struct SN_env *z)
std::string get_description() const override
Return a string describing this object.
std::string operator()(const std::string &word) override
Stem the specified word.
Class representing a stemming algorithm implementation.
SNOWBALL_ERR replace_s(struct SN_env *z, int c_bra, int c_ket, int s_size, const symbol *s)
bool b_found_vetrumai_urupu