XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
NgCharacterStream.php File Reference

Go to the source code of this file.

Namespaces

namespace  Swift
 

Functions

 __construct (Swift_CharacterReaderFactory $factory, $charset)
 
 flushContents ()
 
 importByteStream (Swift_OutputByteStream $os)
 
 importString ($string)
 
 read ($length)
 
 readBytes ($length)
 
 setCharacterReaderFactory (Swift_CharacterReaderFactory $factory)
 
 setCharacterSet ($charset)
 
 setPointer ($charOffset)
 
 write ($chars)
 

Variables

 $_charCount = 0
 
 $_charReaderFactory
 
 $_charset
 
 $_currentPos = 0
 
 $_datas = ""
 
 $_datasSize = 0
 
 $_map
 
 $_mapType = 0
 
Class
Swift_CharacterStream_NgCharacterStream
implements 
Swift_CharacterStream
 

Function Documentation

flushContents ( )
See Also
Swift_CharacterStream::flushContents()

Definition at line 139 of file NgCharacterStream.php.

Referenced by importByteStream(), and importString().

Here is the caller graph for this function:

importByteStream ( Swift_OutputByteStream  $os)
See Also
Swift_CharacterStream::importByteStream()
Parameters
Swift_OutputByteStream$os

Definition at line 153 of file NgCharacterStream.php.

References flushContents(), Swift_OutputByteStream\read(), Swift_OutputByteStream\setReadPointer(), and write().

Here is the call graph for this function:

importString (   $string)
See Also
Swift_CharacterStream::importString()
Parameters
string$string

Definition at line 167 of file NgCharacterStream.php.

References flushContents(), and write().

Here is the call graph for this function:

read (   $length)
See Also
Swift_CharacterStream::read()
Parameters
int$length
Returns
string

Definition at line 179 of file NgCharacterStream.php.

References $_charCount, $_currentPos, $_map, $ret, $start, Swift_CharacterReader\MAP_TYPE_FIXED_LEN, Swift_CharacterReader\MAP_TYPE_INVALID, and Swift_CharacterReader\MAP_TYPE_POSITIONS.

Referenced by readBytes().

Here is the caller graph for this function:

readBytes (   $length)
See Also
Swift_CharacterStream::readBytes()
Parameters
int$length
Returns
int[]

Definition at line 251 of file NgCharacterStream.php.

References $ret, and read().

Here is the call graph for this function:

setCharacterReaderFactory ( Swift_CharacterReaderFactory  $factory)

Set the CharacterReaderFactory for multi charset support.

Parameters
Swift_CharacterReaderFactory$factory

Definition at line 129 of file NgCharacterStream.php.

Referenced by __construct().

Here is the caller graph for this function:

setCharacterSet (   $charset)

Set the character set used in this CharacterStream.

Parameters
string$charset

Definition at line 118 of file NgCharacterStream.php.

Referenced by __construct().

Here is the caller graph for this function:

setPointer (   $charOffset)
See Also
Swift_CharacterStream::setPointer()
Parameters
int$charOffset

Definition at line 267 of file NgCharacterStream.php.

References $_charCount.

write (   $chars)
See Also
Swift_CharacterStream::write()
Parameters
string$chars

Definition at line 280 of file NgCharacterStream.php.

Referenced by importByteStream(), and importString().

Here is the caller graph for this function:

Variable Documentation

$_charCount = 0

Definition at line 90 of file NgCharacterStream.php.

Referenced by read(), and setPointer().

$_charReaderFactory

Definition at line 48 of file NgCharacterStream.php.

$_charset

Definition at line 55 of file NgCharacterStream.php.

$_currentPos = 0

Definition at line 97 of file NgCharacterStream.php.

Referenced by read().

$_datas = ""

Definition at line 62 of file NgCharacterStream.php.

$_datasSize = 0

Definition at line 69 of file NgCharacterStream.php.

$_map

Definition at line 76 of file NgCharacterStream.php.

Referenced by read().

$_mapType = 0

Definition at line 83 of file NgCharacterStream.php.

Swift_Encoder_Rfc2231Encoder::Swift_CharacterStream
Initial value:
{
private $_charReader

The CharacterStream used for reading characters (as opposed to bytes).

protected

A character stream to use when reading a string as characters instead of bytes.

private

Definition at line 34 of file NgCharacterStream.php.