5 * th9x - http://code.google.com/p/th9x
6 * er9x - http://code.google.com/p/er9x
7 * gruvin9x - http://code.google.com/p/gruvin9x
9 * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
21 #ifndef _STRHELPERS_H_
22 #define _STRHELPERS_H_
24 char * strAppend(char * dest
, const char * source
, int len
=0);
25 char * strAppendUnsigned(char * dest
, uint32_t value
, uint8_t digits
=0, uint8_t radix
=10);
26 char * strAppendSigned(char * dest
, int32_t value
, uint8_t digits
=0, uint8_t radix
=10);
27 char * strSetCursor(char * dest
, int position
);
28 char * strAppendDate(char * str
, bool time
=false);
29 char * strAppendFilename(char * dest
, const char * filename
, const int size
);
32 char * getStringAtIndex(char * dest
, const char * s
, int idx
);
33 char * strAppendStringWithIndex(char * dest
, const char * s
, int idx
);
34 #define LEN_TIMER_STRING 10 // "-00:00:00"
35 char * getTimerString(char * dest
, int32_t tme
, uint8_t hours
=0);
36 char * getCurveString(char * dest
, int idx
);
37 char * getGVarString(char * dest
, int idx
);
38 char * getSwitchPositionName(char * dest
, swsrc_t idx
);
39 char * getSwitchName(char * dest
, swsrc_t idx
);
40 char * getSourceString(char * dest
, mixsrc_t idx
);
43 #endif // _STRHELPERS_H_