File MiscHelpers.h

namespace podio
namespace utils

Functions

inline std::vector<std::string> sortAlphabeticaly(std::vector<std::string> strings)

Sort the input vector of strings alphabetically, case insensitive.

Parameters:

strings – The strings that should be sorted alphabetically

Returns:

A vector of strings sorted alphabetically, case insensitive

inline auto splitString(const std::string_view str, const char delim)

Split a string (view) at the delimiter and return a range of views.

Parameters:
  • str – The string to split

  • delim – The delimeter at which to split

Returns:

A range of views into the original view