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

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
A predefined object representing a new-line, which can be written to a string or stream.

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

Public Member Functions

 operator String () const
 Returns the default new-line sequence that the library uses.
 operator StringRef () const noexcept
 Returns the default new-line sequence that the library uses.

Static Public Member Functions

static const char * getDefault () noexcept
 Returns the default new-line sequence that the library uses.

Member Functions

◆ getDefault()

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

◆ operator String()

juce::NewLine::operator String ( ) const

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

See also
getDefault()

References getDefault().

◆ operator StringRef()

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

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

See also
OutputStream::setNewLineString()

References getDefault().

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram