rfc6455/Encoding/ValidatorInterface.php
Chris Boden 2f8bb3395b [WebSocket] Encoding
Added the ability to turn UTF-8 encoding checks off to increase performance
Separated encoding checks into its own set of classes
Encoding checks now use mbstring or iconv depending on availability
2012-07-14 16:44:36 -04:00

12 lines
304 B
PHP

<?php
namespace Ratchet\WebSocket\Encoding;
interface ValidatorInterface {
/**
* Verify a string matches the encoding type
* @param string The string to check
* @param string The encoding type to check against
* @return bool
*/
function checkEncoding($str, $encoding);
}