mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
helpers: rework new random-functions to get the code more reuseable
* introduceand use LOGODIR_TMP (storage dir for webchannel logos)
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2d3f66aa39
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-09-18 (Tue, 18 Sep 2018)
Origin message was:
------------------
- helpers: rework new random-functions to get the code more reuseable
* introduceand use LOGODIR_TMP (storage dir for webchannel logos)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -163,8 +163,9 @@ std::string readFile(std::string file);
|
||||
std::string iso_8859_1_to_utf8(std::string &str);
|
||||
bool utf8_check_is_valid(const std::string &str);
|
||||
|
||||
std::string genTmpName(std::string suffix,unsigned int length);
|
||||
std::string dlTmpName(std::string url);
|
||||
std::string randomString(unsigned int length = 10);
|
||||
std::string randomFile(std::string suffix = "tmp", std::string directory = "/tmp", unsigned int length = 10);
|
||||
std::string downloadUrlToRandomFile(std::string url, std::string directory = "/tmp", unsigned int length = 10);
|
||||
|
||||
// curl
|
||||
struct MemoryStruct {
|
||||
|
Reference in New Issue
Block a user