
NCL Home >
Documentation >
Functions >
String manipulation
changeCaseChar
Changes the case of each character in a string. (Deprecated: see str_switch.)
Prototype
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" ; This library is automatically loaded ; from NCL V6.2.0 onward. ; No need for user to explicitly load. function changeCaseChar ( x : string ) return_val : string
Arguments
xA string.
Return value
A string of the same size as x.
Description
This function has been deprecated in version 5.1.1; use str_switch instead.
Changes the case of each character in a string. Treats each one separately and changes it to the opposite case. (e.g. apple => APPLE, aPPle => AppLE)