|
DryChem 1.0.0
A generic, compile-time C++ toolbox with no dependencies for the modern computational chemistry project.
|
Namespaces | |
| namespace | details |
Classes | |
| struct | ci_char_traits |
| class | Tokenizer |
Typedefs | |
| using | ci_string = std::basic_string<char, ci_char_traits> |
| Type alias for case-insensitive strings. | |
Functions | |
| template<class OutputTraits, class InputTraits> | |
| constexpr std::basic_string< char, OutputTraits > | traits_cast (const std::basic_string< char, InputTraits > &input) noexcept |
| std::ostream & | operator<< (std::ostream &os, const std::basic_string< char, ci_char_traits > &str) |
| template<typename T, typename CharTraits = std::char_traits<char>> | |
| auto | lexical_cast (const std::basic_string< char, CharTraits > &str) |
| template<typename TO, typename FROM, typename = std::enable_if_t<std::is_pointer_v<std::decay_t<FROM>>>> | |
| auto | lexical_cast (FROM &&str) |
| template<typename CharTraits> | |
| constexpr bool | foundSubstr (const std::basic_string< char, CharTraits > &stringToFind, const std::basic_string< char, CharTraits > &stringToSearch) noexcept |
| template<typename CharTraits> | |
| constexpr bool | foundSubstr (char stringToFind, const std::basic_string< char, CharTraits > &stringToSearch) noexcept |
| template<typename CharTraits> | |
| constexpr bool | foundSubstr (const char *stringToFind, const std::basic_string< char, CharTraits > &stringToSearch) noexcept |
| template<typename CharTraits, typename... TArgs> | |
| Tokenizer (const std::basic_string< char, CharTraits > &, TArgs...) -> Tokenizer< CharTraits > | |
| using CppUtils::Strings::ci_string = std::basic_string<char, ci_char_traits> |
|
constexprnoexcept |
A simple function for casting one char_trait to another
| input | - An input string with some char_traits |
|
inline |
Allow for case-insensitive strings to be inserted into a ouput stream like a normal std::string.
| os | - A character output stream |
| str | - The string to be inserted |
|
inline |
A simple function for converting a string to another type.
| T | - The type to convert the input string to, must be input streamable |
| CharTraits | - A trait allowing for either case-sensitive or case-insensitive searches |
| str | - The input string to convert |
References CppUtils::Errors::printErrorMessage().
Referenced by lexical_cast(), and CppUtils::Strings::Tokenizer< CharTraits >::split().
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
References lexical_cast().
|
constexprnoexcept |
A predicate wrapper for std::basic_string<char, CharTraits>::find() that returns whether the substring stringToFind was found in stringToSearch.
| CharTraits | - A trait allowing for either case-sensitive or case-insensitive searches |
| stringToFind | - The string/substring to seach for |
| stringToSearch | - The string to seach through |
Referenced by CppUtils::Strings::Tokenizer< CharTraits >::isDelimiter(), and CppUtils::Strings::Tokenizer< CharTraits >::nextToken().
|
constexprnoexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
constexprnoexcept |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| CppUtils::Strings::Tokenizer | ( | const std::basic_string< char, CharTraits > & | , |
| TArgs... | ) -> Tokenizer< CharTraits > |
Declaration guide for the Tokenizer<> class template so we can still deduce the character traits when the other arguments are passed as character arrays.
| CharTraits | - The character traits we are trying to deduce |
| ...TArgs | - The types of delimiters |