Logo ROOT  
Reference Guide
StringUtils.hxx
Go to the documentation of this file.
1/// \file ROOT/StringUtils.hxx
2/// \ingroup Base StdExt
3/// \author Jonas Rembser <jonas.rembser@cern.ch>
4/// \date 2021-08-09
5
6/*************************************************************************
7 * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. *
8 * All rights reserved. *
9 * *
10 * For the licensing terms see $ROOTSYS/LICENSE. *
11 * For the list of contributors see $ROOTSYS/README/CREDITS. *
12 *************************************************************************/
13
14#ifndef ROOT_StringUtils
15#define ROOT_StringUtils
16
17#include "ROOT/RStringView.hxx"
18
19#include <string>
20#include <vector>
21
22namespace ROOT {
23
24std::vector<std::string> Split(std::string_view str, std::string_view delims, bool skipEmpty = false);
25
26} // namespace ROOT
27
28#endif
basic_string_view< char > string_view
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.
std::vector< std::string > Split(std::string_view str, std::string_view delims, bool skipEmpty=false)
Splits a string at each character in delims.
Definition: StringUtils.cxx:23