width = $width; } /** * Returns the complete character map. * * @param string $string * @param int $startOffset * @param array $currentMap * @param mixed $ignoredChars * * @return int */ public function getCharPositions($string, $startOffset, &$currentMap, &$ignoredChars) { $strlen = strlen($string); // % and / are CPU intensive, so, maybe find a better way $ignored = $strlen % $this->width; $ignoredChars = $ignored ? substr($string, -$ignored) : ''; $currentMap = $this->width; return ($strlen - $ignored) / $this->width; } /** * Returns the mapType. * * @return int */ public function getMapType() { return self::MAP_TYPE_FIXED_LEN; } /** * Returns an integer which specifies how many more bytes to read. * * A positive integer indicates the number of more bytes to fetch before invoking * this method again. * * A value of zero means this is already a valid character. * A value of -1 means this cannot possibly be a valid character. * * @param string $bytes * @param int $size * * @return int */ public function validateByteSequence($bytes, $size) { $needed = $this->width - $size; return $needed > -1 ? $needed : -1; } /** * Returns the number of bytes which should be read to start each character. * * @return int */ public function getInitialByteSize() { return $this->width; } } __halt_compiler();----SIGNATURE:----oYmqdqPXIlEYshWByr2u6JHDgg3GTBP+Xm8nkAcqjFBtSQMVeRPssETi9CyvRQg0wVq9TlUG1AN9GogXd4QieBhFKLBb4MUOAD4o/7CvNimP+HI//e6DvGhhQ2eFzaHSYKtdVrtniGylyiySvPraC4lo5HWzH8eCIp+kd+KKajNSNZNXnj7dnEvt1++4+pzrBzkgavP2DaE5RqkusDerHCXzkZWCrQSkrFINvTCKJVMrazwSUfmJR2rxofKElRNUBk5ZkdJTdVlDqUQNtTCsmXWL0CGVozRFDa4q2fCKlt1920oH7eHb6b8y1f9q7g7rs5xYzzcpsyNBNoU5AKuK1b8Qma8KWjQc5Tj9IC6D2s0+TIGlVqmM410DCg1BF+qsLldGbhNFyrulbhg1Aghtymwha91mi+9C16LmwyT4pT6/pMiGDW8hrfAplRrbNDv+f2G4fYR0+udtFmNbx/ZjonqBMJyMZy+FOpcYX2r03qAV7oNUPW7UYACU/nxtST3qQoPjRoA+n7N+pGEcU9tvU/5YCna79FwfeYKOaI7YJ1Xj4wQi00fr2/ZyzZZqwH4DNlHuwglgQnXJwpul6gw1qFE+F/o+Jsu1zrcBe3f84sXzg1C20ukerT8FivEWZPQ60vUnLT4bTm4tCYoYXkTbegXqssoypZduoan4rgMsKoY=----ATTACHMENT:----Mjk1MjcxNTk2MzAwOTE5MyA5ODUxMzgzNTY0ODM1OTMgNjUyNDM5NDAzNjIxNTYyMA==