nothing of interest

This commit is contained in:
R. Eric Wheeler 2015-07-06 15:33:30 -07:00
parent 181d162c2c
commit d5aa7198a9
3 changed files with 5 additions and 3 deletions

Binary file not shown.

View File

@ -8,7 +8,7 @@ int main(void) {
int num = 5; int num = 5;
const char* str = "My number is"; const char* str = "My number is";
pcprintf("|40%s %d|39\n", str, num); pcprintf("|40%s |05%d|39\n", str, num);
return 0; return 0;
} }

View File

@ -83,14 +83,16 @@ namespace pipecolors {
while(regex_search(start, end, match, re, flags)) while(regex_search(start, end, match, re, flags))
{ {
if(colors[match[0]].empty()) continue;
//while ((index = s.find(match[0])) != std::string::npos) //while ((index = s.find(match[0])) != std::string::npos)
//{ //{
if(has_colors()) { if(has_colors() && !colors[match[0]].empty()) {
//if(colors[match[0]].empty()) continue;
s.replace(s.find(match[0]), match[0].length(), colors[match[0]]); s.replace(s.find(match[0]), match[0].length(), colors[match[0]]);
} else { } else {
//if(colors[match[0]].empty()) continue;
s.erase(s.find(match[0]), match[0].length()); s.erase(s.find(match[0]), match[0].length());
} }
//} //}