From 94b85e1fad1ca53b56fa1e1d41c5627849603b27 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 20 May 2002 07:34:07 +0000 Subject: Added a Match method to Accessor to make it easy to check for strings in a document. Moved IsASpaceOrTab into StyleContext header. --- src/StyleContext.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/StyleContext.h') 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'); } -- cgit v1.2.3