You copied the Doc URL to your clipboard.

Arm Compiler armasm User Guide : String manipulation operators

String manipulation operators

You can use string manipulation operators to concatenate two strings, or to extract a substring.

The following table shows the string manipulation operators. In CC, both A and B must be strings. In the slicing operators LEFT and RIGHT:

  • A must be a string.

  • B must be a numeric expression.

Table 6-4 String manipulation operators

Operator

Usage

Explanation

:CC:

A:CC:B

B concatenated onto the end of A

:LEFT:

A:LEFT:B

The left-most B characters of A

:RIGHT:

A:RIGHT:B

The right-most B characters of A

Was this page helpful? Yes No