diff options
author | alexv-smirnov <alex@ydb.tech> | 2022-08-18 16:52:30 +0300 |
---|---|---|
committer | alexv-smirnov <alex@ydb.tech> | 2022-08-18 16:52:30 +0300 |
commit | c140abc954b61ab7d86af80bdeced01482d9971a (patch) | |
tree | c47d70fa3213240d5e0eb59787a5325782a360de /contrib/go/_std_1.18/src/unicode/digit.go | |
parent | 0ce07b9705ed20e3fce2759eae41496014ca4c33 (diff) | |
download | ydb-c140abc954b61ab7d86af80bdeced01482d9971a.tar.gz |
temp fix ydb oss sync config to unlock sync on /vendor dependency
Diffstat (limited to 'contrib/go/_std_1.18/src/unicode/digit.go')
-rw-r--r-- | contrib/go/_std_1.18/src/unicode/digit.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/go/_std_1.18/src/unicode/digit.go b/contrib/go/_std_1.18/src/unicode/digit.go new file mode 100644 index 0000000000..53171b3969 --- /dev/null +++ b/contrib/go/_std_1.18/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) +} |