Debian Codegraph @

packages/seacas/libraries/ioss/src/tokenize.h

raw
1 /*
2 * Copyright(C) 1999-2020, 2022, 2024 National Technology & Engineering Solutions
3 * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
4 * NTESS, the U.S. Government retains certain rights in this software.
5 *
6 * See packages/seacas/LICENSE for details
7 */
8 #pragma once
9
10 #include "ioss_export.h"
11
12 #include <string>
13 #include <vector>
14
15 namespace Ioss {
16 /**
17 * Take the 'str' argument and split it using the list of characters
18 * in separators as separators. Use tokens to return the result.
19 */
20 IOSS_EXPORT std::vector<std::string>
21 tokenize(const std::string &str, const std::string &separators, bool allow_empty = false);
22 } // namespace Ioss