webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Types | Public Member Functions | List of all members
WebCore::TextStream Class Reference

#include <TextStream.h>

Classes

struct  FormatNumberRespectingIntegers
 
class  GroupScope
 

Public Types

enum  Formatting {
  SVGStyleRect = 1 << 0, NumberRespectingIntegers = 1 << 1, LayoutUnitsAsIntegers = 1 << 2, SVGStyleRect = 1 << 0,
  NumberRespectingIntegers = 1 << 1, LayoutUnitsAsIntegers = 1 << 2
}
 
enum  LineMode { LineMode::SingleLine, LineMode::MultipleLine, LineMode::SingleLine, LineMode::MultipleLine }
 
enum  Formatting {
  SVGStyleRect = 1 << 0, NumberRespectingIntegers = 1 << 1, LayoutUnitsAsIntegers = 1 << 2, SVGStyleRect = 1 << 0,
  NumberRespectingIntegers = 1 << 1, LayoutUnitsAsIntegers = 1 << 2
}
 
enum  LineMode { LineMode::SingleLine, LineMode::MultipleLine, LineMode::SingleLine, LineMode::MultipleLine }
 
using FormattingFlags = unsigned
 
using FormattingFlags = unsigned
 

Public Member Functions

 TextStream (LineMode lineMode=LineMode::MultipleLine, FormattingFlags formattingFlags=0)
 
WEBCORE_EXPORT TextStreamoperator<< (bool)
 
WEBCORE_EXPORT TextStreamoperator<< (int)
 
WEBCORE_EXPORT TextStreamoperator<< (unsigned)
 
WEBCORE_EXPORT TextStreamoperator<< (long)
 
WEBCORE_EXPORT TextStreamoperator<< (unsigned long)
 
WEBCORE_EXPORT TextStreamoperator<< (long long)
 
WEBCORE_EXPORT TextStreamoperator<< (LayoutUnit)
 
WEBCORE_EXPORT TextStreamoperator<< (unsigned long long)
 
WEBCORE_EXPORT TextStreamoperator<< (float)
 
WEBCORE_EXPORT TextStreamoperator<< (double)
 
WEBCORE_EXPORT TextStreamoperator<< (const char *)
 
WEBCORE_EXPORT TextStreamoperator<< (const void *)
 
WEBCORE_EXPORT TextStreamoperator<< (const String &)
 
WEBCORE_EXPORT TextStreamoperator<< (const FormatNumberRespectingIntegers &)
 
FormattingFlags formattingFlags () const
 
void setFormattingFlags (FormattingFlags flags)
 
bool hasFormattingFlag (Formatting flag) const
 
template<typename T >
void dumpProperty (const String &name, const T &value)
 
WEBCORE_EXPORT String release ()
 
WEBCORE_EXPORT void startGroup ()
 
WEBCORE_EXPORT void endGroup ()
 
WEBCORE_EXPORT void nextLine ()
 
void increaseIndent (int amount=1)
 
void decreaseIndent (int amount=1)
 
WEBCORE_EXPORT void writeIndent ()
 
 TextStream (LineMode lineMode=LineMode::MultipleLine, FormattingFlags formattingFlags=0)
 
WEBCORE_EXPORT TextStreamoperator<< (bool)
 
WEBCORE_EXPORT TextStreamoperator<< (int)
 
WEBCORE_EXPORT TextStreamoperator<< (unsigned)
 
WEBCORE_EXPORT TextStreamoperator<< (long)
 
WEBCORE_EXPORT TextStreamoperator<< (unsigned long)
 
WEBCORE_EXPORT TextStreamoperator<< (long long)
 
WEBCORE_EXPORT TextStreamoperator<< (LayoutUnit)
 
WEBCORE_EXPORT TextStreamoperator<< (unsigned long long)
 
WEBCORE_EXPORT TextStreamoperator<< (float)
 
WEBCORE_EXPORT TextStreamoperator<< (double)
 
WEBCORE_EXPORT TextStreamoperator<< (const char *)
 
WEBCORE_EXPORT TextStreamoperator<< (const void *)
 
WEBCORE_EXPORT TextStreamoperator<< (const String &)
 
WEBCORE_EXPORT TextStreamoperator<< (const FormatNumberRespectingIntegers &)
 
FormattingFlags formattingFlags () const
 
void setFormattingFlags (FormattingFlags flags)
 
bool hasFormattingFlag (Formatting flag) const
 
template<typename T >
void dumpProperty (const String &name, const T &value)
 
WEBCORE_EXPORT String release ()
 
WEBCORE_EXPORT void startGroup ()
 
WEBCORE_EXPORT void endGroup ()
 
WEBCORE_EXPORT void nextLine ()
 
void increaseIndent (int amount=1)
 
void decreaseIndent (int amount=1)
 
WEBCORE_EXPORT void writeIndent ()
 

Member Typedef Documentation

◆ FormattingFlags [1/2]

◆ FormattingFlags [2/2]

Member Enumeration Documentation

◆ Formatting [1/2]

Enumerator
SVGStyleRect 
NumberRespectingIntegers 
LayoutUnitsAsIntegers 
SVGStyleRect 
NumberRespectingIntegers 
LayoutUnitsAsIntegers 

◆ Formatting [2/2]

Enumerator
SVGStyleRect 
NumberRespectingIntegers 
LayoutUnitsAsIntegers 
SVGStyleRect 
NumberRespectingIntegers 
LayoutUnitsAsIntegers 

◆ LineMode [1/2]

Enumerator
SingleLine 
MultipleLine 
SingleLine 
MultipleLine 

◆ LineMode [2/2]

Enumerator
SingleLine 
MultipleLine 
SingleLine 
MultipleLine 

Constructor & Destructor Documentation

◆ TextStream() [1/2]

WebCore::TextStream::TextStream ( LineMode  lineMode = LineMode::MultipleLine,
FormattingFlags  formattingFlags = 0 
)
inline

◆ TextStream() [2/2]

WebCore::TextStream::TextStream ( LineMode  lineMode = LineMode::MultipleLine,
FormattingFlags  formattingFlags = 0 
)
inline

Member Function Documentation

◆ decreaseIndent() [1/2]

void WebCore::TextStream::decreaseIndent ( int  amount = 1)
inline

◆ decreaseIndent() [2/2]

void WebCore::TextStream::decreaseIndent ( int  amount = 1)
inline

◆ dumpProperty() [1/2]

template<typename T >
void WebCore::TextStream::dumpProperty ( const String name,
const T value 
)
inline

◆ dumpProperty() [2/2]

template<typename T >
void WebCore::TextStream::dumpProperty ( const String name,
const T value 
)
inline

◆ endGroup() [1/2]

void WebCore::TextStream::endGroup ( )

◆ endGroup() [2/2]

WEBCORE_EXPORT void WebCore::TextStream::endGroup ( )

◆ formattingFlags() [1/2]

FormattingFlags WebCore::TextStream::formattingFlags ( ) const
inline

◆ formattingFlags() [2/2]

FormattingFlags WebCore::TextStream::formattingFlags ( ) const
inline

◆ hasFormattingFlag() [1/2]

bool WebCore::TextStream::hasFormattingFlag ( Formatting  flag) const
inline

◆ hasFormattingFlag() [2/2]

bool WebCore::TextStream::hasFormattingFlag ( Formatting  flag) const
inline

◆ increaseIndent() [1/2]

void WebCore::TextStream::increaseIndent ( int  amount = 1)
inline

◆ increaseIndent() [2/2]

void WebCore::TextStream::increaseIndent ( int  amount = 1)
inline

◆ nextLine() [1/2]

WEBCORE_EXPORT void WebCore::TextStream::nextLine ( )

◆ nextLine() [2/2]

void WebCore::TextStream::nextLine ( )

◆ operator<<() [1/28]

TextStream & WebCore::TextStream::operator<< ( bool  b)

◆ operator<<() [2/28]

WEBCORE_EXPORT TextStream& WebCore::TextStream::operator<< ( bool  )

◆ operator<<() [3/28]

TextStream & WebCore::TextStream::operator<< ( int  i)

◆ operator<<() [4/28]

WEBCORE_EXPORT TextStream& WebCore::TextStream::operator<< ( int  )

◆ operator<<() [5/28]

TextStream & WebCore::TextStream::operator<< ( unsigned  i)

◆ operator<<() [6/28]

WEBCORE_EXPORT TextStream& WebCore::TextStream::operator<< ( unsigned  )

◆ operator<<() [7/28]

TextStream & WebCore::TextStream::operator<< ( long  i)

◆ operator<<() [8/28]

WEBCORE_EXPORT TextStream& WebCore::TextStream::operator<< ( long  )

◆ operator<<() [9/28]

TextStream & WebCore::TextStream::operator<< ( unsigned long  i)

◆ operator<<() [10/28]

WEBCORE_EXPORT TextStream& WebCore::TextStream::operator<< ( unsigned  long)

◆ operator<<() [11/28]

TextStream & WebCore::TextStream::operator<< ( long long  i)

◆ operator<<() [12/28]

WEBCORE_EXPORT TextStream& WebCore::TextStream::operator<< ( long  long)

◆ operator<<() [13/28]

WEBCORE_EXPORT TextStream& WebCore::TextStream::operator<< ( LayoutUnit  )

◆ operator<<() [14/28]

TextStream & WebCore::TextStream::operator<< ( LayoutUnit  v)

◆ operator<<() [15/28]

WEBCORE_EXPORT TextStream& WebCore::TextStream::operator<< ( unsigned long  long)

◆ operator<<() [16/28]

TextStream & WebCore::TextStream::operator<< ( unsigned long long  i)

◆ operator<<() [17/28]

TextStream & WebCore::TextStream::operator<< ( float  f)

◆ operator<<() [18/28]

WEBCORE_EXPORT TextStream& WebCore::TextStream::operator<< ( float  )

◆ operator<<() [19/28]

WEBCORE_EXPORT TextStream& WebCore::TextStream::operator<< ( double  )

◆ operator<<() [20/28]

TextStream & WebCore::TextStream::operator<< ( double  d)

◆ operator<<() [21/28]

WEBCORE_EXPORT TextStream& WebCore::TextStream::operator<< ( const char *  )

◆ operator<<() [22/28]

TextStream & WebCore::TextStream::operator<< ( const char *  string)

◆ operator<<() [23/28]

TextStream & WebCore::TextStream::operator<< ( const void p)

◆ operator<<() [24/28]

WEBCORE_EXPORT TextStream& WebCore::TextStream::operator<< ( const void )

◆ operator<<() [25/28]

WEBCORE_EXPORT TextStream& WebCore::TextStream::operator<< ( const String )

◆ operator<<() [26/28]

TextStream & WebCore::TextStream::operator<< ( const String string)

◆ operator<<() [27/28]

WEBCORE_EXPORT TextStream& WebCore::TextStream::operator<< ( const FormatNumberRespectingIntegers )

◆ operator<<() [28/28]

TextStream & WebCore::TextStream::operator<< ( const FormatNumberRespectingIntegers numberToFormat)

◆ release() [1/2]

String WebCore::TextStream::release ( )

◆ release() [2/2]

WEBCORE_EXPORT String WebCore::TextStream::release ( )

◆ setFormattingFlags() [1/2]

void WebCore::TextStream::setFormattingFlags ( FormattingFlags  flags)
inline

◆ setFormattingFlags() [2/2]

void WebCore::TextStream::setFormattingFlags ( FormattingFlags  flags)
inline

◆ startGroup() [1/2]

WEBCORE_EXPORT void WebCore::TextStream::startGroup ( )

◆ startGroup() [2/2]

void WebCore::TextStream::startGroup ( )

◆ writeIndent() [1/2]

WEBCORE_EXPORT void WebCore::TextStream::writeIndent ( )

◆ writeIndent() [2/2]

void WebCore::TextStream::writeIndent ( )

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