(s []byte, offset_c int)
| 76 | } |
| 77 | |
| 78 | func char_to_byte_offset(s []byte, offset_c int) (offset_b int) { |
| 79 | for offset_b = 0; offset_c > 0 && offset_b < len(s); offset_b++ { |
| 80 | if utf8.RuneStart(s[offset_b]) { |
| 81 | offset_c-- |
| 82 | } |
| 83 | } |
| 84 | return offset_b |
| 85 | } |
| 86 | |
| 87 | func xdg_home_dir() string { |
| 88 | xdghome := os.Getenv("XDG_CONFIG_HOME") |
no outgoing calls
no test coverage detected