// EscapeBusAddressValue implements a requirement to escape the values // in D-Bus server addresses, as defined by the D-Bus specification at // https://dbus.freedesktop.org/doc/dbus-specification.html#addresses. func EscapeBusAddressValue(val string) string { … } // UnescapeBusAddressValue unescapes values in D-Bus server addresses, // as defined by the D-Bus specification at // https://dbus.freedesktop.org/doc/dbus-specification.html#addresses. func UnescapeBusAddressValue(val string) (string, error) { … } // hexchar returns an octal representation of a n, where n < 16. // For invalid values of n, the function panics. func hexchar(n byte) byte { … } // needsEscape tells if a byte is NOT one of optionally-escaped bytes. func needsEscape(c byte) bool { … } // strNeedsEscape tells how many bytes in the string need escaping. func strNeedsEscape(val string) int { … }