From 4af3ded113719f61b7249a33358af01568098c5c Mon Sep 17 00:00:00 2001 From: siddharth Date: Sun, 6 Jun 2021 15:29:19 -0400 Subject: lib: add `ByteIsUpper` --- lib/byte.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/byte.go b/lib/byte.go index a29a7b0..68d07bf 100644 --- a/lib/byte.go +++ b/lib/byte.go @@ -32,3 +32,10 @@ func BytesInCommon(bbytes [][]byte) []byte { } return common } + +func ByteIsUpper(b byte) bool { + if 'A' <= b && b <= 'Z' { + return true + } + return false +} -- cgit v1.2.3