b256544b9c25218b0f36b88ef26f1d4a4179e156 markd Sun Oct 14 21:47:44 2018 -0700 make common.h more C++ friendly diff --git src/inc/common.h src/inc/common.h index e44df39..985676c 100644 --- src/inc/common.h +++ src/inc/common.h @@ -873,31 +873,31 @@ void toLowerN(char *s, int n); /* Convert a section of memory to lower case. */ void toggleCase(char *s, int size); /* toggle upper and lower case chars in string. */ char *strUpper(char *s); #define touppers(s) (void)strUpper(s) /* Convert entire string to upper case. */ char *strLower(char *s); #define tolowers(s) (void)strLower(s) /* Convert entire string to lower case */ -void replaceChar(char *s, char old, char new); +void replaceChar(char *s, char oldc, char newc); /* Repace one char with another. Modifies original string. */ char *replaceChars(char *string, char *oldStr, char *newStr); /* Replaces the old with the new. The old and new string need not be of equal size Can take any length string. Return value needs to be freeMem'd. */ int strSwapStrs(char *string, int sz,char *oldStr, char *newStr); /* Swaps all occurrences of the oldStr with the newStr in string. Need not be same size Swaps in place but restricted by sz. Returns count of swaps or -1 for sz failure.*/ char * memSwapChar(char *s, int len, char oldChar, char newChar);