aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/StyleContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/StyleContext.h')
-rw-r--r--src/StyleContext.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/StyleContext.h b/src/StyleContext.h
index 9e803c4a7..4c9352916 100644
--- a/src/StyleContext.h
+++ b/src/StyleContext.h
@@ -144,6 +144,10 @@ inline bool IsASpace(unsigned int ch) {
return (ch == ' ') || ((ch >= 0x09) && (ch <= 0x0d));
}
+inline bool IsASpaceOrTab(unsigned int ch) {
+ return (ch == ' ') || (ch == '\t');
+}
+
inline bool IsADigit(unsigned int ch) {
return (ch >= '0') && (ch <= '9');
}