MCPcopy Create free account
hub / github.com/InoriRus/Kyty / Clear

Method Clear

source/lib/Core/src/String.cpp:809–828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807}
808
809void String::Clear()
810{
811 // data->Lock();
812 // if (data->DecRef() == 0)
813 // {
814 // data->Unlock();
815 // delete data;
816 // } else
817 // {
818 // data->Unlock();
819 // }
820 if (m_data != nullptr)
821 {
822 m_data->Release();
823 m_data = nullptr;
824 }
825
826 m_data = new DataType(1, false);
827 (*m_data)[0] = U'\0';
828}
829
830char32_t& String::operator[](uint32_t index)
831{

Callers 4

testFunction · 0.45
test_UFunction · 0.45
testFunction · 0.45
test_UFunction · 0.45

Calls 1

ReleaseMethod · 0.45

Tested by 4

testFunction · 0.36
test_UFunction · 0.36
testFunction · 0.36
test_UFunction · 0.36