Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

Qt 3 Support Members for QByteArray

The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.

Public Functions

  • QByteArray ( int size )
  • QByteArray & duplicate ( const QByteArray & a )
  • QByteArray & duplicate ( const char * a, uint n )
  • int find ( char c, int from = 0 ) const
  • int find ( const char * c, int from = 0 ) const
  • int find ( const QByteArray & ba, int from = 0 ) const
  • int find ( const QString & s, int from = 0 ) const
  • int findRev ( char c, int from = -1 ) const
  • int findRev ( const char * c, int from = -1 ) const
  • int findRev ( const QByteArray & ba, int from = -1 ) const
  • int findRev ( const QString & s, int from = -1 ) const
  • QByteArray leftJustify ( uint width, char fill = ' ', bool truncate = false ) const
  • QByteArray lower () const
  • void resetRawData ( const char * data, uint n )
  • QByteArray rightJustify ( uint width, char fill = ' ', bool truncate = false ) const
  • QByteArray & setRawData ( const char * a, uint n )
  • QByteArray simplifyWhiteSpace () const
  • QByteArray stripWhiteSpace () const
  • QByteArray upper () const

Member Function Documentation

QByteArray::QByteArray ( int size )

Use QByteArray(int, char) instead.

QByteArray & QByteArray::duplicate ( const QByteArray & a )

Use simple assignment instead. (QByteArray uses implicit sharing so if you modify a copy, only the copy is changed.)

QByteArray & QByteArray::duplicate ( const char * a, uint n )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use simple assignment instead. (QByteArray uses implicit sharing so if you modify a copy, only the copy is changed.)

int QByteArray::find ( char c, int from = 0 ) const

Use indexOf() instead.

int QByteArray::find ( const char * c, int from = 0 ) const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use indexOf() instead.

int QByteArray::find ( const QByteArray & ba, int from = 0 ) const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use indexOf() instead.

int QByteArray::find ( const QString & s, int from = 0 ) const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use indexOf() instead.

int QByteArray::findRev ( char c, int from = -1 ) const

Use lastIndexOf() instead.

int QByteArray::findRev ( const char * c, int from = -1 ) const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use lastIndexOf() instead.

int QByteArray::findRev ( const QByteArray & ba, int from = -1 ) const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use lastIndexOf() instead.

int QByteArray::findRev ( const QString & s, int from = -1 ) const

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use lastIndexOf() instead.

QByteArray QByteArray::leftJustify ( uint width, char fill = ' ', bool truncate = false ) const

Use leftJustified() instead.

QByteArray QByteArray::lower () const

Use toLower() instead.

void QByteArray::resetRawData ( const char * data, uint n )

Use clear() instead.

QByteArray QByteArray::rightJustify ( uint width, char fill = ' ', bool truncate = false ) const

Use rightJustified() instead.

QByteArray & QByteArray::setRawData ( const char * a, uint n )

Use fromRawData() instead.

QByteArray QByteArray::simplifyWhiteSpace () const

Use simplified() instead.

QByteArray QByteArray::stripWhiteSpace () const

Use trimmed() instead.

QByteArray QByteArray::upper () const

Use toUpper() instead.

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 4.0
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web