Swift_Encoder_QpEncoder::initSafeMap PHP Method

initSafeMap() protected method

protected initSafeMap ( )
    protected function initSafeMap()
    {
        foreach (array_merge(array(0x9, 0x20), range(0x21, 0x3c), range(0x3e, 0x7e)) as $byte) {
            $this->_safeMap[$byte] = chr($byte);
        }
    }

Usage Example

 protected function initSafeMap()
 {
     parent::initSafeMap();
     if ($this->_dotEscape) {
         /* Encode . as =2e for buggy remote servers */
         unset($this->_safeMap[0x2e]);
     }
 }