public/wordpress/wp-content/plugins/backupbuddy/classes/_rollback_undo.php
/**
	 * Check if a string is ASCII.
	 *
	 * The negative regex is faster for non-ASCII strings, as it allows
	 * the search to finish as soon as it encounters a non-ASCII character.
	 *
	 * @since 4.2.0
	 * @access protected
	 *
	 * @param string $string String to check.
	 * @return bool True if ASCII, false if not.
	 */
Check if a string is ASCII.
The negative regex is faster for non-ASCII strings, as it allows
the search to finish as soon as it encounters a non-ASCII character.



@param string $string String to check.
@return bool True if ASCII, false if not.
Check if a string is ASCII . The negative regex is faster for non - ASCII strings as it allows the search to finish as soon as it encounters a non - ASCII character . @param string $string String to check . @return bool True if ASCII false if not .
protected function check_ascii( $string ) {
		if ( function_exists( 'mb_check_encoding' ) ) {
			if ( mb_check_encoding( $string, 'ASCII' ) ) {
				return true;
			}
		} elseif ( ! preg_match( '/[^\x00-\x7F]/', $string ) ) {
			return true;
		}
		return false;
	}
protected function check_ascii ( $ string ) { if ( function_exists ( 'mb_check_encoding' ) ) { if ( mb_check_encoding ( $ string , 'ASCII' ) ) { return true ; } } elseif ( ! preg_match ( '/[^\x00-\x7F]/' , $ string ) ) { return true ; } return false ; }
Check if a string is ASCII.
Check if a string is ASCII .