aboutsummaryrefslogtreecommitdiff
path: root/common/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/util.cpp')
-rw-r--r--common/util.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/util.cpp b/common/util.cpp
index 8e0a2fd61f..62a1baf6ac 100644
--- a/common/util.cpp
+++ b/common/util.cpp
@@ -28,6 +28,7 @@
#define FORBIDDEN_SYMBOL_EXCEPTION_isspace
#define FORBIDDEN_SYMBOL_EXCEPTION_isupper
#define FORBIDDEN_SYMBOL_EXCEPTION_isprint
+#define FORBIDDEN_SYMBOL_EXCEPTION_ispunct
#include "common/util.h"
@@ -150,4 +151,10 @@ bool isPrint(int c) {
ENSURE_ASCII_CHAR(c);
return isprint((byte)c);
}
+
+bool isPunct(int c) {
+ ENSURE_ASCII_CHAR(c);
+ return ispunct((byte)c);
+}
+
} // End of namespace Common