Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6d30ce3c

Von cstim vor fast 20 Jahren hinzugefügt

  • ID 6d30ce3cb6496bc7f3957c990662f690a3016d27
  • Vorgänger fe7fb822
  • Nachfolger b02e0d5e

2005-09-16 Christian Stimming <>

  • src/frontends/qbanking/qbanking.cpp: Add static
    QBanking::isPure7BitAscii() to check QStrings for that. Improve
    header documentation. Do not yet fix potentially errorneous latin1
    conversion in QBanking::inputBox but add a huge FIXME comment.
  • src/frontends/qbanking/widgets/qbinputbox.cpp
    (QBInputBox::Validator::validate): Improve checking for digits by
    using only Qt methods on the QString.

git-svn-id: https://devel.aqbanking.de/svn/aqbanking/trunk@614 5c42a225-8b10-0410-9873-89b7810ad06e

Unterschiede anzeigen:

src/frontends/qbanking/qbanking.h
const QString &bankName="",
const QString &location="");
/** Convenience function to convert a QString into a std::string
* that will contain UTF-8 encoded characters, as necessary when
* passing strings into aqbanking.
*
* Watch out with the correct encodings! String passed into and
* out of aqbanking are expected in UTF-8, but NOT in Latin-1 or
* similar! */
static std::string QStringToUtf8String(const QString &qs);
/** Convenience function for extracting the GUI part of the
* HTML/cleartext-combi-strings from aqbanking.
*
* If the given string contains a
* &lt;html>html-part...&lt;/html> section, then the "html-part"
* section will be returned. If the given string does not
* contain a section like this, then the string will be returned
* unchanged. */
static std::string guiString(const char *s);
/** Convenience function that returns true if the given string
* consists of pure 7-bit ASCII characters, and false
* otherwise.
*
* In particular, if the given string contains Umlauts, accents,
* or similar, then this will return false. */
static bool isPure7BitAscii(const QString &s);
};

Auch abrufbar als: Unified diff