403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.48
Web Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
System : Windows NT DESKTOP-3H4FHQJ 10.0 build 19045 (Windows 10) AMD64
User : win 10 ( 0)
PHP Version : 8.2.12
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  D:/xamppkk/FileZillaFTP/source/interface/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : D:/xamppkk/FileZillaFTP/source/interface/OutputFormat.cpp
#include "stdafx.h"

#include "OutputFormat.h"


// This function adds delimiters by thousands base.
// Delimiter based on user locale settings.
CString makeUserFriendlyString(__int64 val)
{
	int delimLen = ::GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STHOUSAND, NULL, 0);

	CString delimStr;
	delimStr.Preallocate(delimLen);

	::GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STHOUSAND, delimStr.GetBuffer(), delimLen);
	delimStr.ReleaseBuffer();

	CString str;
	str.Format(_T("%I64d"), val);

	CString result_str;
	int dec_count = 2 - ((str.GetLength() + 2) % 3);
	for (int idx = 0; idx < str.GetLength(); idx++)
	{
		if (dec_count > 2)
		{
			dec_count = 0;
			result_str += delimStr;
		}
		result_str += str[idx];
		dec_count++;
	}
	return result_str;
}




Youez - 2016 - github.com/yon3zu
LinuXploit