str_replace
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
long str_replace(char s[], char searched[], char replacement[]); // form 1long str_replace(char s[], long startoffset, char replacement[], long length); // form 2
Description
- Form 1: Replaces all occurrences of a text in a string with another string.
- Form 2: Replaces a part of a string with another string.
Parameters
- s: String to be modified.
- searched: Text which shall be replaced.
- startoffset: Offset at which to start replacing characters.
- replacement: Text which replaces the original characters.
- length: Maximum number of characters to replace.