Skip to content

Commit

Permalink
make beautifyFileSize public
Browse files Browse the repository at this point in the history
This general function will be useful in other kiwix apps
  • Loading branch information
juuz0 committed Jul 19, 2023
1 parent a4d207a commit eb70f01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions include/tools.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,5 +216,10 @@ std::map<std::string, std::string> getNetworkInterfaces();
*/
std::string getBestPublicIp();

/** Converts file size to human understandable format
* This function will convert a number to its equivalent size using units.
*/
std::string beautifyFileSize(uint64_t number);

}
#endif // KIWIX_TOOLS_H
1 change: 0 additions & 1 deletion src/tools/stringTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
namespace kiwix
{
std::string beautifyInteger(uint64_t number);
std::string beautifyFileSize(uint64_t number);
void printStringInHexadecimal(const char* s);
void printStringInHexadecimal(icu::UnicodeString s);
void stringReplacement(std::string& str,
Expand Down

0 comments on commit eb70f01

Please sign in to comment.