ALib C++ Library
by
Library Version:
2402 R1
Documentation generated by
Loading...
Searching...
No Matches
home
dev
A-Worx
ALib
src
alib
compatibility
qt_strings.hpp
Go to the documentation of this file.
1
/** ************************************************************************************************
2
* \file
3
* This header file is part of the \aliblong.
4
*
5
* \emoji :copyright: 2013-2024 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
18
#if !defined(HPP_ALIB) && !defined(ALIB_DOX)
19
# include "
alib/alib.hpp
"
20
#endif
21
22
#if !defined(ALIB_QT_LIB_NOT_FOUND)
// this is only set in an automated test project
23
24
25
#if !defined(HPP_ALIB_COMPATIBILITY_QT_CHARACTERS)
26
# include "
alib/compatibility/qt_characters.hpp
"
27
#endif
28
29
#if !defined(HPP_ALIB_STRINGS_ASTRING)
30
# include "
alib/strings/astring.hpp
"
31
#endif
32
33
namespace
alib
{
namespace
strings {
34
35
#if defined(ALIB_DOX)
36
namespace
APPENDABLES {
37
#endif
38
39
// #############################################################################################
40
// T_Append
41
// #############################################################################################
42
43
/** Specialization of type-traits struct \alib{strings;T_Append} for type \c QChar. */
44
template
<
typename
TChar>
struct
T_Append
<QChar, TChar>
45
{
46
/** ****************************************************************************************
47
* Appends \p{src} of type \b QChar to \p{target}.
48
*
49
* @param target The AString to append \p{src} to.
50
* @param src The source string.
51
******************************************************************************************/
52
void
operator()
(
TAString<TChar>
& target,
const
QChar& src )
53
{
54
target.
_
(
static_cast<
ALIB_QTCHAR
>
( src.unicode() ) );
55
}
56
};
57
58
#if defined(ALIB_DOX)
59
}
// namespace alib::strings[::APPENDABLES]
60
#endif
61
62
}}
// namespace [alib::strings]
63
64
65
#endif
// !defined(ALIB_QT_LIB_NOT_FOUND) // this is only set in an automated test project
66
#endif
// HPP_ALIB_COMPATIBILITY_QT_STRINGS
alib.hpp
astring.hpp
alib::strings::TAString
Definition
strings/fwds.hpp:37
alib::strings::TAString::_
TAString & _(const TString< TChar > &src, integer regionStart, integer regionLength=MAX_LEN)
Definition
astring.hpp:1056
alib
Definition
alib.cpp:57
qt_characters.hpp
alib::strings::APPENDABLES::T_Append< QChar, TChar >::operator()
void operator()(TAString< TChar > &target, const QChar &src)
Definition
qt_strings.hpp:52
alib::strings::T_Append
Definition
astring.hpp:96