filenames_windows.go 455 B

12345678910111213141516171819
  1. // Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file).
  2. // All rights reserved. Use of this source code is governed by an MIT-style
  3. // license that can be found in the LICENSE file.
  4. package files
  5. import (
  6. "path/filepath"
  7. "code.google.com/p/go.text/unicode/norm"
  8. )
  9. func normalizedFilename(s string) string {
  10. return norm.NFC.String(filepath.ToSlash(s))
  11. }
  12. func nativeFilename(s string) string {
  13. return filepath.FromSlash(s)
  14. }