aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-08-08 10:08:56 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-08-08 10:08:56 +0200
commit9453816627ad81813580fdf43be0eafed7622c14 (patch)
treedd74a7623040febed96b04171ec0d25b0c0b78b0
parent8e17aa3c65ae08dd02aacb72eef9d5a8c60bdacb (diff)
downloadUstring-9453816627ad81813580fdf43be0eafed7622c14.zip
Ustring-9453816627ad81813580fdf43be0eafed7622c14.tar.gz
Ustring-9453816627ad81813580fdf43be0eafed7622c14.tar.bz2
s/substr/reduce/!
-rw-r--r--String.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/String.php b/String.php
index d57afcc..468b979 100644
--- a/String.php
+++ b/String.php
@@ -540,14 +540,14 @@ class String implements \ArrayAccess, \Countable, \IteratorAggregate {
}
/**
- * Get a part of a string.
+ * Reduce the strings.
*
* @access public
* @param int $start Position of first character.
* @param int $length Maximum number of characters.
* @return \Hoa\String
*/
- public function substr ( $start, $length = null ) {
+ public function reduce ( $start, $length = null ) {
$this->_string = mb_substr($this->_string, $start, $length);