Category
OCL String Operators
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
|Escape (special) characters used in OCL | |Escape (special) characters used in OCL | ||
|- | |- | ||
|[[OCLOperators StringToAnsiBase64| | |'''[[Documentation:OCLOperators StringToAnsiBase64|StringToAnsiBase64]]''' | ||
|Convert a string to an ANSI (1252) and as a base64 string | |Convert a string to an ANSI (1252) and as a base64 string | ||
|- | |- | ||
|[[OCLOperators StringToEncodedBase64| | |'''[[Documentation:OCLOperators StringToEncodedBase64|StringToEncodedBase64]]''' | ||
|Convert a string to a specific encoding and as a base64 string. For example Western European (ISO) Codepage 28591 | |Convert a string to a specific encoding and as a base64 string. For example Western European (ISO) Codepage 28591 | ||
|- | |- | ||
|[[OCLOperators Size () : Integer| | |'''[[Documentation:OCLOperators Size () : Integer|size () : Integer]]''' | ||
|Returns the number of characters composing ''self''. | |Returns the number of characters composing ''self''. | ||
|- | |- | ||
|[[OCLOperators subString| | |'''[[Documentation:OCLOperators subString|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. | |Returns the substring of the string operated on. The substring starts at parameter 1 and ends at parameter 2. The counting is 1-based. | ||
|- | |- | ||
|[ | |'''[[Documentation:OCLOperators toInteger () : Integer|toInteger () : Integer]]''' | ||
|Returns ''self'' with all characters converted to lowercase. | |Returns ''self'' with all characters converted to lowercase. | ||
|- | |- | ||
|[[OCLOperators ToLower () : String| | |'''[[Documentation:OCLOperators ToLower () : String|toLower () : String]]''' | ||
|Returns ''self'' with all characters converted to lowercase. | |Returns ''self'' with all characters converted to lowercase. | ||
|- | |- | ||
|[[OCLOperators ToReal () : Real| | |'''[[Documentation:OCLOperators ToReal () : Real|toReal () : Real]]''' | ||
|Returns a Real of value equal to ''self''<nowiki>, or |invalid| if </nowiki>''self'' does not represent a real. | |Returns a Real of value equal to ''self''<nowiki>, or |invalid| if </nowiki>''self'' does not represent a real. | ||
|- | |- | ||
|[[OCLOperators ToUpper () : String| | |'''[[Documentation:OCLOperators ToUpper () : String|toUpper () : String]]''' | ||
|Returns self with all characters converted to uppercase. | |Returns self with all characters converted to uppercase. | ||
|} | |} | ||
See also: | '''See also:''' [[Documentation:OCLOperators|OCLOperators]] |
Revision as of 05:14, 7 February 2025
This page was created by Stephanie@mdriven.net on 2023-04-12. Last edited by Stephanie@mdriven.net on 2025-03-10.
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: OCLOperators
Pages in category "OCL String Operators"
The following 14 pages are in this category, out of 14 total.
O
- Documentation:OCLOperators classfromstring
- Documentation:OCLOperators ListActions
- Documentation:OCLOperators Size () : Integer
- Documentation:OCLOperators split
- Documentation:OCLOperators StringToAnsiBase64
- Documentation:OCLOperators StringToEncodedBase64
- Documentation:OCLOperators subString
- Documentation:OCLOperators toInteger () : Integer
- Documentation:OCLOperators ToLower () : String
- Documentation:OCLOperators ToReal () : Real
- Documentation:OCLOperators ToUpper () : String
- Documentation:OCLOperators tryParse