diff options
Diffstat (limited to 'glcdgraphics/common.h')
-rw-r--r-- | glcdgraphics/common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/glcdgraphics/common.h b/glcdgraphics/common.h index 2865602..f0376bf 100644 --- a/glcdgraphics/common.h +++ b/glcdgraphics/common.h @@ -13,6 +13,13 @@ #define _GLCDGRAPHICS_COMMON_H_ #include <string> +#include <stdint.h> + +// character to return when erraneous utf-8 sequence (for now: space) +//#define UTF8_ERRCHAR 0x0020 +// for debugging issues return '_' instead: +#define UTF8_ERRCHAR 0x005F + namespace GLCD { @@ -20,6 +27,7 @@ namespace GLCD void clip(int & value, int min, int max); void sort(int & value1, int & value2); std::string trim(const std::string & s); +bool encodedCharAdjustCounter(const bool isutf8, const std::string & str, uint32_t & c, unsigned int & i, const uint32_t errChar = UTF8_ERRCHAR); } // end of namespace |