| Age | Commit message (Collapse) | Author |
|
Doesn't make a lot of sense to have a function that gives the string
representation for a string.
|
|
An identical implementation is used by IniFile, so move those functions
to StringUtil. A future commit will modify IniFile to use them.
|
|
|
|
|
|
codecvt_utf8<wchar_t> to convert a UTF16 wstring to a UTF8 string.
|
|
std::u16string, and pass it into CodeToUTF8 with the 'from' parameter being "UTF-16BE", rather than manually performing the big endian to little endian encoding.
|
|
UTF16BEToUTR8 method.
|
|
|
|
No code is relying on this unexplained null byte check, since
the only code that calls UTF16ToUTF8 on non-Windows systems
is UTF16BEToUTF8, which explicitly strips null bytes.
|
|
The earlier code always tried to use TitleDatabase for getting
title names, but that didn't work for disc-based games, because
there was no way to get the maker ID.
|
|
This class is similar to the BannerLoaderWii class that was
removed in ee694e32.
|
|
|
|
Updated version of #47. Android should support to_string now that
we use a modern version of libc++ when building.
|
|
Simpler usage.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Prevents path traversal without needing an absolute path
function, and also improves accuracy (character sequences
like ../ appear to have no special meaning in IOS).
This removes the creation and usage of /sys/replace,
because the new escapes are too complicated to all
be representable in its format and because no other
NAND handling software seems to use /sys/replace.
|
|
|
|
This is needed to keep compatibility with old configuration files which
didn't store booleans as booleans, but as floats/doubles.
|
|
|
|
|
|
Generates a string like the following from a binary blob:
000000: 00 00 04 74 79 70 65 00 09 61 70 70 2d 73 74 61 ...type..app-sta
000010: 72 74 rt
|
|
|
|
|
|
not the variable name
|
|
IniFile: Fix floating point number locale issues.
|
|
|
|
reorder, sign-compare, pessimizing-move
|
|
of a system-specific one.
|
|
|
|
|
|
|
|
The Windows implementations of CharArrayFromFormatV() and
StringFromFormat() use the "C"/".1252" locale instead of the user
locale (using _vsnprintf_l). On non-Windows, the user locale was used.
This leads to bugs on non-Windows: the Overclock parameter was
serialised with the user locale ("0,279322" in some locale) and was
interpreted back as "0" (because the C locale is used for parsing the
string).
Make non-Windows CharArrayFromFormatV() and StringFromFormat()
consistent with their Windows counterpart.
The locale code is not enables for Android:: uselocale is only
available since API 21 and API 21 only supports C and C.UTF-8.
|
|
The API is cleaner (no more magic default parameter) and more
extensible like this.
|
|
Mostly small changes, like capitalization and spelling
|
|
Since %f isn't used anymore in the shader generators, these can go.
|
|
|
|
Prior to this change, it was possible to cause an infinite loop by making the string to be replaced and the replacing string the same thing.
e.g.
std::string some_str = "test";
ReplaceAll(some_str, "test", "test");
This also changes the replacing in a way that doesn't require starting from the beginning of the string on each replacement iteration.
|
|
|
|
We should be checking errno against ERANGE.
|
|
Also changes some function params, but this is ok.
Some simplifications were also able to be made (ie. killing off strcmps with ==, etc).
|
|
Also moved && and || to ends of lines instead of start.
Fixed misc vertical alignments and some { needed newlining.
|
|
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
|
|
detected by this change).
|
|
|