AceCommon
1.4.6
Arduino library for low-level common functions and features with no external dependencies
|
#include <stddef.h>
Go to the source code of this file.
Functions | |
void | ace_common::copyReplaceChar (char *dst, size_t dstSize, const char *src, char oldChar, char newChar) |
Copy at most dstSize characters from src to dst, while replacing all occurrences of oldChar with newChar. More... | |
void | ace_common::copyReplaceString (char *dst, size_t dstSize, const char *src, char oldChar, const char *newString) |
Copy at most dstSize characters from src to dst, while replacing all occurrence of oldChar with newString. More... | |
Functions that copy c-strings from src
to dst
while replacing a given character with another character or another string.
Definition in file copyReplace.h.
void ace_common::copyReplaceChar | ( | char * | dst, |
size_t | dstSize, | ||
const char * | src, | ||
char | oldChar, | ||
char | newChar | ||
) |
Copy at most dstSize characters from src to dst, while replacing all occurrences of oldChar with newChar.
If newChar is '\0', then replace with nothing. The resulting dst string is always NUL terminated.
Definition at line 29 of file copyReplace.cpp.
void ace_common::copyReplaceString | ( | char * | dst, |
size_t | dstSize, | ||
const char * | src, | ||
char | oldChar, | ||
const char * | newString | ||
) |
Copy at most dstSize characters from src to dst, while replacing all occurrence of oldChar with newString.
If newString is "", then replace with nothing. The resulting dst string is always NUL terminated.
Definition at line 47 of file copyReplace.cpp.