diff options
author | uzhas <uzhas@ydb.tech> | 2023-11-16 16:04:50 +0300 |
---|---|---|
committer | uzhas <uzhas@ydb.tech> | 2023-11-16 17:46:46 +0300 |
commit | 46f0c0079bb50609d2eeb6586642bcf114fc5239 (patch) | |
tree | 84e4e4978d57fe5de321ba69bf9d0c290de60a66 /contrib/go/_std_1.20/src/unicode/digit.go | |
parent | 73045e389397816cc2bdd6cd7818b4bce427b265 (diff) | |
download | ydb-46f0c0079bb50609d2eeb6586642bcf114fc5239.tar.gz |
enable ya make for go projects
Diffstat (limited to 'contrib/go/_std_1.20/src/unicode/digit.go')
-rw-r--r-- | contrib/go/_std_1.20/src/unicode/digit.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/go/_std_1.20/src/unicode/digit.go b/contrib/go/_std_1.20/src/unicode/digit.go new file mode 100644 index 0000000000..53171b3969 --- /dev/null +++ b/contrib/go/_std_1.20/src/unicode/digit.go @@ -0,0 +1,13 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package unicode + +// IsDigit reports whether the rune is a decimal digit. +func IsDigit(r rune) bool { + if r <= MaxLatin1 { + return '0' <= r && r <= '9' + } + return isExcludingLatin(Digit, r) +} |