diff options
author | nyamatongwe <unknown> | 2002-05-20 07:34:07 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-05-20 07:34:07 +0000 |
commit | 94b85e1fad1ca53b56fa1e1d41c5627849603b27 (patch) | |
tree | 47fb5a85c3f1a491576ae9b06af25016631be14d /src/StyleContext.h | |
parent | 01629f9e76ae6614b54631f3dbabad7301ddda27 (diff) | |
download | scintilla-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.h | 4 |
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'); } |