MCPcopy Create free account
hub / github.com/comaps/comaps / JoinStrings

Function JoinStrings

libs/base/string_utils.hpp:707–721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705
706template <typename Iterator, typename Delimiter>
707typename std::iterator_traits<Iterator>::value_type JoinStrings(Iterator begin, Iterator end,
708 Delimiter const & delimiter)
709{
710 if (begin == end)
711 return {};
712
713 auto result = *begin++;
714 for (Iterator it = begin; it != end; ++it)
715 {
716 result += delimiter;
717 result += *it;
718 }
719
720 return result;
721}
722
723template <typename Container, typename Delimiter>
724typename Container::value_type JoinStrings(Container const & container, Delimiter const & delimiter)

Callers 15

GetStringMethod · 0.85
ProcessCoastlineMethod · 0.85
EditorDialogMethod · 0.85
GetLocalLanguageCodesMethod · 0.85
GetLocalizedFullNameMethod · 0.85
FillDetailsFunction · 0.85
ToStringMethod · 0.85
GetResultTypeFunction · 0.85
FeatureInfoDialogMethod · 0.85

Calls 2

beginFunction · 0.70
endFunction · 0.70

Tested by

no test coverage detected