OCL String Operators
No edit summary
(Replaced content with " == String Operators == '''See also:''' OCLOperators")
Tags: Replaced 2017 source edit
 
Line 1: Line 1:


== String Operators ==
== String Operators ==
{| class="wikitable"
!Operators
!Description
|-
|'''[[Documentation:Escape codes|Escape codes]]'''
|Escape (special) characters used in OCL
|-
|'''[[Documentation:OCLOperators StringToAnsiBase64|StringToAnsiBase64]]'''
|Convert a string to an ANSI (1252) and as a base64 string
|-
|'''[[Documentation:OCLOperators StringToEncodedBase64|StringToEncodedBase64]]'''
|Convert a string to a specific encoding and as a base64 string. For example Western European (ISO) Codepage 28591
|-
|'''[[Documentation:OCLOperators Size () : Integer|size () : Integer]]'''
|Returns the number of characters composing ''self''.
|-
|'''[[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.
|-
|'''[[Documentation:OCLOperators toInteger () : Integer|toInteger () : Integer]]'''
|Returns ''self'' with all characters converted to lowercase.
|-
|'''[[Documentation:OCLOperators ToLower () : String|toLower () : String]]'''
|Returns ''self'' with all characters converted to lowercase.
|-
|'''[[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.
|-
|'''[[Documentation:OCLOperators ToUpper () : String|toUpper () : String]]'''
|Returns self with all characters converted to uppercase.
|}


'''See also:''' [[Documentation:OCLOperators|OCLOperators]]
'''See also:''' [[Documentation:OCLOperators|OCLOperators]]

Latest revision as of 05:32, 10 March 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

See also: OCLOperators