LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
LimaString.h
Go to the documentation of this file.
1
// Copyright 2002-2020 CEA LIST
2
// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3
//
4
// SPDX-License-Identifier: MIT
5
15
#ifndef LIMA_LIMASTRING_H
16
#define LIMA_LIMASTRING_H
17
18
#include "
common/LimaCommon.h
"
19
20
#include <functional>
21
22
#include <QtGlobal>
23
#include <QtCore/QString>
24
#include <QtCore/QHash>
25
26
namespace
Lima
27
{
30
using
LimaChar
= QChar;
33
using
LimaString
= QString;
34
// keep ouput operators to avoid explicit conversion to utf8 at each output
35
LIMA_DATA_EXPORT
std::ostream&
operator<<
(std::ostream &os,
const
QString& s);
36
}
// closing namespace Lima
37
38
namespace
std
39
{
40
41
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
42
// With Qt 5.14 and higher, this definition is not necessary anymore
43
template
<>
struct
hash<QString> {
44
std::size_t operator()(
const
QString& s)
const
noexcept
{
45
return
(
size_t
) qHash(s);
46
}
47
};
48
#endif
49
50
}
51
52
53
#endif
// LIMA_LIMASTRING_H
LimaCommon.h
LIMA_DATA_EXPORT
#define LIMA_DATA_EXPORT
Definition
LimaCommon.h:128
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
Lima::operator<<
std::ostream & operator<<(ostream &os, const Node &node)
Definition
DataTypes.cpp:431
Lima::LimaChar
QChar LimaChar
Definition
LimaString.h:30
Lima::LimaString
QString LimaString
Definition
LimaString.h:33
std
STL namespace.
lima_common
src
common
Data
LimaString.h
Generated by
1.9.8