OCL String Operators
No edit summary
No edit summary
Line 33: Line 33:
|Returns self with all characters converted to uppercase.
|Returns self with all characters converted to uppercase.
|}
|}
See also: https://wiki.mdriven.net/index.php/OCLOperators

Revision as of 07:41, 26 April 2023

Examples of OCL String Operators

String Operators

Operators Description
Escape codes Escape (special) characters used in OCL
StringToAnsiBase64 Convert a string to an ANSI (1252) and as a base64 string
StringToEncodedBase64 Convert a string to a specific encoding and as a base64 string. For example Western European (ISO) Codepage 28591
size () : Integer Returns the number of characters composing self.
subString Returns the substring of the string operated on. The substring starts at parameter 1 and ends at parameter 2. The counting is 1-based.
toInteger () : Integer Returns self with all characters converted to lowercase.
toLower () : String Returns self with all characters converted to lowercase.
toReal () : Real Returns a Real of value equal to self, or |invalid| if self does not represent a real.
toUpper () : String Returns self with all characters converted to uppercase.

See also: https://wiki.mdriven.net/index.php/OCLOperators

This page was edited more than 1 years ago on 05/01/2023. What links here