Audacity 3.2.0
StringUtils.cpp
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: GPL-2.0-or-later
3 * SPDX-FileName: StringUtils.cpp
4 * SPDX-FileContributor: Dmitry Vedenko
5 */
6
7#include "StringUtils.h"
8
9#include "CodeConversions.h"
10
11std::string ToLower(const std::string& str)
12{
14}
15
16std::string ToLower(const std::string_view& str)
17{
19}
20
21std::string ToLower(const char* str)
22{
24}
25
26std::wstring ToLower(const std::wstring& str)
27{
29}
30
31std::wstring ToLower(const std::wstring_view& str)
32{
34}
35
36std::wstring ToLower(const wchar_t* str)
37{
39}
40
41wxString ToLower(const wxString& str)
42{
43 return str.Lower();
44}
45
46std::string ToUpper(const std::string& str)
47{
49}
50
51std::string ToUpper(const std::string_view& str)
52{
54}
55
56std::string ToUpper(const char* str)
57{
59}
60
61std::wstring ToUpper(const std::wstring& str)
62{
64}
65
66std::wstring ToUpper(const std::wstring_view& str)
67{
69}
70
71std::wstring ToUpper(const wchar_t* str)
72{
74}
75
76wxString ToUpper(const wxString& str)
77{
78 return str.Upper();
79}
Declare functions to perform UTF-8 to std::wstring conversions.
#define str(a)
std::string ToLower(const std::string &str)
Definition: StringUtils.cpp:11
std::string ToUpper(const std::string &str)
Definition: StringUtils.cpp:46
std::string ToUTF8(const std::wstring &wstr)
std::wstring ToWString(const std::string &str)
wxString ToWXString(const std::string &str)