
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
12 lines
304 B
PHP
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);
|
|
} |