49 static const char*
getDefault() noexcept {
return "\r\n"; }
54 operator String()
const {
return getDefault(); }
59 operator StringRef() const noexcept {
return getDefault(); }
70 extern NewLine newLine;
79 inline String& operator<< (String& string1,
const NewLine&) {
return string1 +=
NewLine::getDefault(); }
80 inline String& operator+= (String& s1,
const NewLine&) {
return s1 +=
NewLine::getDefault(); }
84 inline String operator+ (
const NewLine&,
const char* s2) {
return String (
NewLine::getDefault()) + s2; }
This class is used for represent a new-line character sequence.
static const char * getDefault() noexcept
Returns the default new-line sequence that the library uses.
A simple class for holding temporary references to a string literal or String.
#define JUCE_API
This macro is added to all JUCE public class declarations.