"Fossies" - the Fresh Open Source Software Archive

Member "kydpdict-0.9.5/src/ydpconverter.h" (12 Feb 2006, 1818 Bytes) of package /linux/privat/old/kydpdict-0.9.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ydpconverter.h" see the Fossies "Dox" file reference documentation.

    1 /***************************************************************************
    2  *                                                                         *
    3  *   This program is free software; you can redistribute it and/or modify  *
    4  *   it under the terms of the GNU General Public License as published by  *
    5  *   the Free Software Foundation; either version 2 of the License, or     *
    6  *   (at your option) any later version.                                   *
    7  *                                                                         *
    8  ***************************************************************************/
    9 
   10 #ifndef _YDPCONVERTER_H
   11 #define _YDPCONVERTER_H
   12 
   13 class QString;
   14 class QCString;
   15 
   16     class ydpConverter {
   17         public:
   18             ydpConverter(void);
   19             virtual ~ydpConverter();
   20             // dictionary-dependent convertion routines
   21 
   22             // convert a letter to lowercase
   23             virtual char toLower(const char c);
   24             // strip input (from dict. index, native) from any non-letter characters
   25             // return lowercase
   26             virtual char *toLocal(const char *input);
   27             // convert input (dict. index, native) to unicode, replace accents, remove tags etc.
   28             virtual QString toUnicode(const char *input);
   29             // convert input (unicode) to dict. index native encoding
   30             virtual QCString fromUnicode(QString input);
   31             // same as toUnicode but for dictionary data, not index
   32             virtual QString convertChunk(const char *inp, int size = 0, bool unicodeFont = false);
   33             // return character index in dict. index native encoding alphabet
   34             virtual int charIndex(const char c);
   35             // number of letters common to both words, starting from left
   36             int scoreWord(const char *w1, const char *w2);
   37             // same as strcoll but dict. index native, not related to current locale
   38             virtual int localeCompare(const char *w1, const char *w2);
   39     };
   40 
   41 #endif