ALib C++ Framework
by
Library Version: 2605 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
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//==================================================================================================
15namespace alib::strings {
16
17#if DOXYGEN
18namespace APPENDABLES {
19#endif
20
21//##################################################################################################
22// AppendableTraits
23//##################################################################################################
24
25/// Specialization of the type trait #"AppendableTraits" for type \c QChar.
26template<typename TChar, typename TAllocator>
27struct 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]
TAString & _(const TAppendable &src)
void operator()(TAString< TChar, TAllocator > &target, const QChar &src)
Definition qtstrings.hpp:32