string_formatter

class string_formatter extends formatter#(string)

singleton Provides a strategy to convert an object of string data type into a string.

Summary
string_formattersingleton Provides a strategy to convert an object of string data type into a string.
Functions
newprotected Creates a new formatter.
get_instancestatic Returns the singleton instance of this formatter.
to_stringvirtual Returns a string representation of the given object of string type.

Functions

new

protected function new()

protected Creates a new formatter.

get_instance

static function string_formatter get_instance()

static Returns the singleton instance of this formatter.

Returns

The singleton instance.

to_string

virtual function string to_string(o)

virtual Returns a string representation of the given object of string type.

Argument

oAn object to convert to a string.

Returns

The o without change.

class string_formatter extends formatter#(string)
singleton Provides a strategy to convert an object of string data type into a string.
protected function new()
protected Creates a new formatter.
static function string_formatter get_instance()
static Returns the singleton instance of this formatter.
virtual function string to_string(o)
virtual Returns a string representation of the given object of string type.