16#ifndef Motcle_included
17#define Motcle_included
19#include <TRUST_Vector.h>
27 Declare_instanciable_sans_constructeur(
Motcle);
35 Motcle(
const char *
const nom);
36 Motcle(
const std::string& nom);
43 int debute_par(
const char*
const n)
const override;
44 int finit_par(
const char*
const n)
const override;
45 int find(
const char*
const n)
const override;
67 int rang(
const char*
const ch)
const;
68 int contient_(
const char*
const ch)
const;
A character string (Nom) in uppercase.
int selftest()
Self-test of the Motcle class. Performs control assignments.
int finit_par(const char *const n) const override
Motcle()
Default constructor. Constructs a Nom and converts it to uppercase.
Motcle & operator+=(const char *const)
friend int operator==(const Motcle &, const Motcle &)
Compares a keyword with another keyword (case-insensitive).
Motcle & operator=(const Motcle &)
Copy assignment operator. Uses the implementation of the Nom class.
int debute_par(const char *const n) const override
int find(const char *const n) const override
friend int operator!=(const Motcle &, const Motcle &)
Compares a keyword with another keyword for inequality (case-insensitive).
int rang(const char *const ch) const
int contient_(const char *const ch) const
Motcles(int)
Constructor. Creates an array of i elements.
int search(const Motcle &t) const
Nom()
Default constructor. Creates the string "??".