aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/StyleContext.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-05-20 07:34:07 +0000
committernyamatongwe <unknown>2002-05-20 07:34:07 +0000
commit94b85e1fad1ca53b56fa1e1d41c5627849603b27 (patch)
tree47fb5a85c3f1a491576ae9b06af25016631be14d /src/StyleContext.h
parent01629f9e76ae6614b54631f3dbabad7301ddda27 (diff)
downloadscintilla-mirror-94b85e1fad1ca53b56fa1e1d41c5627849603b27.tar.gz
Added a Match method to Accessor to make it easy to check for strings in a document. Moved IsASpaceOrTab into StyleContext header.
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');
}