Md4qt

MD::UnicodeStringTrait Struct Reference

#include <traits.h>

Public Types

using Char = UnicodeChar
 
using InternalString = InternalStringT<String, Char, Char>
 
using InternalStringList = std::vector<InternalString>
 
template<class T , class U >
using Map = std::map<T, U>
 
using String = UnicodeString
 
using StringList = std::vector<String>
 
using TextStream = std::istream
 
using Url = UrlUri
 
template<class T >
using Vector = std::vector<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 UnicodeChar &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 std::string.

Definition at line 893 of file traits.h.

Member Typedef Documentation

◆ Char

Definition at line 902 of file traits.h.

◆ InternalString

◆ InternalStringList

Definition at line 910 of file traits.h.

◆ Map

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

Definition at line 898 of file traits.h.

◆ String

Definition at line 900 of file traits.h.

◆ StringList

Definition at line 908 of file traits.h.

◆ TextStream

using MD::UnicodeStringTrait::TextStream = std::istream

Definition at line 906 of file traits.h.

◆ Url

Definition at line 912 of file traits.h.

◆ Vector

template<class T >
using MD::UnicodeStringTrait::Vector = std::vector<T>

Definition at line 895 of file traits.h.

Member Function Documentation

◆ absoluteFilePath()

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

Definition at line 979 of file traits.h.

◆ appendUcs4()

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

Add UCS4 to string.

Definition at line 992 of file traits.h.

◆ fileExists() [1/2]

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

Definition at line 966 of file traits.h.

◆ fileExists() [2/2]

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

Definition at line 953 of file traits.h.

◆ isUnicodeWhitespace()

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

Definition at line 915 of file traits.h.

◆ latin1ToChar()

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

Convert Latin1 char into trait's char.

Definition at line 941 of file traits.h.

◆ latin1ToString()

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

Convert Latin1 into trait's string.

Definition at line 935 of file traits.h.

◆ utf16ToString()

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

Convert UTF-16 into trait's string.

Definition at line 929 of file traits.h.

◆ utf8ToString()

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

Convert UTF8 into trait's string.

Definition at line 947 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 Sat Dec 21 2024 17:04:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.