librime: rime::strings Namespace Reference

| librime 1.2 Rime Input Method Engine, the core library

Enumerations | Functions
rime::strings Namespace Reference

## Enumerations
enum class | SplitBehavior { KeepToken , SkipToken }

## Functions
vector< string > | split (const string &str, const string &delim, SplitBehavior behavior)
vector< string > | split (const string &str, const string &delim)
template<typename Iter, typename T>
string | join (Iter start, Iter end, T &&delim)
template<typename C, typename T>
string | join (C &&container, T &&delim)
template<typename C, typename T>
string | join (std::initializer_list< C > &&container, T &&delim)

## Enumeration Type Documentation

## ◆ SplitBehavior

enum class rime::strings::SplitBehavior
| strong

Enumerator
KeepToken |
SkipToken |

## Function Documentation

## ◆ join() [1/3]

template<typename C, typename T>

string rime::strings::join | ( | C && | container,
|  | T && | delim )
| inline

## ◆ join() [2/3]

template<typename Iter, typename T>

string rime::strings::join | ( | Iter | start,
|  | Iter | end,
|  | T && | delim )

## ◆ join() [3/3]

template<typename C, typename T>

string rime::strings::join | ( | std::initializer_list< C > && | container,
|  | T && | delim )
| inline

## ◆ split() [1/2]

vector< string > rime::strings::split | ( | const string & | str,
|  | const string & | delim )

## ◆ split() [2/2]

vector< string > rime::strings::split | ( | const string & | str,
|  | const string & | delim,
|  | SplitBehavior | behavior )