JUCE
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Classes | Functions | Variables
juce_NewLine.h File Reference

Classes

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

Functions

JUCE_API String &JUCE_CALLTYPE operator<< (String &string1, const NewLine &)
 Writes a new-line sequence to a string.

Variables

NewLine newLine
 A predefined object representing a new-line, which can be written to a string or stream.

Function Documentation

JUCE_API String& JUCE_CALLTYPE operator<< ( String string1,
const NewLine  
)

Writes a new-line sequence to a string.

You can use the predefined object 'newLine' to invoke this, e.g.

    myString << "Hello World" << newLine << newLine;

Variable Documentation

A predefined object representing a new-line, which can be written to a string or stream.

To write a new-line to a stream, you can use the predefined 'newLine' variable like this:

    myOutputStream << "Hello World" << newLine << newLine;