eOn client
Long-timescale dynamics: aKMC, NEB, parallel replica
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
StringHelpers.hpp
Go to the documentation of this file.
1
/*
2
** This file is part of eOn.
3
**
4
** SPDX-License-Identifier: BSD-3-Clause
5
**
6
** Copyright (c) 2010--present, eOn Development Team
7
** All rights reserved.
8
**
9
** Repo:
10
** https://github.com/TheochemUI/eOn
11
*/
12
#pragma once
13
14
#include <optional>
15
#include <regex>
16
17
#include "
Matter.h
"
18
#include "
Parameters.h
"
19
20
namespace
eonc
{
21
22
namespace
helpers
{
28
template
<
typename
T>
29
std::vector<T>
30
get_val_from_string
(std::string_view line,
31
std::optional<size_t> nelements = std::nullopt);
39
std::vector<std::string>
get_split_strings
(std::string_view line);
46
bool
isNumber
(std::string_view token);
47
}
// namespace helpers
48
49
}
// namespace eonc
Matter.h
Parameters.h
eonc::helpers
Definition
EnvHelpers.cc:5
eonc::helpers::isNumber
bool isNumber(std::string_view token)
Figure out if a string has a number in it.
Definition
StringHelpers.cc:55
eonc::helpers::get_split_strings
std::vector< std::string > get_split_strings(std::string_view line)
Split a string into constituent strings.
Definition
StringHelpers.cc:48
eonc::helpers::get_val_from_string
std::vector< T > get_val_from_string(std::string_view line, std::optional< size_t > nelements)
Parse a string into values.
Definition
StringHelpers.cc:11
eonc
RAII resource manager for the ARTn C library with global synchronization.
Definition
ARTnSaddleSearch.cpp:19
include
eon
StringHelpers.hpp
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf