[#316] locode: Define UN/LOCODE table data types
Define the data types needed to work with LOCODE's in NeoFS (country code, location code, coordinates). Implement string parsers for new types. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
137ef25d3e
commit
0be35859ed
4 changed files with 268 additions and 0 deletions
9
pkg/util/locode/column/util.go
Normal file
9
pkg/util/locode/column/util.go
Normal file
|
@ -0,0 +1,9 @@
|
|||
package locodecolumn
|
||||
|
||||
func isDigit(sym uint8) bool {
|
||||
return sym >= '0' && sym <= '9'
|
||||
}
|
||||
|
||||
func isUpperAlpha(sym uint8) bool {
|
||||
return sym >= 'A' && sym <= 'Z'
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue