YoushouldhavereceivedacopyoftheGNUGeneralPublicLicense alongwiththisprogram;ifnot,writetotheFreeSoftware
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */
#ifndef SCAN_CHAR_H #define SCAN_CHAR_H
/** Ahelperclasstostoretheheadcharacterofastring, withhelpofacharlen()call.
*/ class Scan_char
{ constchar *m_ptr; // The start of the character int m_length; // The result: // >0 - the character octet length // <=0 - an error (e.g. end of input, wrong byte sequence) public:
Scan_char(CHARSET_INFO *const cs, constchar *str, constchar *end)
:m_ptr(str), m_length(cs->charlen(str, end))
{ } // Compare if two non-erroneous characters are equal bool eq(const Scan_char &rhs) const
{
DBUG_ASSERT(m_length > 0);
DBUG_ASSERT(rhs.m_length > 0); return m_length == rhs.m_length &&
!memcmp(m_ptr, rhs.m_ptr, (size_t) m_length);
} // Compare if two possibly erroneous characters are equal bool eq_safe(const Scan_char &rhs) const
{ return m_length == rhs.m_length && m_length > 0 &&
!memcmp(m_ptr, rhs.m_ptr, (size_t) m_length);
} constchar *ptr() const { return m_ptr; } int length() const { return m_length; }
};
#endif// SCAN_CHAR_H
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.1Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-10-08)
¤
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.