mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +00:00
StringUtil: Move IsPrintableCharacter() into Common namespace
This commit is contained in:
parent
a9f1edeb61
commit
21df3ca572
9 changed files with 21 additions and 18 deletions
|
@ -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:
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue