QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
Loading...
Searching...
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.

Macros

#define SIP_NO_FILE
 

Functions

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

Macro Definition Documentation

◆ SIP_NO_FILE

#define SIP_NO_FILE

Definition at line 18 of file fromencodedcomponenthelper.h.

Function Documentation

◆ encodeNibble()

ushort encodeNibble ( ushort  c)
inline

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)
inlinenoexcept

Definition at line 29 of file fromencodedcomponenthelper.h.