class CharsetRecognizer : public UMemory
{ public: /** * Get the IANA name of this charset. * Note that some recognizers can recognize more than one charset, but that this API * assumes just one name per recognizer. * TODO: need to account for multiple names in public API that enumerates over the * known detectable charsets. * @return the charset name.
*/ virtualconstchar *getName() const = 0;
/** * Get the ISO language code for this charset. * @return the language code, or <code>null</code> if the language cannot be determined.
*/ virtualconstchar *getLanguage() const;
/* * Try the given input text against this Charset, and fill in the results object * with the quality of the match plus other information related to the match. * * Return true if the the input bytes are a potential match, and * false if the input data is not compatible with, or illegal in this charset.
*/ virtual UBool match(InputText *textIn, CharsetMatch *results) const = 0;
virtual ~CharsetRecognizer();
};
U_NAMESPACE_END
#endif #endif/* __CSRECOG_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.16 Sekunden
(vorverarbeitet)
¤
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.