move FormatMoney to Text Utils

This commit is contained in:
Marco Antonio J. Costa
2025-10-08 05:36:37 -03:00
committed by majcosta
parent fee56e37e7
commit 0dd32c4670
3 changed files with 15 additions and 12 deletions
-12
View File
@@ -1261,18 +1261,6 @@ BOOLEAN DrawNumeralsToScreen(INT32 iNumber, INT8 bWidth, UINT16 usLocX, UINT16 u
return(TRUE);
}
static auto FormatMoney(INT32 iNumber) -> std::wstring
{
static std::wstringstream wss([] {
std::wstringstream ss;
ss.imbue(std::locale(""));
return ss;
}());
wss.str(L"");
wss << iNumber;
return L"$" + wss.str();
}
void SelectFaceRegionCallBack(MOUSE_REGION * pRegion, INT32 iReason )