chcase.gsf
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
- chcase.gsf (necessary)
- atoi.gsf (necessary)
- itoa.gsf (necessary)