mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-03 13:43:16 -04:00
The goutil that OpenCloud currently uses is one version from the release that adds FreeBSD support, this now compiles successfully on FreeBSD.
10 lines
333 B
Go
10 lines
333 B
Go
package byteutil
|
|
|
|
// IsNumChar returns true if the given character is a numeric, otherwise false.
|
|
func IsNumChar(c byte) bool { return c >= '0' && c <= '9' }
|
|
|
|
// IsAlphaChar returns true if the given character is a alphabet, otherwise false.
|
|
func IsAlphaChar(c byte) bool {
|
|
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')
|
|
}
|