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:----NYDTDaewzETNCV8X0BeHpXhsVICMyqqurFvdRyql/N3zwRgiF0bsx/Qm97tD+chC4xlpWrsRDSP5Yk4Y4M6kIzkYb5O3CAf5oISudTJmzlvgkNFA24Cnni6WrYA6MIj3FfHoYIaBDg1pxqNZHFkmrAg6r8ny1/lcBVAHJijdBobQASI8VQEBcA5ddbMSakUEUKH7n9b0lGg9zwzWwoUVRI7xDCl4UJ7Yo4/4nWnvpIhAh6Ae0JsGTCTQBdE76C5CosPdCmeb4QxqxVX+EEhwqKH3M2zY1bKoe6xbw4mb2Ncg9KnwhVqPu50sYiLd0J4SMTOSANBzzo6zWgOGML37MgQl3RUBUjPCCGTLQ8FE3loWH9x+Yp/YWMISPRY5gNIW39k/X9Q85Nu8c3QRY37CqIIjARUeSQSds6EJvSW99g5sutIT7Kq3utReioVLh5FG15arIGOUJ3OahAi9wjJz6qXNz1ty5IPnUIPYrHxL96+rQGJUCv5zQE90LYDP3WLKpNt2Md7XA3EhOXuzmO6/dzsd0d0gwaU8aDxKqm3hx+Uu65XCfsmAyobSfh7WpFFwsfwPAiTKmQcuF8kPaC+woHd73uL0g6LE2R3i7FL+GFltMNW8jhRpA+SjFw7iMtgrEDyIYrPRdTnxF52rxLC3fDA7WK3utgsWqgcn3Ol7cqo=----ATTACHMENT:----NTExNTgxNDU2NzcxMjg2OSAyNzQwODI0NDY1NTI3ODY5IDI2NjcxODc0MTU2OTc5Njk=