Go to the source code of this file.
◆ rcutils_split()
Split a given string with the specified delimiter. 
- Parameters
- 
  
    | [in] | str | string to split |  | [in] | delimiter | on where to split |  | [in] | allocator | for allocating new memory for the output array |  | [out] | string_array | with the split tokens |  
 
- Returns
- RCUTILS_RET_OKif successful, or
- 
RCUTILS_RET_INVALID_ARGUMENTfor invalid arguments, or
- 
RCUTILS_RET_BAD_ALLOCif memory allocation fails, or
- 
RCUTILS_RET_ERRORif an unknown error occurs
 
 
◆ rcutils_split_last()
Split a given string on the last occurrence of the specified delimiter. 
- Parameters
- 
  
    | [in] | str | string to split |  | [in] | delimiter | on where to split |  | [in] | allocator | for allocating new memory for the output array |  | [out] | string_array | with the split tokens |  
 
- Returns
- array with split token, NULL in case of error