text
stringlengths 0
2.2M
|
---|
DISCLAIMED.
|
==============================================================================
|
*/
|
namespace juce
|
{
|
#if JUCE_WINDOWS || JUCE_LINUX || JUCE_BSD || JUCE_MAC
|
SystemTrayIconComponent::SystemTrayIconComponent()
|
{
|
addToDesktop (0);
|
}
|
SystemTrayIconComponent::~SystemTrayIconComponent()
|
{
|
}
|
#endif
|
} // namespace juce
|
/******************************************************************************
|
The MIT License(MIT)
|
Embedded Template Library.
|
https://github.com/ETLCPP/etl
|
ERROR: type should be string, got "https://www.etlcpp.com\n" |
Copyright(c) 2019 jwellbelove
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
of this software and associated documentation files(the "Software"), to deal
|
in the Software without restriction, including without limitation the rights
|
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
copies of the Software, and to permit persons to whom the Software is
|
furnished to do so, subject to the following conditions :
|
The above copyright notice and this permission notice shall be included in all
|
copies or substantial portions of the Software.
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
SOFTWARE.
|
******************************************************************************/
|
#include "unit_test_framework.h"
|
#include <string>
|
#include "etl/string.h"
|
#include "etl/wstring.h"
|
#include "etl/u16string.h"
|
#include "etl/u32string.h"
|
namespace
|
{
|
SUITE(test_make_string)
|
{
|
//*************************************************************************
|
template <typename T1, typename T2>
|
bool Equal(const T1& compare_text, const T2& text)
|
{
|
return (compare_text.size() == text.size()) &&
|
std::equal(text.begin(), text.end(), compare_text.begin());
|
}
|
//*************************************************************************
|
struct SetupFixture
|
{
|
};
|
//*************************************************************************
|
TEST_FIXTURE(SetupFixture, test_make_string_empty)
|
{
|
size_t length = strlen("");
|
auto ctext = etl::make_string("");
|
auto wtext = etl::make_string(L"");
|
auto u16text = etl::make_string(u"");
|
auto u32text = etl::make_string(U"");
|
CHECK_EQUAL(length, ctext.size());
|
CHECK_EQUAL(length, wtext.size());
|
CHECK_EQUAL(length, u16text.size());
|
CHECK_EQUAL(length, u32text.size());
|
CHECK(Equal(std::string(""), ctext));
|
CHECK(Equal(std::wstring(L""), wtext));
|
CHECK(Equal(std::u16string(u""), u16text));
|
CHECK(Equal(std::u32string(U""), u32text));
|
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.