mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-27 11:43:49 +00:00
a143ef9b38
Summary: Change namespace from leveldb to rocksdb. This allows a single application to link in open-source leveldb code as well as rocksdb code into the same process. Test Plan: compile rocksdb Reviewers: emayanke Reviewed By: emayanke CC: leveldb Differential Revision: https://reviews.facebook.net/D13287
24 lines
401 B
C++
24 lines
401 B
C++
// Copyright (c) 2013 Facebook.
|
|
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace rocksdb {
|
|
|
|
using namespace std;
|
|
using std::string;
|
|
using std::vector;
|
|
using std::stringstream;
|
|
|
|
vector<string> stringSplit(string arg, char delim) {
|
|
vector<string> splits;
|
|
stringstream ss(arg);
|
|
string item;
|
|
while(getline(ss, item, delim)) {
|
|
splits.push_back(item);
|
|
}
|
|
return splits;
|
|
}
|
|
}
|