blob: 4a842f82df11c091a18dde35c7ca8416bd3b11c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include "dict.h"
#include <string>
#include <vector>
#include <boost/regex.hpp>
#include <boost/algorithm/string/regex.hpp>
void Dict::AsVector(const WordID& id, std::vector<std::string>* results) const {
boost::algorithm::split_regex(*results, Convert(id), boost::regex("\\s\\|\\|\\|\\s"));
}
|