Initial capitalizing the string : Case : String Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » String » Case »

 

Initial capitalizing the string


 
package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var example:String = "bRuCE";
        tracetoInitialCapexample ) );    // Displays: Bruce


    }
    public static function toInitialCaporiginal:String ):String {
      return original.charAt).toUpperCase(  ) + original.substr).toLowerCase(  );
    }

  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo String
» Case