PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
Namespaces | Functions
string_conversion.hpp File Reference

Implements a conversion function from a string to an arithmetic type. More...

#include "plssvm/detail/arithmetic_type_name.hpp"
#include "plssvm/detail/string_utility.hpp"
#include "plssvm/detail/type_traits.hpp"
#include "fast_float/fast_float.h"
#include "fmt/core.h"
#include <charconv>
#include <stdexcept>
#include <string>
#include <string_view>
#include <system_error>
#include <type_traits>
#include <vector>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 plssvm
 The main namespace containing all public API functions.
 
 plssvm::detail
 Namespace containing implementation details. Should not directly be used by users.
 

Functions

template<typename T , typename Exception = std::runtime_error, PLSSVM_REQUIRES((std::is_arithmetic_v< T >||std::is_same_v< remove_cvref_t< T >, std::string >)) >
plssvm::detail::convert_to (const std::string_view str)
 Converts the string str to a value of type T. More...
 
template<typename T >
plssvm::detail::extract_first_integer_from_string (std::string_view str)
 Extract the first integer from the given string str and converts it to T ignoring a potential sign. More...
 
template<typename T >
std::vector< T > plssvm::detail::split_as (const std::string_view str, const char delim=' ')
 Split the string str at the positions with delimiter delim and return the sub-strings converted to the type T. More...
 

Detailed Description

Implements a conversion function from a string to an arithmetic type.

Author
Alexander Van Craen
Marcel Breyer
License
This file is part of the PLSSVM project which is released under the MIT license. See the LICENSE.md file in the project root for full license information.