1. 17 10月, 2013 3 次提交
    • K
      path2: Update for latest master · 6eade9e9
      Kevin Ballard 提交于
      Also fix some issues that crept into earlier commits during the conflict
      resoution for the rebase.
      6eade9e9
    • K
      path2: Remove some API functions · 0c7e8f7a
      Kevin Ballard 提交于
      Delete the following API functions:
      - set_dirname()
      - with_dirname()
      - set_filestem()
      - with_filestem()
      - add_extension()
      - file_path()
      
      Also change pop() to return a boolean instead of an owned copy of the
      old filename.
      0c7e8f7a
    • K
      path2: Update based on more review feedback · bab7eb20
      Kevin Ballard 提交于
      Standardize the is_sep() functions to be the same in both posix and
      windows, and re-export from path. Update extra::glob to use this.
      
      Remove the usage of either, as it's going away.
      
      Move the WindowsPath-specific methods out of WindowsPath and make them
      top-level functions of path::windows instead. This way you cannot
      accidentally write code that will fail to compile on non-windows
      architectures without typing ::windows anywhere.
      
      Remove GenericPath::from_c_str() and just impl BytesContainer for
      CString instead.
      
      Remove .join_path() and .push_path() and just implement BytesContainer
      for Path instead.
      
      Remove FilenameDisplay and add a boolean flag to Display instead.
      
      Remove .each_parent(). It only had one caller, so just inline its
      definition there.
      bab7eb20
  2. 16 10月, 2013 2 次提交
    • K
      path2: Adjust the API to remove all the _str mutation methods · d6d9b926
      Kevin Ballard 提交于
      Add a new trait BytesContainer that is implemented for both byte vectors
      and strings.
      
      Convert Path::from_vec and ::from_str to one function, Path::new().
      
      Remove all the _str-suffixed mutation methods (push, join, with_*,
      set_*) and modify the non-suffixed versions to use BytesContainer.
      d6d9b926
    • K
      path2: Replace the path module outright · 73d3d00e
      Kevin Ballard 提交于
      Remove the old path.
      Rename path2 to path.
      Update all clients for the new path.
      
      Also make some miscellaneous changes to the Path APIs to help the
      adoption process.
      73d3d00e
  3. 14 10月, 2013 1 次提交
  4. 11 10月, 2013 1 次提交
  5. 09 10月, 2013 1 次提交
  6. 01 10月, 2013 2 次提交
  7. 30 9月, 2013 1 次提交
  8. 22 9月, 2013 1 次提交
    • H
      std: merge rand::{Rng,RngUtil} with default methods. · fb923c7d
      Huon Wilson 提交于
      Also, documentation & general clean-up:
      - remove `gen_char_from`: better served by `sample` or `choose`.
      - `gen_bytes` generalised to `gen_vec`.
      - `gen_int_range`/`gen_uint_range` merged into `gen_integer_range` and
        made to be properly uniformly distributed. Fixes #8644.
      
      Minor adjustments to other functions.
      fb923c7d
  9. 19 9月, 2013 1 次提交
  10. 18 9月, 2013 2 次提交
  11. 17 9月, 2013 4 次提交
  12. 16 9月, 2013 1 次提交
    • K
      std::os: Use unicode for last_os_error() on Win32 · f3c88825
      klutzy 提交于
      FormatMessageA may return non-ascii message,
      which is encoded as system code page, not utf8.
      This may cause `assert!(is_utf8(v))` failure on
      some non-English machines.
      This patch replaces it with FormatMessageW,
      which returns utf-16 message.
      
      Fixes `make check-stage2-std` failure on my machine. :)
      f3c88825
  13. 15 9月, 2013 1 次提交
  14. 13 9月, 2013 3 次提交
  15. 09 9月, 2013 1 次提交
    • D
      rename `std::iterator` to `std::iter` · 6919cf5f
      Daniel Micay 提交于
      The trait will keep the `Iterator` naming, but a more concise module
      name makes using the free functions less verbose. The module will define
      iterables in addition to iterators, as it deals with iteration in
      general.
      6919cf5f
  16. 06 9月, 2013 1 次提交
  17. 05 9月, 2013 1 次提交
  18. 31 8月, 2013 1 次提交
  19. 28 8月, 2013 2 次提交
  20. 26 8月, 2013 1 次提交
    • K
      std: Add Win64 support · 05b6a2f5
      klutzy 提交于
      Some extern blobs are duplicated without "stdcall" abi,
      since Win64 does not use any calling convention.
      (Giving any abi to them causes llvm producing wrong bytecode.)
      05b6a2f5
  21. 23 8月, 2013 2 次提交
  22. 19 8月, 2013 1 次提交
  23. 16 8月, 2013 1 次提交
  24. 15 8月, 2013 1 次提交
    • K
      Add ToCStr method .with_c_str() · 03ef71e2
      Kevin Ballard 提交于
      .with_c_str() is a replacement for the old .as_c_str(), to avoid
      unnecessary boilerplate.
      
      Replace all usages of .to_c_str().with_ref() with .with_c_str().
      03ef71e2
  25. 10 8月, 2013 4 次提交