LMMS
Loading...
Searching...
No Matches
juce::NewLine Class Reference

#include <juce_NewLine.h>

Public Member Functions

 operator String () const
 operator StringRef () const noexcept

Static Public Member Functions

static const char * getDefault () noexcept

Detailed Description

This class is used for represent a new-line character sequence.

To write a new-line to a stream, you can use the predefined 'newLine' variable, e.g.

myOutputStream << "Hello World" << newLine << newLine;
NewLine newLine
Definition juce_String.cpp:28

The exact character sequence that will be used for the new-line can be set and retrieved with OutputStream::setNewLineString() and OutputStream::getNewLineString().

@tags{Core}

Member Function Documentation

◆ getDefault()

const char * juce::NewLine::getDefault ( )
inlinestaticnoexcept

Returns the default new-line sequence that the library uses.

See also
OutputStream::setNewLineString()

◆ operator String()

juce::NewLine::operator String ( ) const
inline

Returns the default new-line sequence that the library uses.

See also
getDefault()

◆ operator StringRef()

juce::NewLine::operator StringRef ( ) const
inlinenoexcept

Returns the default new-line sequence that the library uses.

See also
OutputStream::setNewLineString()

The documentation for this class was generated from the following file: