Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Teuchos_MatrixMarket_split.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Tpetra: Templated Linear Algebra Services Package
4 //
5 // Copyright 2008 NTESS and the Tpetra contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef __Teuchos_MatrixMarket_split_hpp
11 #define __Teuchos_MatrixMarket_split_hpp
12 
13 #include <string>
14 #include <vector>
15 
16 
17 namespace Teuchos {
18  namespace MatrixMarket {
19  namespace details {
20 
22  std::string
23  trim (const std::string& in);
24 
26  std::string
27  lowercase (const std::string& in);
28 
30  std::string
31  trim_and_lowercase (const std::string& in);
32 
46  std::vector<std::string>
47  split (const std::string& str,
48  const std::string& delimiters,
49  const size_t start=0);
50 
51  } // namespace details
52  } // namespace MatrixMarket
53 } // namespace Teuchos
54 
55 #endif // __Teuchos_MatrixMarket_split_hpp
std::string lowercase(const std::string &in)
Return lowercase version of the given string.
std::vector< std::string > split(const std::string &str, const std::string &delimiters, const size_t start)
Split the given string using the given set of delimiters.
std::string trim(const std::string &in)
Trim whitespace from both sides of the given string.
std::string trim_and_lowercase(const std::string &in)
Trim whitespace from both sides, and make lowercase.