QGIS API Documentation 3.39.0-Master (be2050b798e)
No Matches
Macros | Functions
fromencodedcomponenthelper.h File Reference
#include "qgis_core.h"
#include <QtEndian>
Include dependency graph for fromencodedcomponenthelper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define SIP_NO_FILE


ushort encodeNibble (ushort c)
QString CORE_EXPORT fromEncodedComponent_helper (const QByteArray &ba)
char toHexUpper (uint value) noexcept

Macro Definition Documentation


#define SIP_NO_FILE

Definition at line 18 of file fromencodedcomponenthelper.h.

Function Documentation

◆ encodeNibble()

ushort encodeNibble ( ushort  c)

Definition at line 34 of file fromencodedcomponenthelper.h.

◆ fromEncodedComponent_helper()

QString CORE_EXPORT fromEncodedComponent_helper ( const QByteArray &  ba)

ba contains an 8-bit form of the component and it might be percent-encoded already. We can't use QString::fromUtf8 because it might contain non-UTF8 sequences. We can't use QByteArray::toPercentEncoding because it might already contain percent-encoded sequences. We can't use qt_urlRecode because it needs UTF-16 input.

This method is named qt_urlRecodeByteArray in Qt's internals

Definition at line 57 of file fromencodedcomponenthelper.cpp.

◆ toHexUpper()

char toHexUpper ( uint  value)

Definition at line 29 of file fromencodedcomponenthelper.h.