From 6cfa8a316a845aefedfe1f489f7402b1651d6f51 Mon Sep 17 00:00:00 2001 From: = <=> Date: Tue, 14 Jul 2015 17:48:08 -0700 Subject: [PATCH] Testing --- examples/example2.cpp | 2 +- libpipecolors.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/example2.cpp b/examples/example2.cpp index 13f095a..0149821 100644 --- a/examples/example2.cpp +++ b/examples/example2.cpp @@ -10,7 +10,7 @@ int main(void) { int num = 5; const char* str = "My number is"; const char* str2 = "|10My number is|07"; - int len = pcprintf("|01%s |09%d|39\n", str, num); + int len = pcprintf("|01%s |41|09%d|39\n", str, num); pcprintf("|10Length of Len is : |15|30%d\n|07", len); int len2 = pcsprintf(buffer, "%s %d\n", str2, num); printf("\n%s %d\n", buffer, len2); diff --git a/libpipecolors.cpp b/libpipecolors.cpp index 9594af3..bb28c7e 100644 --- a/libpipecolors.cpp +++ b/libpipecolors.cpp @@ -89,8 +89,10 @@ namespace pipecolors { end = s.end(); std::string len(s); + colorMap colors = getColors(); + while(regex_search(start, end, match, re, flags)) {