nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge: Added contributing guidelines and link from readme
[nit.git]
/
lib
/
core
/
kernel.nit
diff --git
a/lib/core/kernel.nit
b/lib/core/kernel.nit
index
399487a
..
fe45072
100644
(file)
--- a/
lib/core/kernel.nit
+++ b/
lib/core/kernel.nit
@@
-699,6
+699,9
@@
universal Byte
return self
end
end
+
+ # Is `self` an ASCII whitespace ?
+ fun is_whitespace: Bool do return self == 0x7Fu8 or self <= 0x20u8
end
# Native integer numbers.