MXS-1220: Deprecate whitespace in object names

All whitespace in object names is now converted to a compacted format with
whitespace replaced with hyphens. If a conversion takes place, a warning
is logged.

Converted some of the tests into C++ as they directly include .cc files.
This commit is contained in:
Markus Mäkelä
2017-04-17 19:44:37 +03:00
committed by Markus Mäkelä
parent aa16980cec
commit 47c1e9d533
4 changed files with 82 additions and 7 deletions

View File

@ -99,7 +99,9 @@ void gw_sha1_2_str(const uint8_t *in, int in_len, const uint8_t *in2, int in2_le
int gw_getsockerrno(int fd);
char *create_hex_sha1_sha1_passwd(char *passwd);
/** String formatting functions */
char* trim(char *str);
void replace_whitespace(char* str);
char* squeeze_whitespace(char* str);
bool strip_escape_chars(char*);