Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_corelib_text_qbytearrayview.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

#include <QtCore/qbytearrayview.h>
+ Include dependency graph for src_corelib_text_qbytearrayview.cpp:

Go to the source code of this file.

Functions

void myfun1 (QByteArrayView bv)
 [0]
 
void myfun2 (const QByteArrayView &bv)
 
void fun (QByteArrayView bv)
 [0]
 
void fun (char ch)
 

Variables

QByteArrayView str ("FF")
 [1]
 
bool ok
 [2]
 
int hex = str.toInt(&ok, 16)
 
int dec = str.toInt(&ok, 10)
 
QByteArrayView string ("1234.56 Volt")
 [3]
 
float a = str.toFloat(&ok)
 

Function Documentation

◆ fun() [1/2]

void fun ( char ch)

Definition at line 12 of file src_corelib_text_qbytearrayview.cpp.

◆ fun() [2/2]

void fun ( QByteArrayView bv)

[0]

[1]

◆ myfun1()

void myfun1 ( QByteArrayView bv)

[0]

◆ myfun2()

void myfun2 ( const QByteArrayView & bv)

Variable Documentation

◆ a

a = str.toFloat(&ok)

Definition at line 32 of file src_corelib_text_qbytearrayview.cpp.

◆ dec

long dec = str.toInt(&ok, 10)

Definition at line 19 of file src_corelib_text_qbytearrayview.cpp.

◆ hex

long hex = str.toInt(&ok, 16)

Definition at line 18 of file src_corelib_text_qbytearrayview.cpp.

◆ ok

bool ok
inline

[2]

[0]

[1]

[3]

[3-qstringview]

[2]

[4]

Definition at line 17 of file src_corelib_text_qbytearrayview.cpp.

◆ str

QByteArrayView str("FF") ( "FF" )

[1]

[2]

[3]

◆ string

QByteArrayView string("1234.56 Volt") ( "1234.56 Volt" )

[3]

[4]