Lines Matching refs:delimiter
23 const std::string& delimiter,
28 const std::string& delimiter) {
29 return Split(str, delimiter, true, true);
33 const std::string& delimiter,
35 return Split(str, delimiter, trim_whitespaces, true);
39 // delimiter.
42 const std::string& delimiter,
45 // delimiter. Both parts have all whitespaces trimmed off.
48 const std::string& delimiter) {
49 return SplitAtFirst(str, delimiter, true);
52 // The following overload returns false if the delimiter was not found in the
56 const std::string& delimiter,
62 const std::string& delimiter,
65 return SplitAtFirst(str, delimiter, left_part, right_part, true);
68 // Joins strings into a single string separated by |delimiter|.
70 std::string JoinRange(const std::string& delimiter,
78 result += delimiter;
85 std::string Join(const std::string& delimiter, const Container& strings) {
88 return JoinRange(delimiter, begin(strings), end(strings));
91 inline std::string Join(const std::string& delimiter,
93 return JoinRange(delimiter, strings.begin(), strings.end());
96 inline std::string Join(const std::string& delimiter,
99 return str1 + delimiter + str2;