| Age | Commit message (Collapse) | Author |
|
|
|
IOS/KD: Add WiiLink as WC24 service provider by default
|
|
|
|
Now superseded by Common::FromChars
|
|
|
|
|
|
|
|
|
|
|
|
|
|
There's nothing really about this that would need to constrain it to
only std::string instances.
|
|
Obsoletes these functions in favor of the standard member functions
added in C++20.
|
|
just use std::filesystem
|
|
CPUDetect: improve win/arm64 support
|
|
read brand_string on macos/arm64
remove unused flags
report family/model info instead of vendor name
|
|
StripWhitespace maintains old behavior
|
|
forward slashes on Windows.
|
|
Some of the functions in MappingCommon would be useful to use on
mobile in the future.
|
|
|
|
|
|
SPDX standardizes how source code conveys its copyright and licensing
information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX
tags are adopted in many large projects, including things like the Linux
kernel.
|
|
|
|
The control expression editor allows line breaks, but the serialization was
losing anything after the first line break (/r /n).
Instead of opting to encode them and decode them on serialization
(which I tried but was not safe, as it would lose /n written in the string by users),
I opted to replace them with a space.
|
|
CommandLineParse expects UTF-8 strings. (QApplication, on the
other hand, seems to be designed so that you can pass in the
char** argv untouched on Windows and get proper Unicode handling.)
|
|
Android: Use correct encoding when converting strings
|
|
Ridiculously long nicknames cause UI silliness, so 30 characters seems
like a reasonable limit, as it's the same as the forum.
|
|
The functions with "UTF" in the name use "modified UTF-8" rather
than the standard UTF-8 which Dolphin uses, at least according
to Oracle's documentation, so it is incorrect for us to use them.
This change fixes the problem by converting between UTF-8 and
UTF-16 manually instead of letting JNI do it for us.
|
|
This function does *not* always convert from UTF-16. It converts
from UTF-16 on Windows and UTF-32 on other operating systems.
Also renaming UTF8ToUTF16 for consistency, even though it
technically doesn't have the same problem since it only was
implemented on Windows.
|
|
Fix ActionReplay code to use this instead of prepending '0x' in front
|
|
|
|
Without included header build fails on gcc-10 as:
```
[ 13%] Building CXX object Source/Core/AudioCommon/CMakeFiles/audiocommon.dir/CubebUtils.cpp.o
In file included from ../../../../Source/Core/AudioCommon/CubebUtils.cpp:13:
../../../../Source/Core/Common/StringUtil.h: In function 'bool TryParse(const string&, T*)':
../../../../Source/Core/Common/StringUtil.h:84:20: error: 'numeric_limits' is not a member of 'std'
84 | if (value < std::numeric_limits<LimitsType>::min() ||
| ^~~~~~~~~~~~~~
```
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
Add a function that safely returns whether a character is printable
i.e. whether 0x20 <= c <= 0x7e is true.
This is done in several places in our codebase and it's easy to run
into undefined behaviour if the C version defined in <cctype>
is used instead of this one, since its behaviour is undefined
if the character is not representable as an unsigned char.
This fixes MemoryViewWidget.
|
|
|
|
|
|
|
|
|
|
|
|
Makes the enum values strongly-typed and prevents the identifiers from
polluting the PowerPC namespace. This also cleans up the parameters of
some functions where we were accepting an ambiguous int type and
expecting the correct values to be passed in.
Now those parameters accept a PowerPC::CPUCore type only, making it
immediately obvious which values should be passed in. It also turns out
we were storing these core types into other structures as plain ints,
which have also been corrected.
As this type is used directly with the configuration code, we need to
provide our own overloaded insertion (<<) and extraction (>>) operators
in order to make it compatible with it. These are fairly trivial to
implement, so there's no issue here.
A minor adjustment to TryParse() was required, as our generic function
was doing the following:
N tmp = 0;
which is problematic, as custom types may not be able to have that
assignment performed (e.g. strongly-typed enums), so we change this to:
N tmp;
which is sufficient, as the value is attempted to be initialized
immediately under that statement.
|
|
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.
|
|
It calls UTF16ToUTF8 on Windows, so it should come after UTF16ToUTF8.
|
|
This isn't needed anymore now that the global C++ locale isn't
set to the classic locale.
|
|
Some locales use non-breaking spaces as separators, so getting the
encoding right is important. If DolphinWX gets a string that isn't
valid UTF-8, it flat out won't display the string.
|
|
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.
|
|
|
|
|
|
|