D | Slice.h | 96 inline std::pair<const Slice, const Slice> split(const Slice s, size_t cut) { in split() argument 97 const size_t tmp = std::min(cut, s.size()); in split() 102 inline const Slice take(const Slice s, size_t cut) { in take() argument 103 return std::get<0>(split(s, cut)); in take() 107 inline const Slice drop(const Slice s, size_t cut) { in drop() argument 108 return std::get<1>(split(s, cut)); in drop()
|