query-parser: support phrase queries
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#ifndef __UTILS_HH__
|
||||
#define __UTILS_HH__
|
||||
@ -33,6 +34,17 @@ namespace Mux {
|
||||
*/
|
||||
std::string utf8_flatten (const std::string& str);
|
||||
|
||||
/**
|
||||
* Split a string in parts
|
||||
*
|
||||
* @param str a string
|
||||
* @param sepa the separator
|
||||
*
|
||||
* @return the parts.
|
||||
*/
|
||||
std::vector<std::string> split (const std::string& str,
|
||||
const std::string& sepa);
|
||||
|
||||
/**
|
||||
* Quote & escape a string
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user