ALib C++ Library
by
Library Version:
2510 R0
Documentation generated by
Loading...
Searching...
No Matches
home
dev
A-Worx
ALib
src
ALib.Compatibility.QTStrings.H
Go to the documentation of this file.
1
//==================================================================================================
2
/// \file
3
/// This header-file is part of the \aliblong.
4
///
5
/// \emoji :copyright: 2013-2025 A-Worx GmbH, Germany.
6
/// Published under \ref mainpage_license "Boost Software License".
7
///
8
/// <b>Legal Notice:</b>
9
/// This is an optional extension header to provide compatibility between \alib and
10
/// the QT class library.
11
/// All information about QT is found at https://www.qt.io
12
/// \alib otherwise does not use or rely on QT.
13
/// The use of QT is bound to the QT license restrictions.
14
//==================================================================================================
15
#ifndef HPP_ALIB_COMPATIBILITY_QT_STRINGS
16
#define HPP_ALIB_COMPATIBILITY_QT_STRINGS 1
17
#pragma once
18
#if !defined(DOXYGEN)
19
# include "
alib/alib.inl
"
20
#endif
21
22
#if !defined(ALIB_QT_LIB_NOT_FOUND)
// this is only set in an automated test project
23
24
#include "
ALib.Lang.H
"
25
#include "
ALib.Compatibility.QTCharacters.H
"
26
#include "
ALib.Strings.H
"
27
28
namespace
alib::strings
{
29
30
#if DOXYGEN
31
namespace
APPENDABLES
{
32
#endif
33
34
// #############################################################################################
35
// AppendableTraits
36
// #############################################################################################
37
38
/// Specialization of the type trait \alib{strings;AppendableTraits} for type \c QChar.
39
template
<
typename
TChar,
typename
TAllocator>
struct
AppendableTraits
<QChar, TChar, TAllocator>
40
{
41
//==============================================================================================
42
/// Appends \p{src} of type \b QChar to \p{target}.
43
///
44
/// @param target The AString to append \p{src} to.
45
/// @param src The source string.
46
//==============================================================================================
47
void
operator()
(
TAString<TChar,TAllocator>
& target,
const
QChar& src )
48
{
49
target.
_
(
static_cast<
ALIB_QTCHAR
>
( src.unicode() ) );
50
}
51
};
52
53
#if DOXYGEN
54
}
// namespace alib::strings[::APPENDABLES]
55
#endif
56
57
}
// namespace [alib::strings]
58
59
60
#endif
// !defined(ALIB_QT_LIB_NOT_FOUND) // this is only set in an automated test project
61
#endif
// HPP_ALIB_COMPATIBILITY_QT_STRINGS
62
ALib.Compatibility.QTCharacters.H
ALib.Lang.H
ALib.Strings.H
alib.inl
alib::strings::TAString
Definition
tastring.inl:175
alib::strings::TAString::_
TAString & _(const TAppendable &src)
Definition
tastring.inl:1441
alib::strings::APPENDABLES
Definition
ALib.Compatibility.QTStrings.H:31
alib::strings
Definition
ALib.Compatibility.QTStrings.H:28
alib::strings::APPENDABLES::AppendableTraits< QChar, TChar, TAllocator >::operator()
void operator()(TAString< TChar, TAllocator > &target, const QChar &src)
Definition
ALib.Compatibility.QTStrings.H:47
alib::strings::AppendableTraits
Definition
tastring.inl:52