nl_tokens: * @method capitalize ( [ all ] = false ) @returns String @short Capitalizes the first character in the string . @extra If [ all ] is true all words in the string will be capitalized . @example
pl_tokens: function ( all ) { var lastResponded ; return this . toLowerCase ( ) . replace ( <mask> ? / [\s\S] / g : / ^\S / , function ( lower ) { var upper = lower . toUpperCase ( ) , result ; result = lastResponded ? lower : upper ; lastResponded = upper !== lower ; return result ; } ) ; }