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

Implements utility functions for string manipulation and querying. More...

#include <string>
#include <string_view>
#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

bool plssvm::detail::starts_with (std::string_view str, std::string_view sv) noexcept
 Checks if the string str starts with the prefix sv. More...
 
bool plssvm::detail::starts_with (std::string_view str, char c) noexcept
 Checks if the string str starts with the character c. More...
 
bool plssvm::detail::ends_with (std::string_view str, std::string_view sv) noexcept
 Checks if the string str ends with the suffix sv. More...
 
bool plssvm::detail::ends_with (std::string_view str, char c) noexcept
 Checks if the string str ends with the character c. More...
 
bool plssvm::detail::contains (std::string_view str, std::string_view sv) noexcept
 Checks if the string str contains the string sv. More...
 
bool plssvm::detail::contains (std::string_view str, char c) noexcept
 Checks if the string str contains the character c. More...
 
std::string_view plssvm::detail::trim_left (std::string_view str) noexcept
 Returns a new std::string_view equal to str where all leading whitespaces are removed. More...
 
std::string_view plssvm::detail::trim_right (std::string_view str) noexcept
 Returns a new std::string_view equal to str where all trailing whitespaces are removed. More...
 
std::string_view plssvm::detail::trim (std::string_view str) noexcept
 Returns a new std::string_view equal to str where all leading and trailing whitespaces are removed. More...
 
std::string & plssvm::detail::replace_all (std::string &str, std::string_view what, std::string_view with)
 Replaces all occurrences of what with with in the string str. More...
 
std::string & plssvm::detail::to_lower_case (std::string &str)
 Convert the string str to its all lower case representation. More...
 
std::string plssvm::detail::as_lower_case (std::string_view str)
 Return a new string with the same content as str but all lower case. More...
 
std::string & plssvm::detail::to_upper_case (std::string &str)
 Convert the string str to its all upper case representation. More...
 
std::string plssvm::detail::as_upper_case (std::string_view str)
 Return a new string with the same content as str but all upper case. More...
 
std::vector< std::string_view > plssvm::detail::split (std::string_view str, char delim=' ')
 Split the string str at the positions with delimiter delim and return the sub-strings. More...
 

Detailed Description

Implements utility functions for string manipulation and querying.

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.