|  | @@ 640-653 (lines=14) @@ | 
                                                            
                                    | 637 |  |    * | 
                                                            
                                    | 638 |  |    * @return Stringy Object with the first character of $str being upper case | 
                                                            
                                    | 639 |  |    */ | 
                                                            
                                    | 640 |  |   public function upperCaseFirst() | 
                                                            
                                    | 641 |  |   { | 
                                                            
                                    | 642 |  |     $first = UTF8::substr($this->str, 0, 1, $this->encoding); | 
                                                            
                                    | 643 |  |     $rest = UTF8::substr( | 
                                                            
                                    | 644 |  |         $this->str, | 
                                                            
                                    | 645 |  |         1, | 
                                                            
                                    | 646 |  |         $this->length() - 1, | 
                                                            
                                    | 647 |  |         $this->encoding | 
                                                            
                                    | 648 |  |     ); | 
                                                            
                                    | 649 |  |  | 
                                                            
                                    | 650 |  |     $str = UTF8::strtoupper($first, $this->encoding) . $rest; | 
                                                            
                                    | 651 |  |  | 
                                                            
                                    | 652 |  |     return static::create($str, $this->encoding); | 
                                                            
                                    | 653 |  |   } | 
                                                            
                                    | 654 |  |  | 
                                                            
                                    | 655 |  |   /** | 
                                                            
                                    | 656 |  |    * Returns the index of the last occurrence of $needle in the string, | 
                                                                                
                                |  | @@ 2003-2014 (lines=12) @@ | 
                                                            
                                    | 2000 |  |    * | 
                                                            
                                    | 2001 |  |    * @return Stringy Object with the first character of $str being lower case | 
                                                            
                                    | 2002 |  |    */ | 
                                                            
                                    | 2003 |  |   public function lowerCaseFirst() | 
                                                            
                                    | 2004 |  |   { | 
                                                            
                                    | 2005 |  |     $first = UTF8::substr($this->str, 0, 1, $this->encoding); | 
                                                            
                                    | 2006 |  |     $rest = UTF8::substr( | 
                                                            
                                    | 2007 |  |         $this->str, 1, $this->length() - 1, | 
                                                            
                                    | 2008 |  |         $this->encoding | 
                                                            
                                    | 2009 |  |     ); | 
                                                            
                                    | 2010 |  |  | 
                                                            
                                    | 2011 |  |     $str = UTF8::strtolower($first, $this->encoding) . $rest; | 
                                                            
                                    | 2012 |  |  | 
                                                            
                                    | 2013 |  |     return static::create($str, $this->encoding); | 
                                                            
                                    | 2014 |  |   } | 
                                                            
                                    | 2015 |  |  | 
                                                            
                                    | 2016 |  |   /** | 
                                                            
                                    | 2017 |  |    * Shorten the string after $length, but also after the next word. |