Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos-webui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/zendframework/zend-filter/src/AbstractUnicode.php')
-rw-r--r--vendor/zendframework/zend-filter/src/AbstractUnicode.php59
1 files changed, 0 insertions, 59 deletions
diff --git a/vendor/zendframework/zend-filter/src/AbstractUnicode.php b/vendor/zendframework/zend-filter/src/AbstractUnicode.php
deleted file mode 100644
index b67c8fd..0000000
--- a/vendor/zendframework/zend-filter/src/AbstractUnicode.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<?php
-/**
- * Zend Framework (http://framework.zend.com/)
- *
- * @link http://github.com/zendframework/zf2 for the canonical source repository
- * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-namespace Zend\Filter;
-
-abstract class AbstractUnicode extends AbstractFilter
-{
- /**
- * Set the input encoding for the given string
- *
- * @param string|null $encoding
- * @return self
- * @throws Exception\InvalidArgumentException
- * @throws Exception\ExtensionNotLoadedException
- */
- public function setEncoding($encoding = null)
- {
- if ($encoding !== null) {
- if (!function_exists('mb_strtolower')) {
- throw new Exception\ExtensionNotLoadedException(sprintf(
- '%s requires mbstring extension to be loaded',
- get_class($this)
- ));
- }
-
- $encoding = strtolower($encoding);
- $mbEncodings = array_map('strtolower', mb_list_encodings());
- if (!in_array($encoding, $mbEncodings)) {
- throw new Exception\InvalidArgumentException(sprintf(
- "Encoding '%s' is not supported by mbstring extension",
- $encoding
- ));
- }
- }
-
- $this->options['encoding'] = $encoding;
- return $this;
- }
-
- /**
- * Returns the set encoding
- *
- * @return string
- */
- public function getEncoding()
- {
- if ($this->options['encoding'] === null && function_exists('mb_internal_encoding')) {
- $this->options['encoding'] = mb_internal_encoding();
- }
-
- return $this->options['encoding'];
- }
-}