File "CtypeExtension.php"

Full Path: /home/bfxleof/www/wp-content/plugins/loco-translate/src/compat/CtypeExtension.php
File size: 391 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
/**
 * Placeholder for missing PHP "ctype" extension.
 */
abstract class Loco_compat_CtypeExtension {

    public static function digit( $value ){
        return 1 === preg_match('/^[0-9]+$/',$value);
    }

}


// @codeCoverageIgnoreStart

if( ! function_exists('ctype_digit') ){
    function ctype_digit( $value ){
        return Loco_compat_CtypeExtension::digit( $value );
    }
}