5 namespace ToolboxHelpers {
8 for (
size_t i = 0; i <
strlen(text); i++) {
9 if (text[i] ==
'(' || text[i] ==
'\'') {
22 int currentNewTextIndex = 0;
23 int numberOfOpenBrackets = 0;
24 bool insideQuote =
false;
25 size_t commandLength =
strlen(command);
26 for (
size_t i = 0; i < commandLength; i++) {
27 if (command[i] ==
')') {
28 numberOfOpenBrackets--;
30 if ((numberOfOpenBrackets == 0 || command[i] ==
',') && (!insideQuote || command[i] ==
'\'')) {
31 buffer[currentNewTextIndex++] = command[i];
33 if (command[i] ==
'(') {
34 numberOfOpenBrackets++;
36 if (command[i] ==
'\'') {
37 insideQuote = !insideQuote;
40 buffer[currentNewTextIndex] = 0;
enum Message uint16_t enum Language uint16_t const char * translate(Message m, Language l=(Language) 0)
size_t strlen(const char *s)