diff options
-rw-r--r-- | lib/byte.go | 7 |
1 files changed, 7 insertions, 0 deletions
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 +} |