SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class FixedBitNotation

The FixedBitNotation class is for binary to text conversion. It
can handle many encoding schemes, formally defined or not, that
use a fixed number of bits to encode each character.

See also:
https://github.com/ademarre/binary-to-text-php/commit/d44968b55fada4c1fac0902f7595b23d2814b2f2

Variables

NameVisibilityDescription
$_bitsPerCharacter 
$_charmap 
$_chars 
$_padCharacter 
$_padFinalGroup 
$_radix 
$_rightPadFinalBits 

Functions

NameVisibilityDescription
__constructpublicConstructor
decodepublicDecode a string
encodepublicEncode a string

public __construct

void $FixedBitNotation->__construct ( integer $bitsPerCharacter [, string $chars [, boolean $rightPadFinalBits [, boolean $padFinalGroup [, string $padCharacter ]]]] );

Constructor

public decode

NULL|string $FixedBitNotation->decode ( string $encodedString [, boolean $caseSensitive [, boolean $strict ]] );

Decode a string

public encode

string $FixedBitNotation->encode ( string $rawString );

Encode a string