String
Operations
- size(): Integer
- Returns the length of s.
- concat(s: String): String
- Returns the concatenation of self and s.
SQL template: self | s - +(a: OclAny): String [I]
- Returns the concatenation of self and o. Equivalent to self.concat(o.toString())
Syntax: self + a; SQL template: self | a - toUpper(): String [I]
- Returns a copy of self with all characters converted to upper case.
SQL template: upper(self) - toLower(): String [I]
- Returns a copy of self with all characters converted to lower case.
SQL template: lower(self) - substring(i1: Integer, i2: Integer): String
- Returns the substring of self, starting at the index position i1, ranging to and including i2. Please note that the index of the first character of a string is 1.
- substring(i: Integer): String [I]
- Returns the substring of self, starting at the index position i. Please note that the index of the first character of a string is 1.
- pos(s: String): Integer [I]
- Deperecated. Returns the first index position of s in self. If s1 cannot be found in s, 0 is retuned.
SQL template: position(s in self) - indexOf(s: String): Integer [I]
- Returns the first index position of s in self. If s1 cannot be found in s, OclUndefined is retuned.
SQL template: position(s in self) - toInteger(): Integer
- Converts self to an integer value.
- toInteger(s: String): Integer [I]
- Converts self to an integer value, assuming that s is formatted according to s.
- toReal(): Real
- Converts self to a real value.
- toReal(s: String): Real [I]
- Converts self to a real value, assuming that self is formatted according to s.
- toDateTime(): DateTime [I]
- Converts self from the ISO time format to a DateTime value.
- toDateTime(s: String): DateTime [I]
- Converts self to a DateTime value that is formatted with respect to s to a DateTime value.
- startsWith(s: String): Boolean [I]
- Returns true if self begins with s.
SQL template: position(s in self) = 1 - endsWith(s: String): Boolean [I]
- True if self ends with s.
- replace(s1: String, s2: String): String [I]
- Replaces all occurences of s1 in self by s2.
- toAscii(): String
- Converts self to a string that contains only ASCII characters (Unicodes 32-127). Unsupported characters are replaced by a question mark.
- at(i: Integer): Integer
- Returns the Unicode value of the i-th character of self.