LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
ReturnStatus.cpp
Go to the documentation of this file.
1// Copyright 2002-2013 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6// NAUTITIA
7//
8// jys 23-JUL-2002
9//
10// ReturnStatus manages the list of status returned by an
11// inner automaton to its master state.
12// Return status are declared at the beginning of state
13// definition, before inner automatons and transitions.
14
15#include "ReturnStatus.h"
16
18
19using namespace Lima;
20
21namespace Lima
22{
23namespace LinguisticProcessing
24{
25namespace FlatTokenizer
26{
27
28
30 _statusList(),
31 _currentCode(0) {}
32
34{
35 _statusList.clear();//AndDestroy();
36}
37
38// inserts a new return status in the list. If specified
39// status already exists, 0 is returned, its code otherwise.
41 _statusList.push_back(StatusEntry(name, _currentCode));
42 return LimaChar(_currentCode.unicode()--);
43}
44
45} //namespace FlatTokenizer
46} // namespace LinguisticProcessing
47} // namespace Lima
Lima::LimaChar addStatus(const Lima::LimaString &name)
NAUTITIA.
QChar LimaChar
Definition LimaString.h:30
QString LimaString
Definition LimaString.h:33