45 static const char*
getDefault() noexcept {
return "\r\n"; }
50 operator String()
const {
return getDefault(); }
55 operator StringRef() const noexcept {
return getDefault(); }
76inline String& operator+= (String& s1,
const NewLine&) {
return s1 +=
NewLine::getDefault(); }
80inline 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.
NewLine newLine
A predefined object representing a new-line, which can be written to a string or stream.
OutputStream &JUCE_CALLTYPE operator<<(OutputStream &stream, const BigInteger &value)
Writes a BigInteger to an OutputStream as a UTF8 decimal string.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...