Keil Logo

String manipulation operators

7.22 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 7-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
Non-ConfidentialPDF file icon PDF versionARM DUI0379H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.