aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2013-08-08 10:30:07 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2013-08-08 10:30:07 +0200
commit38d2f90c4698342b91937b187853e46cafca3ed6 (patch)
tree3302a70eeedf2dcdfb3601f89fc22e606a7249f9
parent99a1216c2aa4e42419c87df1683170c2c38e8753 (diff)
downloadUstring-38d2f90c4698342b91937b187853e46cafca3ed6.zip
Ustring-38d2f90c4698342b91937b187853e46cafca3ed6.tar.gz
Ustring-38d2f90c4698342b91937b187853e46cafca3ed6.tar.bz2
s/compareTo/compare/!
-rw-r--r--String.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/String.php b/String.php
index 9121594..6fb5d42 100644
--- a/String.php
+++ b/String.php
@@ -267,7 +267,7 @@ class String implements \ArrayAccess, \Countable, \IteratorAggregate {
}
/**
- * Binary safe strings comparison.
+ * Make a comparison with a string.
* Return < 0 if current string is less than $string, > 0 if greater and 0
* if equal.
*
@@ -275,7 +275,7 @@ class String implements \ArrayAccess, \Countable, \IteratorAggregate {
* @param mixed $string String.
* @return int
*/
- public function compareTo ( $string ) {
+ public function compare ( $string ) {
if(false === class_exists('Collator', false))
return min(-1, max(1, strcmp($this->_string, (string) $string)));