split3()
#
Split a string into three parts based on two delimiters.
Prototype
PUBLIC BOOL split3(
const char *string,
char delimiter1,
char delimiter2,
char *part1,
int part1_size,
char *part2,
int part2_size,
char *part3,
int part3_size
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The string to split. |
|
|
The first delimiter used to split the string. |
|
|
The second delimiter used to split the string. |
|
|
The buffer to store the first part of the split string. |
|
|
The size of the buffer for the first part. |
|
|
The buffer to store the second part of the split string. |
|
|
The size of the buffer for the second part. |
|
|
The buffer to store the third part of the split string. |
|
|
The size of the buffer for the third part. |
Return Value
Returns TRUE
if the string was successfully split into three parts, otherwise returns FALSE
.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples