login

chcase.gsf

Top / GrADS / script / chcase.gsf

Japanese / English

Name

chcase() - Convert to upper/lower case.

Synopsis

ret = chcase( str, type )

Options and Return values

str
String to be converted.
type
'upper', 'lower', or 'upper_first'.
ret
Converted string.

Examples

(1) Change string to small case.

  • test.gs
    rc = gsfallow( 'on' )
    string = 'This is a pen.'
    say string
    say chcase( string, 'lower' )
    
  • console
    ga-> test
    This is a pen.
    this is a pen.
    

Script source code