Md4qt

MD::QStringTrait Struct Reference

#include <traits.h>

Public Types

using Char = QChar
 
using InternalString = InternalStringT<String, Char, QLatin1Char>
 
using InternalStringList = std::vector<InternalString>
 
template<class T , class U >
using Map = std::map<T, U>
 
using String = QString
 
using StringList = QStringList
 
using TextStream = QTextStream
 
using Url = QUrl
 
template<class T >
using Vector = QVector<T>
 

Static Public Member Functions

static String absoluteFilePath (const String &path)
 
static void appendUcs4 (String &str, char32_t ch)
 
static bool fileExists (const String &fileName)
 
static bool fileExists (const String &fileName, const String &workingPath)
 
static bool isUnicodeWhitespace (const QChar &ch)
 
static Char latin1ToChar (char latin1)
 
static String latin1ToString (const char *latin1)
 
static String utf16ToString (const char16_t *u16)
 
static String utf8ToString (const char *utf8)
 

Detailed Description

Trait to use this library with QString.

Definition at line 1007 of file traits.h.

Member Typedef Documentation

◆ Char

Definition at line 1016 of file traits.h.

◆ InternalString

◆ InternalStringList

Definition at line 1020 of file traits.h.

◆ Map

template<class T , class U >
using MD::QStringTrait::Map = std::map<T, U>

Definition at line 1012 of file traits.h.

◆ String

Definition at line 1014 of file traits.h.

◆ StringList

Definition at line 1024 of file traits.h.

◆ TextStream

Definition at line 1022 of file traits.h.

◆ Url

Definition at line 1026 of file traits.h.

◆ Vector

template<class T >
using MD::QStringTrait::Vector = QVector<T>

Definition at line 1009 of file traits.h.

Member Function Documentation

◆ absoluteFilePath()

static String MD::QStringTrait::absoluteFilePath ( const String & path)
inlinestatic
Returns
Absolute file path.

Definition at line 1080 of file traits.h.

◆ appendUcs4()

static void MD::QStringTrait::appendUcs4 ( String & str,
char32_t ch )
inlinestatic

Add UCS4 to string.

Definition at line 1086 of file traits.h.

◆ fileExists() [1/2]

static bool MD::QStringTrait::fileExists ( const String & fileName)
inlinestatic
Returns
Does file exist.

Definition at line 1074 of file traits.h.

◆ fileExists() [2/2]

static bool MD::QStringTrait::fileExists ( const String & fileName,
const String & workingPath )
inlinestatic
Returns
Does file exist.

Definition at line 1067 of file traits.h.

◆ isUnicodeWhitespace()

static bool MD::QStringTrait::isUnicodeWhitespace ( const QChar & ch)
inlinestatic
Returns
Is Unicode whitespace?

Definition at line 1029 of file traits.h.

◆ latin1ToChar()

static Char MD::QStringTrait::latin1ToChar ( char latin1)
inlinestatic

Convert Latin1 char into trait's char.

Definition at line 1055 of file traits.h.

◆ latin1ToString()

static String MD::QStringTrait::latin1ToString ( const char * latin1)
inlinestatic

Convert Latin1 into trait's string.

Definition at line 1049 of file traits.h.

◆ utf16ToString()

static String MD::QStringTrait::utf16ToString ( const char16_t * u16)
inlinestatic

Convert UTF-16 into trait's string.

Definition at line 1043 of file traits.h.

◆ utf8ToString()

static String MD::QStringTrait::utf8ToString ( const char * utf8)
inlinestatic

Convert UTF8 into trait's string.

Definition at line 1061 of file traits.h.


The documentation for this struct was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.