Update to v106r52 release.

byuu says:

I stand corrected, I managed to create and even larger diff than ever.
This one weighs in at 309KiB `>__>`

I'll have to create a changelog later, I'm too tired right now to go
through all of that.
This commit is contained in:
Tim Allen
2018-07-25 22:24:03 +10:00
parent f1a4576ac4
commit 22bd4b9277
171 changed files with 1725 additions and 1403 deletions

View File

@@ -2,7 +2,7 @@
namespace nall {
auto string::read(string_view filename) -> string {
auto string::read(view<string> filename) -> string {
#if !defined(_WIN32)
FILE* fp = fopen(filename, "rb");
#else
@@ -22,7 +22,7 @@ auto string::read(string_view filename) -> string {
return fclose(fp), result;
}
auto string::repeat(string_view pattern, uint times) -> string {
auto string::repeat(view<string> pattern, uint times) -> string {
string result;
while(times--) result.append(pattern.data());
return result;
@@ -82,7 +82,7 @@ auto string::size(int length, char fill) -> string& {
return *this;
}
auto slice(string_view self, int offset, int length) -> string {
auto slice(view<string> self, int offset, int length) -> string {
string result;
if(offset < 0) offset = self.size() - abs(offset);
if(offset >= 0 && offset < self.size()) {