1. 25 Jul, 2018 1 commit
  2. 24 Jul, 2018 16 commits
  3. 23 Jul, 2018 20 commits
  4. 22 Jul, 2018 3 commits
    • Lioncash's avatar
      string_util: Get rid of separate resize() in CPToUTF16(), UTF16ToUTF8(),... · 9d331221
      Lioncash authored
      string_util: Get rid of separate resize() in CPToUTF16(), UTF16ToUTF8(), CodeToUTF8() and UTF8ToUTF16()
      
      There's no need to perform the resize separately here, since the
      constructor allows presizing the buffer.
      
      Also move the empty string check before the construction of the string
      to make the early out more straightforward.
      9d331221
    • Lioncash's avatar
      string_util: Use emplace_back() in SplitString() instead of push_back() · 26a157cd
      Lioncash authored
      This is equivalent to doing:
      
      push_back(std::string(""));
      
      which is likely not to cause issues, assuming a decent std::string
      implementation with small-string optimizations implemented in its
      design, however it's still a little unnecessary to copy that buffer
      regardless. Instead, we can use emplace_back() to directly construct the
      empty string within the std::vector instance, eliminating any possible
      overhead from the copy.
      26a157cd
    • Lioncash's avatar
      string_util: Remove unnecessary std::string instance in TabsToSpaces() · cd46b267
      Lioncash authored
      We can just use the variant of std::string's replace() function that can
      replace an occurrence with N copies of the same character, eliminating
      the need to allocate a std::string containing a buffer of spaces.
      cd46b267