diff options
| author | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-06 02:21:31 -0400 |
|---|---|---|
| committer | Andrew Gallant (Ocelot) <[email protected]> | 2012-05-06 02:21:31 -0400 |
| commit | 69ba151e407538b730dc31db3407cb61e7279160 (patch) | |
| tree | e8a347d62aca985f21ace26ff0f7a143fae44a89 /xgbgen/misc.go | |
| parent | 65ab69dd1e32e52fb075072df7d520229d643e0b (diff) | |
added documentation and did some slight restructuring. it's party time.
Diffstat (limited to 'xgbgen/misc.go')
| -rw-r--r-- | xgbgen/misc.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xgbgen/misc.go b/xgbgen/misc.go index 13c4cc2..85d788f 100644 --- a/xgbgen/misc.go +++ b/xgbgen/misc.go @@ -7,7 +7,7 @@ import ( // AllCaps is a regex to test if a string identifier is made of // all upper case letters. -var AllCaps = regexp.MustCompile("^[A-Z0-9]+$") +var allCaps = regexp.MustCompile("^[A-Z0-9]+$") // popCount counts number of bits 'set' in mask. func popCount(mask uint) uint { @@ -30,7 +30,7 @@ func pad(n int) int { // first letter of each chunk, and smushes'em back together. func splitAndTitle(s string) string { // If the string is all caps, lower it and capitalize first letter. - if AllCaps.MatchString(s) { + if allCaps.MatchString(s) { return strings.Title(strings.ToLower(s)) } |
