MCPcopy Create free account
hub / github.com/Debian/dcs / order

Function order

dpkgversion/dpkgversion.go:39–53  ·  view source on GitHub ↗
(r rune)

Source from the content-addressed store, hash-verified

37}
38
39func order(r rune) int {
40 if cisdigit(r) {
41 return 0
42 }
43 if cisalpha(r) {
44 return int(r)
45 }
46 if r == '~' {
47 return -1
48 }
49 if int(r) != 0 {
50 return int(r) + 256
51 }
52 return 0
53}
54
55func verrevcmp(a string, b string) int {
56 i := 0

Callers 1

verrevcmpFunction · 0.85

Calls 2

cisdigitFunction · 0.85
cisalphaFunction · 0.85

Tested by

no test coverage detected