LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
textFormater.h
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/***************************************************************************
7 textFormater.h - description
8 -------------------
9 begin : mar d� 17 2002
10 copyright : (C) 2002 by CEA
11 email : de-chalendarg@zoe.cea.fr
12 ***************************************************************************/
13
14
15#ifndef LIMA_COMMONS_MISC_TEXTFORMATER_H
16#define LIMA_COMMONS_MISC_TEXTFORMATER_H
17
19
20#include <iostream>
21#include <stdexcept>
22
23namespace Lima {
24namespace Common {
25namespace Misc {
26
27
37{
38public:
40 virtual ~TextFormater();
41
69 int untaggingWithSpaces(std::ostream& status, std::istream& input,
70 std::ostream& output, bool wide = false,
71 const std::string& endSentenceTag = "") const;
72
73private:
74 void putTag(std::ostream& status, std::ostream& output, bool wide,
75 const std::string& endSentenceTag, std::ostringstream& tag,
76 std::ostringstream& tagValue) const;
77
78 void putWhites(std::ostream& status, std::ostream& output, bool wide,
79 const std::string& endSentenceTag, std::ostringstream& tagValue,
80 std::ostream& carLuTarget, char carLu, char fillChar,
81 uint64_t nb, uint64_t nbNewLines) const;
82
83};
84
85} // closing namespace Misc
86} // closing namespace Common
87} // closing namespace Lima
88
89
90#endif
#define LIMA_LPMISC_EXPORT
This class is dedicated to the various adaptations that have to be done on texts :
NAUTITIA.