package main import ( "regexp" "strings" ) // AllCaps is a regex to test if a string identifier is made of // all upper case letters. var allCaps = regexp.MustCompile("^[A-Z0-9]+$") // popCount counts number of bits 'set' in mask. func popCount(mask uint) uint { m := uint32(mask) n := uint(0) for i := uint32(0); i < 32; i++ { if m&(1<