Debian Codegraph @

src/irregs.cpp

raw symbols SCIP
1 /* irregs.cpp
2 *
3 * This file is part of COLLATINUS.
4 *
5 * COLLATINUS is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * COLLATINVS is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with COLLATINUS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * © Yves Ouvrard, 2009 - 2016
20 */
21
22 // TODO
23 // déclinaison interne : jusjurandum, respublica, unusquisque
24 // autre cas : paterfamilias
25 // génération des irréguliers
26 //
27
28 #include "irregs.h"cxx . . $ `<file>/src/irregs.h`/
29 #include <QStringList>
30 #include "ch.h"cxx . . $ `<file>/src/ch.h`/
31 #include "lemme.h"cxx . . $ `<file>/src/lemme.h`/
32 #include "modele.h"cxx . . $ `<file>/src/modele.h`/
33
34 #include <QDebug>
35
36 /**
37 * \fn Irreg::Irreg (QString l, QObject *parent)
38 * \brief Constructeur de la classe Irreg. l est la
39 * clé du lemme dans la map des lemmes du
40 * lemmatiseur (classe Lemmat) représenté par
41 * le paramètre *parent.
42 */
43 Irregcxx . . $ Irreg#::Irregcxx . . $ Irreg#Irreg(91abe44dbc29dfb6).(QStringcxx . . $ QString# l, QObjectcxx . . $ QObject#* parent)
44 {
45 if (parent != 0) _lemmatcxx . . $ Irreg#_lemmat. = qobject_castcxx . . $ qobject_cast(c988cfc0ca08742e).<Lemmatcxx . . $ Lemmat#*>(parent);
46 QStringListcxx . . $ QStringList# ecl = l.splitcxx . . $ QString#split(92030b8bf74e4227).(':'cxx . . $ QChar#QChar(f349c77f591a7878).);
47 _grqcxx . . $ Irreg#_grq. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). ecl.atcxx . . $ QList#at(e2681f9bb6b2f357).(0);
48 if (_grqcxx . . $ Irreg#_grq..endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).("*"cxx . . $ QString#QString(85c52e162fed56f9).))
49 {
50 _grqcxx . . $ Irreg#_grq..chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1);
51 _exclusifcxx . . $ Irreg#_exclusif. = true;
52 }
53 else
54 _exclusifcxx . . $ Irreg#_exclusif. = false;
55 _grcxx . . $ Irreg#_gr. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). Chcxx . . $ Ch/::atonecxx . . $ Ch/atone(afa4754008a97e3f).(_grqcxx . . $ QString#QString(132dd6869045752b).);
56 _lemmecxx . . $ Irreg#_lemme. = _lemmatcxx . . $ Irreg#_lemmat.->lemmecxx . . $ Lemmat#lemme(232dd0184078fd95).(eclcxx . . $ QString#QString(132dd6869045752b)..atcxx . . $ QList#at(e2681f9bb6b2f357).(1));
57 _morphoscxx . . $ Irreg#_morphos. =cxx . . $ QList#`operator=`(fb6690361a2f6b44). Modelecxx . . $ Modele#::listeIcxx . . $ Modele#listeI(32df5b9ad51add44).(eclcxx . . $ QString#QString(132dd6869045752b)..atcxx . . $ QList#at(e2681f9bb6b2f357).(2));
58 }
59
60 /**
61 * \fn bool Irreg::exclusif ()
62 * \brief True si le lemmes est exclusif, c'est à dire
63 * si la forme régulière calculée par le modèle
64 * est inusitée, et remplace par la forme irrégulière.
65 */
66 bool Irregcxx . . $ Irreg#::exclusifcxx . . $ Irreg#exclusif(c9857a73d68e59ba).() { return _exclusifcxx . . $ Irreg#_exclusif.; }
67 /**
68 * \fn QString Irreg::gr ()
69 * \brief Graphie ramiste sans diacritique.
70 */
71 QStringcxx . . $ QString# Irregcxx . . $ Irreg#::grcxx . . $ Irreg#gr(4365c3963150523e).() { return _grcxx . . $ QString#QString(132dd6869045752b).; }
72 /**
73 * \fn QString Irreg::grq ()
74 * \brief Graphie ramiset avec diacritiques.
75 */
76 QStringcxx . . $ QString# Irregcxx . . $ Irreg#::grqcxx . . $ Irreg#grq(4365c3963150523e).() { return _grqcxx . . $ QString#QString(132dd6869045752b).; }
77 /**
78 * \fn Lemme* Irreg::lemme ()
79 * \brief Le lemme de l'irrégulier.
80 */
81 Lemmecxx . . $ Lemme#* Irregcxx . . $ Irreg#::lemmecxx . . $ Irreg#lemme(f4a9bc1d1653523f).() { return _lemmecxx . . $ Irreg#_lemme.; }
82 /**
83 * \fn QList<int> Irreg::morphos ()
84 * \brief liste des numéros de morphos
85 * que peut prendre l'irrégulier, en
86 * tenant compte des quantités.
87 */
88 QListcxx . . $ QList#<int> Irregcxx . . $ Irreg#::morphoscxx . . $ Irreg#morphos(9be6d6d0db5cf9a9).() { return _morphoscxx . . $ QList#QList(3d2301cfd89f773a).; }