Changeset 933

Show
Ignore:
Timestamp:
11/01/2007 04:04:10 AM (13 months ago)
Author:
Geert
Message:

Cleaning up some typos and comments

Location:
trunk/system/core
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/core/Event.php

    r889 r933  
    33 * Class: Event 
    44 *  Process queuing/execution class. Allows an unlimited number of callbacks 
    5  *  to be added to "events". Events can be run multiple times, and can also 
     5 *  to be added to 'events'. Events can be run multiple times, and can also 
    66 *  process event-specific data. By default, Kohana has several system events. 
    77 * 
     
    3131 * 
    3232 * About: system.post_controller 
    33  *  Called within syste.execute, after the controller object is created. 
     33 *  Called within system.execute, after the controller object is created. 
    3434 *  Kohana::instance() will return the controller at this point, and views can 
    3535 *  be loaded. 
    3636 * 
    3737 * About: system.send_headers 
    38  *  Called just before the global output bufferis closed, before any content 
     38 *  Called just before the global output buffer is closed, before any content 
    3939 *  is displayed. Writing cookies is not possible after this point, and 
    4040 *  <Session> data will not be saved. 
     
    4343 *  Displays the output that Kohana has generated. Views can be loaded, but 
    4444 *  headers have already been sent. The rendered output, Kohana::$output, can 
    45  *  be manipluated. 
     45 *  be manipulated. 
    4646 * 
    4747 * About: system.shutdown 
  • trunk/system/core/utf8.php

    r902 r933  
    130130         * 
    131131         * Returns: 
    132          *  TRUE or FALSE, whether the string is ASCII 
     132         *  TRUE or FALSE, whether the string is ASCII. 
    133133         */ 
    134134        public static function is_ascii($str) 
     
    170170         * Method: transliterate_to_ascii 
    171171         *  Replaces special/accented UTF-8 characters by ASCII-7 'equivalents'. 
    172          *  Original function (accents_to_ascii) written by Andreas Gohr <andi@splitbrain.org> for phputf8 
    173          * 
    174          * Parameters: 
    175          *  str - string to transliterate 
    176          *  int - -1 lowercase only, +1 uppercase only, 0 both cases 
    177          * 
    178          * Returns: 
    179          *  String with only ASCII characters 
     172         *  Original function (accents_to_ascii) written by Andreas Gohr <andi@splitbrain.org> for phputf8. 
     173         * 
     174         * Parameters: 
     175         *  str  - string to transliterate 
     176         *  case - -1 lowercase only, +1 uppercase only, 0 both cases 
     177         * 
     178         * Returns: 
     179         *  String with only ASCII characters. 
    180180         */ 
    181181        public static function transliterate_to_ascii($str, $case = 0) 
     
    274274        /* 
    275275         * Method: strpos 
    276          *  Find position of first occurrence of a UTF-8 string 
    277          *  Original function written by Harry Fuecks <hfuecks@gmail.com> for phputf8 
    278          * 
    279          * Parameters: 
    280          *  str - haystack 
    281          *  str - needle 
    282          *  int - offset: allows you to specify which character in haystack to start searching 
     276         *  Finds position of first occurrence of a UTF-8 string. 
     277         *  Original function written by Harry Fuecks <hfuecks@gmail.com> for phputf8. 
     278         * 
     279         * Parameters: 
     280         *  str    - haystack 
     281         *  search - needle 
     282         *  offset - allows you to specify from which character in haystack to start searching 
    283283         * 
    284284         * Returns: 
     
    311311        /* 
    312312         * Method: strrpos 
    313          *  Find position of last occurrence of a char in a UTF-8 string 
    314          *  Original function written by Harry Fuecks <hfuecks@gmail.com> for phputf8 
    315          * 
    316          * Parameters: 
    317          *  str - haystack 
    318          *  str - needle 
    319          *  int - offset: allows you to specify which character in haystack to start searching 
     313         *  Finds position of last occurrence of a char in a UTF-8 string. 
     314         *  Original function written by Harry Fuecks <hfuecks@gmail.com> for phputf8. 
     315         * 
     316         * Parameters: 
     317         *  str    - haystack 
     318         *  search - needle 
     319         *  offset - allows you to specify from which character in haystack to start searching 
    320320         * 
    321321         * Returns: 
     
    348348        /* 
    349349         * Method: substr 
    350          *  Return part of a UTF-8 string 
    351          *  Original function written by Chris Smith <chris@jalakai.co.uk> for phputf8 
    352          * 
    353          * Parameters: 
    354          *  str - input string 
    355          *  int - start (offset) 
    356          *  int - length 
    357          * 
    358          * Returns: 
    359          *  Returns the portion of string specified by the start and length parameters or FALSE on failure. 
     350         *  Returns part of a UTF-8 string. 
     351         *  Original function written by Chris Smith <chris@jalakai.co.uk> for phputf8. 
     352         * 
     353         * Parameters: 
     354         *  str    - input string 
     355         *  offset - start 
     356         *  length -  
     357         * 
     358         * Returns: 
     359         *  The portion of string specified by the start and length parameters or FALSE on failure. 
    360360         */ 
    361361        public static function substr($str, $offset, $length = NULL) 
     
    437437        /* 
    438438         * Method: substr_replace 
    439          *  Replace text within a portion of a UTF-8 string 
    440          *  Original function written by Harry Fuecks <hfuecks@gmail.com> for phputf8 
    441          * 
    442          * Parameters: 
    443          *  str - input string 
    444          *  str - replacement string 
    445          *  int - start (offset) 
    446          *  int - length 
     439         *  Replaces text within a portion of a UTF-8 string. 
     440         *  Original function written by Harry Fuecks <hfuecks@gmail.com> for phputf8. 
     441         * 
     442         * Parameters: 
     443         *  str         - input string 
     444         *  replacement - replacement string 
     445         *  offset      - start 
     446         *  length      -  
    447447         * 
    448448         * Returns: 
     
    466466        /* 
    467467         * Method: strtolower 
    468          *  Makes a UTF-8 string lowercase 
    469          *  Original function written by Andreas Gohr <andi@splitbrain.org> for phputf8 
     468         *  Makes a UTF-8 string lowercase. 
     469         *  Original function written by Andreas Gohr <andi@splitbrain.org> for phputf8. 
    470470         * 
    471471         * Parameters: 
     
    473473         * 
    474474         * Returns: 
    475          *  Lowercase UTF-8 string 
     475         *  Lowercase UTF-8 string. 
    476476         */ 
    477477        public static function strtolower($str) 
     
    557557        /* 
    558558         * Method: strtoupper 
    559          *  Makes a UTF-8 string uppercase 
    560          *  Original function written by Andreas Gohr <andi@splitbrain.org> for phputf8 
     559         *  Makes a UTF-8 string uppercase. 
     560         *  Original function written by Andreas Gohr <andi@splitbrain.org> for phputf8. 
    561561         * 
    562562         * Parameters: 
     
    564564         * 
    565565         * Returns: 
    566          *  Uppercase UTF-8 string 
     566         *  Uppercase UTF-8 string. 
    567567         */ 
    568568        public static function strtoupper($str) 
     
    648648        /* 
    649649         * Method: ucfirst 
    650          *  Makes a UTF-8 string's first character uppercase 
    651          *  Original function written by Harry Fuecks <hfuecks@gmail.com> for phputf8 
     650         *  Makes a UTF-8 string's first character uppercase. 
     651         *  Original function written by Harry Fuecks <hfuecks@gmail.com> for phputf8. 
    652652         * 
    653653         * Parameters: 
     
    655655         * 
    656656         * Returns: 
    657          *  UTF-8 string with first character in uppercase 
     657         *  UTF-8 string with first character in uppercase. 
    658658         */ 
    659659        public static function ucfirst($str) 
     
    670670        /* 
    671671         * Method: ucwords 
    672          *  Makes the first character of every word in a UTF-8 string uppercase 
    673          *  Original function written by Harry Fuecks <hfuecks@gmail.com> for phputf8 
     672         *  Makes the first character of every word in a UTF-8 string uppercase. 
     673         *  Original function written by Harry Fuecks <hfuecks@gmail.com> for phputf8. 
    674674         * 
    675675         * Parameters: 
     
    677677         * 
    678678         * Returns: 
    679          *  UTF-8 string with first character of every word in uppercase 
     679         *  UTF-8 string with first character of every word in uppercase. 
    680680         */ 
    681681        public static function ucwords($str) 
     
    701701        /* 
    702702         * Method: strcasecmp 
    703          *  Case-insensitive UTF-8 string comparison 
    704          *  Original function written by Harry Fuecks <hfuecks@gmail.com> for phputf8 
    705          * 
    706          * Parameters: 
    707          *  str - first string 
    708          *  str - second string 
    709          * 
    710          * Returns: 
    711          *  Returns integer < 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal. 
     703         *  Case-insensitive UTF-8 string comparison. 
     704         *  Original function written by Harry Fuecks <hfuecks@gmail.com> for phputf8. 
     705         * 
     706         * Parameters: 
     707         *  str1 - first string 
     708         *  str2 - second string 
     709         * 
     710         * Returns: 
     711         *  integer < 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal. 
    712712         */ 
    713713        public static function strcasecmp($str1, $str2) 
     
    725725        /* 
    726726         * Method: str_ireplace 
    727          *  Returns a string or an array with all occurrences of search in subject (ignoring case) 
     727         *  Returns a string or an array with all occurrences of search in subject (ignoring case). 
    728728         *  replaced with the given replace value. 
    729          *  Note: it's not fast and gets slower if $search and/or $replace are arrays 
    730          *  Original function written by Harry Fuecks <hfuecks@gmail.com> for phputf8 
    731          * 
    732          * Parameters: 
    733          *  mixed - string or array with text to replace 
    734          *  mixed - string or array with replacement text 
    735          *  mixed - string or array with subject text 
    736          *  int   - number of matched and replaced needles will be returned via this parameter which is passed by reference 
     729         *  Note: it's not fast and gets slower if $search and/or $replace are arrays. 
     730         *  Original function written by Harry Fuecks <hfuecks@gmail.com> for phputf8. 
     731         * 
     732         * Parameters: 
     733         *  search - string or array with text to replace 
     734         *  replace - string or array with replacement text 
     735         *  str    - string or array with subject text 
     736         *  count   - number of matched and replaced needles will be returned via this parameter which is passed by reference 
    737737         * 
    738738         * Returns: 
     
    12031203         *  The Original Code is Mozilla Communicator client code. 
    12041204         *  The Initial Developer of the Original Code is Netscape Communications Corporation. 
    1205          *  Portions created by the Initial Developer are Copyright (C) 1998 the Initial Developer 
    1206          *  Ported to PHP by Henri Sivonen <hsivonen@iki.fi>, see http://hsivonen.iki.fi/php-utf8/ 
    1207          *  Slight modifications to fit with phputf8 library by Harry Fuecks <hfuecks@gmail.com> 
     1205         *  Portions created by the Initial Developer are Copyright (C) 1998 the Initial Developer. 
     1206         *  Ported to PHP by Henri Sivonen <hsivonen@iki.fi>, see http://hsivonen.iki.fi/php-utf8/. 
     1207         *  Slight modifications to fit with phputf8 library by Harry Fuecks <hfuecks@gmail.com>. 
    12081208         * 
    12091209         * Parameters: 
     
    12111211         * 
    12121212         * Returns: 
    1213          *  array of unicode code points or FALSE if UTF-8 invalid 
     1213         *  Array of unicode code points or FALSE if UTF-8 invalid. 
    12141214         */ 
    12151215        public static function to_unicode($str) 
     
    13531353         *  The Original Code is Mozilla Communicator client code. 
    13541354         *  The Initial Developer of the Original Code is Netscape Communications Corporation. 
    1355          *  Portions created by the Initial Developer are Copyright (C) 1998 the Initial Developer 
    1356          *  Ported to PHP by Henri Sivonen <hsivonen@iki.fi>, see http://hsivonen.iki.fi/php-utf8/ 
    1357          *  Slight modifications to fit with phputf8 library by Harry Fuecks <hfuecks@gmail.com> 
    1358          * 
    1359          * Parameters: 
    1360          *  array - array of unicode code points representing a string 
    1361          * 
    1362          * Returns: 
    1363          *  UTF-8 string or FALSE if array contains invalid code points 
     1355         *  Portions created by the Initial Developer are Copyright (C) 1998 the Initial Developer. 
     1356         *  Ported to PHP by Henri Sivonen <hsivonen@iki.fi>, see http://hsivonen.iki.fi/php-utf8/. 
     1357         *  Slight modifications to fit with phputf8 library by Harry Fuecks <hfuecks@gmail.com>. 
     1358         * 
     1359         * Parameters: 
     1360         *  arr - array of unicode code points representing a string 
     1361         * 
     1362         * Returns: 
     1363         *  UTF-8 string or FALSE if array contains invalid code points. 
    13641364         */ 
    13651365        public static function from_unicode($arr)