Skip to content

Rose::StringUtility::isLineTerminated

Returns true if the string ends with line termination.

Synopsis

Declared in <src/Rose/StringUtility/Predicate.h>

[[visibility]]
bool
isLineTerminated(std::string const& s);

Description

Only common ASCII‐based line terminations are recognized: CR+LF, LF+CR, CR (only), or LF (only).

Return Value

True if the string ends with a line terminator.

Parameters

Name

Description

s

Input string.

Created with MrDocs