mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
StringUtil: Move IsPrintableCharacter() into Common namespace
This commit is contained in:
@ -168,7 +168,7 @@ void FilesystemWidget::PopulateDirectory(int partition_id, QStandardItem* root,
|
||||
for (u32 i = 0; i < 4; i++)
|
||||
{
|
||||
char c = static_cast<char>(title_id.value() >> 8 * (3 - i));
|
||||
if (IsPrintableCharacter(c))
|
||||
if (Common::IsPrintableCharacter(c))
|
||||
text += QLatin1Char(c);
|
||||
else
|
||||
text += QLatin1Char('.');
|
||||
|
@ -495,8 +495,8 @@ QString MemoryViewWidget::ValueToString(const Core::CPUThreadGuard& guard, u32 a
|
||||
case Type::ASCII:
|
||||
{
|
||||
const char value = accessors->ReadU8(guard, address);
|
||||
return IsPrintableCharacter(value) ? QString{QChar::fromLatin1(value)} :
|
||||
QString{QChar::fromLatin1('.')};
|
||||
return Common::IsPrintableCharacter(value) ? QString{QChar::fromLatin1(value)} :
|
||||
QString{QChar::fromLatin1('.')};
|
||||
}
|
||||
case Type::Hex16:
|
||||
{
|
||||
|
Reference in New Issue
Block a user