Skip to content

Commit

Permalink
removed redundant ';' characters
Browse files Browse the repository at this point in the history
  • Loading branch information
kosloot committed Dec 16, 2024
1 parent 7748e3d commit 8bf731a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
18 changes: 9 additions & 9 deletions include/libfolia/folia_document.h
Original file line number Diff line number Diff line change
Expand Up @@ -505,15 +505,15 @@ namespace folia {
};

using DocMode = Document::RUN_FLAGS;
DEFINE_ENUM_FLAG_OPERATORS(DocMode);
DEFINE_ENUM_FLAG_OPERATORS(DocMode)

inline bool Document::permissive() const { return mode % DocMode::PERMISSIVE; };
inline bool Document::checktext() const { return mode % DocMode::CHECKTEXT; };
inline bool Document::fixtext() const { return mode % DocMode::FIXTEXT; };
inline bool Document::strip() const { return mode % DocMode::STRIP; };
inline bool Document::canonical() const { return mode % DocMode::CANONICAL; };
inline bool Document::autodeclare() const { return mode % DocMode::AUTODECLARE; };
inline bool Document::has_explicit() const { return mode % DocMode::EXPLICIT; };
inline bool Document::permissive() const { return mode % DocMode::PERMISSIVE; }
inline bool Document::checktext() const { return mode % DocMode::CHECKTEXT; }
inline bool Document::fixtext() const { return mode % DocMode::FIXTEXT; }
inline bool Document::strip() const { return mode % DocMode::STRIP; }
inline bool Document::canonical() const { return mode % DocMode::CANONICAL; }
inline bool Document::autodeclare() const { return mode % DocMode::AUTODECLARE; }
inline bool Document::has_explicit() const { return mode % DocMode::EXPLICIT; }

template <> inline
Text *Document::create_root( const KWargs& args ){
Expand Down Expand Up @@ -550,7 +550,7 @@ namespace folia {
std::string folia_version();
using DocDbg = Document::DEBUG_FLAGS;
std::string toString( DocDbg mode );
DEFINE_ENUM_FLAG_OPERATORS(DocDbg);
DEFINE_ENUM_FLAG_OPERATORS(DocDbg)
std::ostream& operator<<( std::ostream&, const DocDbg& );
extern TiCC::LogStream *_dbg_file; //!< the debugging stream
} // namespace folia
Expand Down
2 changes: 1 addition & 1 deletion include/libfolia/folia_textpolicy.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace folia {
*/
};

DEFINE_ENUM_FLAG_OPERATORS(TEXT_FLAGS);
DEFINE_ENUM_FLAG_OPERATORS(TEXT_FLAGS)

/// class to steer text searching in corrections.
enum class CORRECTION_HANDLING {
Expand Down
6 changes: 3 additions & 3 deletions include/libfolia/folia_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ ENDTIME=128, ///<endtime: A timestamp in ``HH:MM:SS.MMM`` format, indicating th
SRC=256, ///<src: Points to a file or full URL of a sound or video file. This attribute is inheritable.
SPEAKER=512, ///<speaker: A string identifying the speaker. This attribute is inheritable. Multiple speakers are not allowed, simply do not specify a speaker on a certain level if you are unable to link the speech to a specific (single) speaker.
TEXTCLASS=1024, ///<textclass: Refers to the text class this annotation is based on. This is an advanced attribute, if not specified, it defaults to ``current``. See :ref:`textclass_attribute`.
METADATA=2048,
METADATA=2048,
IDREF=4096, ///<id: A reference to the ID of another element. This is a reference and not an assignment, unlike xml:id, so do not confuse the two! It is only supported on certain elements that are referential in nature.
SPACE=8192, ///<space: This attribute indicates whether spacing should be inserted after this element (it's default value is always ``yes``, so it does not need to be specified in that case), but if tokens or other structural elements are glued together then the value should be set to ``no``. This allows for reconstruction of the detokenised original text.
SPACE=8192, ///<space: This attribute indicates whether spacing should be inserted after this element (it's default value is always ``yes``, so it does not need to be specified in that case), but if tokens or other structural elements are glued together then the value should be set to ``no``. This allows for reconstruction of the detokenised original text.
TAG=16384, ///<tag: Contains a space separated list of processing tags associated with the element. A processing tag carries arbitrary user-defined information that may aid in processing a document. It may carry cues on how a specific tool should treat a specific element. The tag vocabulary is specific to the tool that processes the document. Tags carry no instrinsic meaning for the data representation and should not be used except to inform/aid processors in their task. Processors are encouraged to clean up the tags they use. Ideally, published FoLiA documents at the end of a processing pipeline carry no further tags. For encoding actual data, use ``class`` and optionally features instead.
ALL=32768 };

Expand All @@ -78,7 +78,7 @@ ALL=32768 };
: ( Attrib::NO_ATT == a ? Attrib::ID : Attrib(int(a)<<1) );
}

DEFINE_ENUM_FLAG_OPERATORS(Attrib);
DEFINE_ENUM_FLAG_OPERATORS(Attrib)

std::string toString( const Attrib );
std::ostream& operator<<( std::ostream&, const Attrib& );
Expand Down

0 comments on commit 8bf731a

Please sign in to comment.