/* * CharsetMatch represents the results produced by one Charset Recognizer for one input text * Any confidence > 0 indicates a possible match, meaning that the input bytes * are at least legal. * * The full results of a detect are represented by an array of these * CharsetMatch objects, each representing a possible matching charset. * * Note that a single charset recognizer may detect multiple closely related * charsets, and set different names depending on the exact input bytes seen.
*/ class CharsetMatch : public UMemory
{ private:
InputText *textIn;
int32_t confidence; constchar *fCharsetName; constchar *fLang;
public:
CharsetMatch();
/** * fully set the state of this CharsetMatch. * Called by the CharsetRecognizers to record match results. * Default (nullptr) parameters for names will be filled by calling the * corresponding getters on the recognizer.
*/ void set(InputText *input, const CharsetRecognizer *cr,
int32_t conf, constchar *csName=nullptr, constchar *lang=nullptr);
/** * Return the name of the charset for this Match
*/ constchar *getName() const;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.