[pLog-svn] r2607 - plog/branches/plog-1.0.2/class/data

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sun Nov 20 17:33:23 GMT 2005


Author: oscar
Date: 2005-11-20 17:33:23 +0000 (Sun, 20 Nov 2005)
New Revision: 2607

Modified:
   plog/branches/plog-1.0.2/class/data/stringutils.class.php
Log:
reverted the last change to this file, I wasn't exactly sure about it...


Modified: plog/branches/plog-1.0.2/class/data/stringutils.class.php
===================================================================
--- plog/branches/plog-1.0.2/class/data/stringutils.class.php	2005-11-20 06:45:04 UTC (rev 2606)
+++ plog/branches/plog-1.0.2/class/data/stringutils.class.php	2005-11-20 17:33:23 UTC (rev 2607)
@@ -1,31 +1,31 @@
 <?php
 
 	include_once( PLOG_CLASS_PATH."class/object/object.class.php" );
-
-    /**
-     * \ingroup Data
-     *
-     * Basic methods for formatting or doing nasty things to strings :-)
+
+    /**
+     * \ingroup Data
+     *
+     * Basic methods for formatting or doing nasty things to strings :-)
      */
-    class StringUtils extends Object 
+    class StringUtils extends Object 
     {
-
-        /** 
-         * Alias for htmlspecialchars
-         * @static
+
+        /** 
+         * Alias for htmlspecialchars
+         * @static
          */
         function htmlTranslate( $string )
         {
         	return htmlspecialchars( $string );
         }
-
-        /**
-         * cuts a string at a given character
-         *
-         * @param string
-         * @param n
-         * @return The reduced string
-         * @static
+
+        /**
+         * cuts a string at a given character
+         *
+         * @param string
+         * @param n
+         * @return The reduced string
+         * @static
          */
         function cutString( $string, $n )
         {
@@ -36,7 +36,7 @@
          * Returns an array with all the links in a string.
          *
          * @param string The string
-         * @return An array with the links in the string.
+         * @return An array with the links in the string.
          * @static
          */
         function getLinks( $string )
@@ -57,7 +57,7 @@
 		 * Returns a size formatted and with its unit: "bytes", "KB", "MB" or "GB"
 		 *
 		 * @param size The amount
-		 * @return A string with the formatted size.
+		 * @return A string with the formatted size.
 		 * @static
 		 */
 		function formatSize( $size )
@@ -72,8 +72,8 @@
          * Returns a string in a readable and url-compliant format.
          *
          * @param string The string
-         * @return A string ready to use in urls.
-         * @static
+         * @return A string ready to use in urls.
+         * @static
          * @see TextFilter::urlize()
          */
         function text2url( $string )
@@ -88,8 +88,8 @@
             $string = str_replace(array(';','/','?',':','@','&','=','+','$',','), '', $string);
 
             // replace some characters to similar ones (more readable uris)
-            $search  = array(' ', 'Š', 'š', 'Ÿ','‘','•','Ž','','ˆ','',à','è','ì','ò','ù','á','é','í','ó','ú','ä','ë','ï','ö','ü','â','ê','î','ô','û','ç','ñ');
-            $replace = array('_','ae','oe','ue','e','i','e','e','a','c', a','c','a','e','i','o','u','a','e','i','o','u','a','e','i','o','u','a','e','i','o','u','c','n');
+            $search  = array(' ', 'Š', 'š', 'Ÿ','‘','•','Ž','','ˆ','',);
+            $replace = array('_','ae','oe','ue','e','i','e','e','a','c');
             $string = str_replace($search, $replace, $string);
 
             // remove everything we didn't so far...
@@ -100,11 +100,11 @@
         }
 		
 		/**
-		 * extremely lame function. 
+		 * extremely lame function. 
 		 *
 		 * @param count how many times we'd like to repeat the character
 		 * @param char The character (or string) we'd like to repeat
-		 * @return The resulting string
+		 * @return The resulting string
 		 * @static
 		 */
  		function pad( $count, $char = " ")




More information about the pLog-svn mailing list