Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

fuzzyphonetic.h File Reference

#include "fuzzy/fuzzyimpl.h"

Go to the source code of this file.

Namespaces

namespace  fuzzyphonetic

Functions

char fuzzyphonetic::to_upper (char ch)
 converts the char to upper case
char fuzzyphonetic::to_lower (char ch)
 converts the char to lower case
metaphone_key fuzzyphonetic::convert_to_metaphone (const char *word,size_t len,byte_allocator &all)
 converts a single word to the phonetic key memory is allocated on an external allocator
void fuzzyphonetic::convert_to_reflection (const char *word,size_t len,byte_allocator &all,reflection_key &reflection)
 converts phrase to reflection
template<class T>
size_t fuzzyphonetic::metaphone_distance (const T *ax, size_t x, const T *ay, size_t y, byte_allocator &tmp, size_t max_penalty)
 calculates the matrix distance
size_t fuzzyphonetic::find_metaphone_distance (const metaphone_key &x, const metaphone_key &y, byte_allocator &tmp, size_t max_penalty)
 finds the distance between the two metaphone keys
size_t fuzzyphonetic::find_reflection_distance (const reflection_key &x, const reflection_key &y, byte_allocator &tmp, size_t max_penalty)
 finds the distance between the two reflection keys
size_t fuzzyphonetic::find_word_distance (const char *x, size_t xlen, const char *y, size_t ylen, byte_allocator &tmp, size_t max_penalty)
 finds the distance between the two words



© Copyright Terimber 2003-.