nothing of interest
This commit is contained in:
parent
181d162c2c
commit
d5aa7198a9
Binary file not shown.
|
@ -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;
|
||||||
}
|
}
|
|
@ -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());
|
||||||
}
|
}
|
||||||
//}
|
//}
|
||||||
|
|
Loading…
Reference in New Issue