\StringBuilder

Builds a standard string from the given word

Summary

Methods
Properties
Constants
__construct()
__toString()
append()
AppendFormat()
count()
EnsureCapacity()
Equals()
GetHashCode()
getType()
Insert()
offsetGet()
offsetSet()
offsetUnset()
Remove()
Replace()
ReplaceChunk()
SubStr()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$capacity
$length
$replacement
$string
$temp_self
$temp_string
N/A

Properties

$capacity

$capacity : 

Type

$length

$length : 

Type

$replacement

$replacement : 

Type

$string

$string : 

Type

$temp_self

$temp_self : 

Type

$temp_string

$temp_string : \ArrayIterator

Type

\ArrayIterator

Methods

__construct()

__construct(string  $string = '', integer  $capacity) 

Class constructor

Parameters

string $string
integer $capacity

__toString()

__toString() 

append()

append(  $string) 

Parameters

$string

AppendFormat()

AppendFormat() 

count()

count() 

EnsureCapacity()

EnsureCapacity() 

Equals()

Equals(\StringBuilder  $instance) 

Parameters

\StringBuilder $instance

GetHashCode()

GetHashCode() 

getType()

getType() 

Insert()

Insert(  $index,   $value,   $start,   $length = null) 

Parameters

$index
$value
$start
$length

offsetGet()

offsetGet(  $offset) 

Parameters

$offset

offsetSet()

offsetSet(  $offset,   $value) 

Parameters

$offset
$value

offsetUnset()

offsetUnset(  $offset) 

Parameters

$offset

Remove()

Remove(  $index,   $length = 1) 

Parameters

$index
$length

Replace()

Replace(  $search,   $replace,   $start,   $length = null) 

Parameters

$search
$replace
$start
$length

ReplaceChunk()

ReplaceChunk(integer  $index, string  $value, integer  $start, integer  $length = null) : void

Replace portion of the string

Parameters

integer $index
string $value
integer $start
integer $length

SubStr()

SubStr(  $start,   $length) 

Parameters

$start
$length