![]() |
Audacity 3.2.0
|
#include <algorithm>#include <cstring>#include <cwchar>#include <string>#include <string_view>#include <type_traits>#include <numeric>#include <wx/string.h>Go to the source code of this file.
Namespaces | |
| namespace | details |
Functions | |
| std::size_t | StringLength (const char str) |
| std::size_t | StringLength (const wchar_t str) |
| std::size_t | StringLength (const char *str) |
| std::size_t | StringLength (const wchar_t *str) |
| template<typename CharType , size_t N> | |
| std::size_t | StringLength (const CharType(&)[N]) |
| template<typename StringType > | |
| std::size_t | StringLength (const StringType &str) |
| template<template< typename, typename... > typename ContainerType, typename ResultType , typename SeparatorType , typename... Rest> | |
| ResultType | Join (const ContainerType< ResultType, Rest... > &container, const SeparatorType &separator) |
| STRING_UTILS_API std::string | ToLower (const std::string &str) |
| STRING_UTILS_API std::string | ToLower (const std::string_view &str) |
| STRING_UTILS_API std::string | ToLower (const char *str) |
| STRING_UTILS_API std::wstring | ToLower (const std::wstring &str) |
| STRING_UTILS_API std::wstring | ToLower (const std::wstring_view &str) |
| STRING_UTILS_API std::wstring | ToLower (const wchar_t *str) |
| STRING_UTILS_API wxString | ToLower (const wxString &str) |
| STRING_UTILS_API std::string | ToUpper (const std::string &str) |
| STRING_UTILS_API std::string | ToUpper (const std::string_view &str) |
| STRING_UTILS_API std::string | ToUpper (const char *str) |
| STRING_UTILS_API std::wstring | ToUpper (const std::wstring &str) |
| STRING_UTILS_API std::wstring | ToUpper (const std::wstring_view &str) |
| STRING_UTILS_API std::wstring | ToUpper (const wchar_t *str) |
| STRING_UTILS_API wxString | ToUpper (const wxString &str) |
| const char * | details::begin (const char *str) noexcept |
| const char * | details::end (const char *str) noexcept |
| const wchar_t * | details::begin (const wchar_t *str) noexcept |
| const wchar_t * | details::end (const wchar_t *str) noexcept |
| template<typename HayType , typename PrefixType > | |
| bool | IsPrefixed (const HayType &hay, const PrefixType &prefix) |
| template<typename HayType , typename PrefixType > | |
| bool | IsPrefixedInsensitive (const HayType &hay, const PrefixType &prefix) |
| bool IsPrefixed | ( | const HayType & | hay, |
| const PrefixType & | prefix | ||
| ) |
Definition at line 129 of file StringUtils.h.
References details::begin(), details::end(), and StringLength().
Referenced by audacity::cloud::audiocom::OAuthService::HandleLinkURI(), IsPrefixedInsensitive(), and TEST_CASE().
| bool IsPrefixedInsensitive | ( | const HayType & | hay, |
| const PrefixType & | prefix | ||
| ) |
Definition at line 146 of file StringUtils.h.
References IsPrefixed(), and ToLower().
Referenced by audacity::cloud::audiocom::OAuthService::HandleLinkURI(), and TEST_CASE().
| ResultType Join | ( | const ContainerType< ResultType, Rest... > & | container, |
| const SeparatorType & | separator | ||
| ) |
Definition at line 52 of file StringUtils.h.
References size, and StringLength().
Referenced by TranslatableString::operator+=(), and TEST_CASE().
|
inline |
Definition at line 29 of file StringUtils.h.
References str.
|
inline |
Definition at line 19 of file StringUtils.h.
Referenced by details::end(), IsPrefixed(), and Join().
| std::size_t StringLength | ( | const | CharType(&)[N] | ) |
Definition at line 40 of file StringUtils.h.
| std::size_t StringLength | ( | const StringType & | str | ) |
|
inline |
|
inline |
Definition at line 24 of file StringUtils.h.
| STRING_UTILS_API std::string ToLower | ( | const char * | str | ) |
Definition at line 21 of file StringUtils.cpp.
References str, ToLower(), audacity::ToUTF8(), and audacity::ToWXString().
| STRING_UTILS_API std::string ToLower | ( | const std::string & | str | ) |
Definition at line 11 of file StringUtils.cpp.
References str, ToLower(), audacity::ToUTF8(), and audacity::ToWXString().
Referenced by IsPrefixedInsensitive(), and ToLower().
| STRING_UTILS_API std::string ToLower | ( | const std::string_view & | str | ) |
Definition at line 16 of file StringUtils.cpp.
References str, ToLower(), audacity::ToUTF8(), and audacity::ToWXString().
| STRING_UTILS_API std::wstring ToLower | ( | const std::wstring & | str | ) |
Definition at line 26 of file StringUtils.cpp.
References str, ToLower(), audacity::ToWString(), and audacity::ToWXString().
| STRING_UTILS_API std::wstring ToLower | ( | const std::wstring_view & | str | ) |
Definition at line 31 of file StringUtils.cpp.
References str, ToLower(), audacity::ToWString(), and audacity::ToWXString().
| STRING_UTILS_API std::wstring ToLower | ( | const wchar_t * | str | ) |
Definition at line 36 of file StringUtils.cpp.
References str, ToLower(), audacity::ToWString(), and audacity::ToWXString().
| STRING_UTILS_API wxString ToLower | ( | const wxString & | str | ) |
| STRING_UTILS_API std::string ToUpper | ( | const char * | str | ) |
Definition at line 56 of file StringUtils.cpp.
References str, ToUpper(), audacity::ToUTF8(), and audacity::ToWXString().
| STRING_UTILS_API std::string ToUpper | ( | const std::string & | str | ) |
Definition at line 46 of file StringUtils.cpp.
References str, ToUpper(), audacity::ToUTF8(), and audacity::ToWXString().
Referenced by audacity::cloud::audiocom::sync::RemoteProjectSnapshot::CalculateKnownBlocks(), audacity::cloud::audiocom::sync::RemoteProjectSnapshot::CleanupOrphanBlocks(), audacity::cloud::audiocom::sync::LocalProjectSnapshot::ProjectBlocksLock::FillMissingBlocks(), audacity::cloud::audiocom::sync::RemoteProjectSnapshot::RemoteProjectSnapshot(), and ToUpper().
| STRING_UTILS_API std::string ToUpper | ( | const std::string_view & | str | ) |
Definition at line 51 of file StringUtils.cpp.
References str, ToUpper(), audacity::ToUTF8(), and audacity::ToWXString().
| STRING_UTILS_API std::wstring ToUpper | ( | const std::wstring & | str | ) |
Definition at line 61 of file StringUtils.cpp.
References str, ToUpper(), audacity::ToWString(), and audacity::ToWXString().
| STRING_UTILS_API std::wstring ToUpper | ( | const std::wstring_view & | str | ) |
Definition at line 66 of file StringUtils.cpp.
References str, ToUpper(), audacity::ToWString(), and audacity::ToWXString().
| STRING_UTILS_API std::wstring ToUpper | ( | const wchar_t * | str | ) |
Definition at line 71 of file StringUtils.cpp.
References str, ToUpper(), audacity::ToWString(), and audacity::ToWXString().
| STRING_UTILS_API wxString ToUpper | ( | const wxString & | str | ) |