diff options
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/StringExtras.cpp | 2 | ||||
-rw-r--r-- | lib/Support/raw_ostream.cpp | 4 | ||||
-rw-r--r-- | lib/Support/regengine.inc | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/Support/StringExtras.cpp b/lib/Support/StringExtras.cpp index d566b72a8d0..386d74a4798 100644 --- a/lib/Support/StringExtras.cpp +++ b/lib/Support/StringExtras.cpp @@ -61,7 +61,7 @@ void llvm::SplitString(StringRef Source, void llvm::printEscapedString(StringRef Name, raw_ostream &Out) { for (unsigned i = 0, e = Name.size(); i != e; ++i) { unsigned char C = Name[i]; - if (isprint(C) && C != '\\' && C != '"') + if (isPrint(C) && C != '\\' && C != '"') Out << C; else Out << '\\' << hexdigit(C >> 4) << hexdigit(C & 0x0F); diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp index b2260c1865e..1dae469958f 100644 --- a/lib/Support/raw_ostream.cpp +++ b/lib/Support/raw_ostream.cpp @@ -160,7 +160,7 @@ raw_ostream &raw_ostream::write_escaped(StringRef Str, *this << '\\' << '"'; break; default: - if (std::isprint(c)) { + if (isPrint(c)) { *this << c; break; } @@ -436,7 +436,7 @@ raw_ostream &raw_ostream::operator<<(const FormattedBytes &FB) { // Print the ASCII char values for each byte on this line for (uint8_t Byte : Line) { - if (isprint(Byte)) + if (isPrint(Byte)) *this << static_cast<char>(Byte); else *this << '.'; diff --git a/lib/Support/regengine.inc b/lib/Support/regengine.inc index 62d8c267f22..41787aff124 100644 --- a/lib/Support/regengine.inc +++ b/lib/Support/regengine.inc @@ -1013,7 +1013,7 @@ pchar(int ch) { static char pbuf[10]; - if (isprint(ch) || ch == ' ') + if (isPrint(ch) || ch == ' ') (void)snprintf(pbuf, sizeof pbuf, "%c", ch); else (void)snprintf(pbuf, sizeof pbuf, "\\%o", ch); |