mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 15:14:59 -06:00
Code deduplication GetQuotedString()
Moved single function GetQuotedString() to MyString Signed-off-by: Sergey G. Brester <info@sebres.de> Reviewed-by: Tino Reichardt <milky-7zip@mcmilk.de>
This commit is contained in:
@@ -1803,3 +1803,13 @@ FString us2fs(const wchar_t *s)
|
||||
}
|
||||
|
||||
#endif // USE_UNICODE_FSTRING
|
||||
|
||||
// ----------------------------------------
|
||||
|
||||
UString GetQuotedString(const UString &s)
|
||||
{
|
||||
UString s2 ('\"');
|
||||
s2 += s;
|
||||
s2 += '\"';
|
||||
return s2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user