According to my new Requirement I have to spilt the below line as
For example
FUNC(Std_ReturnType, RTE_CODE) Rte_Read_PA_BSW_comEBCM_CAN1_PDU82_IElecPrkBrkAppl Stat(CONSTP2VAR(IElecPrkBrkApplStat, AUTOMATIC, RTE_APPL_DATA) data)
My result Should as below
1.FUNC
2.Std_ReturnType, RTE_CODE
3.Rte_Read_PA_BSW_comEBCM_CAN1_PDU82_IElecPrkBrkAp plStat
4.CONSTP2VAR(IElecPrkBrkApplStat, AUTOMATIC, RTE_APPL_DATA) data
I tried many way to spilt but not got the exact Result
Example
list
= line.
split(QRegularExpression
("\\W+"),
QString::SkipEmptyParts);
list = line.split("(");
list = line.split(")");
list = line.split("()");
list = line.split(" ");
list = line.split(QRegularExpression("\\W+"), QString::SkipEmptyParts);
list = line.split("(");
list = line.split(")");
list = line.split("()");
list = line.split(" ");
To copy to clipboard, switch view to plain text mode
but all does not provide me the exact Result Please let me know if any idea.
Bookmarks