| 
    libnick 2025.10.0
    
   A cross-platform base for native Nickvision applications. 
   | 
 
Go to the source code of this file.
Namespaces | |
| namespace | Nickvision | 
| namespace | Nickvision::Helpers | 
| namespace | Nickvision::Helpers::StringHelpers | 
Concepts | |
| concept | Nickvision::Helpers::StringHelpers::StringImplicitlyConstructible | 
Functions | |
| std::vector< std::byte > | Nickvision::Helpers::StringHelpers::decode (const std::string &base64) noexcept | 
| Converts a base64 encoded string into a list of bytes.   | |
| std::string | Nickvision::Helpers::StringHelpers::encode (const std::vector< std::byte > &bytes) noexcept | 
| Converts a list of bytes into a base64 encoded string.   | |
| bool | Nickvision::Helpers::StringHelpers::isValidUrl (const std::string &s) noexcept | 
| Gets whether or not the provided string is a valid url.   | |
| std::string | Nickvision::Helpers::StringHelpers::join (const std::vector< std::string > &values, const std::string &separator, bool separateLast=false) noexcept | 
| Concatenates the elements of a string list using the specified separator between each element.   | |
| std::string | Nickvision::Helpers::StringHelpers::lower (std::string s) noexcept | 
| Gets a fully lowercase string from the provided string.   | |
| std::string | Nickvision::Helpers::StringHelpers::newUuid () noexcept | 
| Generates a new uuid value.   | |
| std::string | Nickvision::Helpers::StringHelpers::newGuid () noexcept | 
| Generates a new guid value.   | |
| std::string | Nickvision::Helpers::StringHelpers::normalizeForFilename (const std::string &s, bool windowsOnly=false) noexcept | 
| Normalizes a string for use in a filename.   | |
| std::string | Nickvision::Helpers::StringHelpers::quote (const std::string &s) noexcept | 
| Quotes a string for use in a command line.   | |
| std::string | Nickvision::Helpers::StringHelpers::replace (std::string s, const std::string &toReplace, const std::string &replace) noexcept | 
| Replaces a substring within a string with a new string.   | |
| std::string | Nickvision::Helpers::StringHelpers::replace (std::string s, char toReplace, char replace) noexcept | 
| Replaces a character within a string with a new character.   | |
| std::vector< std::string > | Nickvision::Helpers::StringHelpers::splitArgs (std::string s) noexcept | 
| Splits a string based on argument delimiters.   | |
| std::string | Nickvision::Helpers::StringHelpers::str (const std::wstring &s) noexcept | 
| Converts the wstring to a string.   | |
| unsigned int | Nickvision::Helpers::StringHelpers::stoui (const std::string &s, size_t *idx=nullptr, int base=10) noexcept | 
| Converts a string to an unsigned int.   | |
| std::string | Nickvision::Helpers::StringHelpers::trim (const std::string &s) noexcept | 
| Trims whitespace form the beginning and end of a string.   | |
| std::string | Nickvision::Helpers::StringHelpers::trim (const std::string &s, char delimiter) noexcept | 
| Trims the delimiter character form the beginning and end of a string.   | |
| std::string | Nickvision::Helpers::StringHelpers::upper (std::string s) noexcept | 
| Gets a fully uppercase string from the provided string.   | |
| std::wstring | Nickvision::Helpers::StringHelpers::wstr (const std::string &s) noexcept | 
| Converts the string to a wstring.   | |
| template<StringImplicitlyConstructible T = std::string> | |
| std::vector< T > | Nickvision::Helpers::StringHelpers::split (const std::string &s, const std::string &delimiter, bool includeEmpty=true) noexcept | 
| Splits a string based on a delimiter.   | |
| template<StringImplicitlyConstructible T = std::string> | |
| std::vector< T > | Nickvision::Helpers::StringHelpers::split (const std::string &s, char delimiter, bool includeEmpty=true) noexcept | 
| Splits a string based on a delimiter.   | |
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at https://www.gnu.org/copyleft/gpl.html
Functions for working with strings.