☜ | $%UPPER^STRINGDraft MDC Standard | ☞ |
UPPER^STRING : STRING ( A : STRING , CHARMOD : O )
$%UPPER^STRING returns a string that is an edited version of the value of its first parameter, in which all lower-case characters are converted to the corresponding upper-case characters.
Editor’s note: It would seem to be that this function is a function thar related CHARACTER more than to STRINGs in general. Suggest to specify it as $%UPPER^CHARACTER. |
If the value of CHARMOD is a namevalue referencing a gvn, then the conversion algorithm used is that specified in ^$Global for that gvn. If the value of CHARMOD is a charsetexpr, then the conversion algorithm used is that specified in ^$Character for that character set profile. If CHARMOD is not specified, or the node specified above does not exist, then the conversion algorithm used is that specified as the default for the process in ^$Job.
If no algorithm is specified in the appropriate ssvn, then the characters a through z are converted to A through Z respectively.
If CHARMOD references a gvn, it must be either of the form ^ name or of the form ^ VB environment VB name.
Click here for $%UPPER^STRING sample code
Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.
Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.
This page most recently updated on 14-Nov-2023, 21:33:20.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)