1. 23 May, 2019 3 commits
    • Lioncash's avatar
      common/file_util: Make ReadFileToString and WriteStringToFile consistent · 2b1fcc8a
      Lioncash authored
      Makes the parameter ordering consistent, and also makes the filename
      parameter a std::string. A std::string would be constructed anyways with
      the previous code, as IOFile's only constructor with a filepath is one
      taking a std::string.
      
      We can also make WriteStringToFile's string parameter utilize a
      std::string_view for the string, making use of our previous changes to
      IOFile.
      2b1fcc8a
    • Lioncash's avatar
      common/file_util: Remove unnecessary c_str() calls · e3b25399
      Lioncash authored
      The file stream open functions have supported std::string overloads
      since C++11, so we don't need to use c_str() here. Same behavior, less
      code.
      e3b25399
    • Lioncash's avatar
      common/file_util: Make IOFile's WriteString take a std::string_view · 8cd3d9be
      Lioncash authored
      We don't need to force the usage of a std::string here, and can instead
      use a std::string_view, which allows writing out other forms of strings
      (e.g. C-style strings) without any unnecessary heap allocations.
      8cd3d9be
  2. 22 May, 2019 1 commit
  3. 21 May, 2019 4 commits
  4. 20 May, 2019 11 commits
  5. 19 May, 2019 21 commits