JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
juce::NewLine Class Reference

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

#include "juce_NewLine.h"

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 chargetDefault () noexcept
 Returns the default new-line sequence that the library uses.
 

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.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
Definition juce_Memory.h:88

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}

Definition at line 39 of file juce_NewLine.h.

Member Function Documentation

◆ getDefault()

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

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

See also
OutputStream::setNewLineString()

Definition at line 45 of file juce_NewLine.h.

◆ operator String()

juce::NewLine::operator String ( ) const

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

See also
getDefault()

Definition at line 50 of file juce_NewLine.h.

◆ operator StringRef()

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

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

See also
OutputStream::setNewLineString()

Definition at line 55 of file juce_NewLine.h.


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