blob: 3e857eeacc1fb2548b515c78f0b0ba490294e643 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include <string>
#include <vector>
#include <boost/algorithm/string.hpp>
namespace amunmt {
void Trim(std::string& s);
void Split(const std::string& line, std::vector<std::string>& pieces, const std::string del=" ");
std::string Join(const std::vector<std::string>& words, const std::string del=" ");
std::string Join(const std::vector<std::string>& words,
const std::vector<size_t>& align, const std::string del=" ");
}
|