ALib C++ Framework
by
Library Version:
2605 R0
Documentation generated by
Loading...
Searching...
No Matches
ALib
src
alib
strings
qtstrings.hpp
Go to the documentation of this file.
1
//==================================================================================================
2
/// \file
3
/// This header-file is part of the \aliblong.
4
///
5
/// Copyright 2013-2026 A-Worx GmbH, Germany.
6
/// Published under #"mainpage_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
namespace
alib::strings
{
16
17
#if DOXYGEN
18
namespace
APPENDABLES
{
19
#endif
20
21
//##################################################################################################
22
// AppendableTraits
23
//##################################################################################################
24
25
/// Specialization of the type trait #"AppendableTraits" for type \c QChar.
26
template
<
typename
TChar,
typename
TAllocator>
27
struct
AppendableTraits
<QChar, TChar, TAllocator> {
28
/// Appends \p{src} of type \b QChar to \p{target}.
29
///
30
/// @param target The AString to append \p{src} to.
31
/// @param src The source string.
32
void
operator()
(
TAString<TChar,TAllocator>
& target,
const
QChar& src ) {
33
target.
_
(
static_cast<
ALIB_QTCHAR
>
( src.unicode() ) );
34
}
35
};
36
37
#if DOXYGEN
38
}
// namespace alib::strings[::APPENDABLES]
39
#endif
40
41
}
// namespace [alib::strings]
alib::strings::TAString
Definition
tastring.hpp:174
alib::strings::TAString::_
TAString & _(const TAppendable &src)
Definition
tastring.hpp:1320
alib::strings::APPENDABLES
Definition
logger.hpp:165
alib::strings
Definition
logger.hpp:160
alib::strings::APPENDABLES::AppendableTraits< QChar, TChar, TAllocator >::operator()
void operator()(TAString< TChar, TAllocator > &target, const QChar &src)
Definition
qtstrings.hpp:32
alib::strings::AppendableTraits
Definition
tastring.hpp:51