class Poco::InputLineEndingConverter

Overview

InputLineEndingConverter performs line ending conversion on text input streams. Moreā€¦

#include <LineEndingConverter.h>

class InputLineEndingConverter:
    public Poco::LineEndingConverterIOS,
    public istream
{
public:
    // construction

    InputLineEndingConverter(std::istream& istr);

    InputLineEndingConverter(
        std::istream& istr,
        const std::string& newLineCharacters
        );
};

Inherited Members

public:
    // methods

    void
    setNewLine(const std::string& newLineCharacters);

    const std::string&
    getNewLine() const;

    LineEndingConverterStreamBuf*
    rdbuf();

protected:
    // fields

    LineEndingConverterStreamBuf _buf;

Detailed Documentation

InputLineEndingConverter performs line ending conversion on text input streams.

The converter can convert from and to the Unix (LF), Mac (CR) and DOS/Windows/Network (CF-LF) endings.

Any newline sequence in the source will be replaced by the target newline sequence.

Construction

InputLineEndingConverter(std::istream& istr)

Creates the LineEndingConverterInputStream and connects it to the given input stream.

InputLineEndingConverter(
    std::istream& istr,
    const std::string& newLineCharacters
    )

Creates the LineEndingConverterInputStream and connects it to the given input stream.