stormbrew / cloudbridge

Daemon for zero-configuration management of a heterogeneous cluster of backend web servers and the accompanying libraries.

This URL has Read+Write access

cloudbridge / util.hpp
100644 13 lines (10 sloc) 0.338 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef __UTIL_GUARD__
#define __UTIL_GUARD__
 
#include <climits>
#include <string>
#include <list>
#include <vector>
 
std::vector<std::string> split(const std::string &str, const std::string &split_by, unsigned int max_count);
std::vector<unsigned char> sha1(const std::string &str);
std::string sha1_str(const std::string &str);
 
#endif