32 #ifndef ACE_COMMON_PRINT_REPLACE_TO_H
33 #define ACE_COMMON_PRINT_REPLACE_TO_H
37 #include "../fstrings/FlashString.h"
40 class __FlashStringHelper;
42 namespace ace_common {
53 while ((c = *src++) !=
'\0') {
55 if (newChar ==
'\0')
continue;
68 inline void printReplaceCharTo<const __FlashStringHelper*>(
69 Print& printer,
const __FlashStringHelper* src,
70 char oldChar,
char newChar) {
71 printReplaceCharTo<FlashString>(printer,
FlashString(src), oldChar, newChar);
82 Print& printer, T src,
char oldChar,
const char* newString) {
84 while ((c = *src++) !=
'\0') {
86 printer.print(newString);
99 inline void printReplaceStringTo<const __FlashStringHelper*>(
100 Print& printer,
const __FlashStringHelper* src,
101 char oldChar,
const char* newString) {
102 printReplaceStringTo<FlashString>(