Top
Interstage Big DataComplex Event Processing Server V1.1.0 Developer's Reference
FUJITSU Software

2.8.2 String Functions

This section explains the functions that handle strings.

2.8.2.1 rtrim() Function

The rtrim() function returns a string from which the following consecutive characters at the end of a string specified in an item reference have been removed:

The rtrim() function format is as follows:

See

Refer to "2.4.9 Item References" for details


Return value

If the conversion has operated normally, a string type is returned.


Example

If $name is "Smith Adam " (where " " is a single-byte space):

rtrim($name)

"Smith Adam" is output as a string.

2.8.2.2 string() Function

The string() function converts an item reference value to a standard format string.


The string() function format is as follows:

See

Refer to "2.4.9 Item References" for details.

Return value

If the conversion has operated normally, a string type is returned. If the item reference value is "null", "null" is returned.

The string after conversion is in the following format:

Type specified in argument

String after conversion

String type

Not converted

Numeric type

Integer part + decimal part (*1)

*1: The integer part and decimal part are a maximum of 18 digits each.


Example

If the numeric item $age is "30":

string($age)

"30" is output as the string.