Skip to content

Commit 1a5677e

Browse files
committed
Removal of old includes.
1 parent 9eaa875 commit 1a5677e

File tree

143 files changed

+223
-711
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+223
-711
lines changed

source/code/core/collections/public/ice/span.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// Copyright 2022 - 2025, Dandielo <[email protected]>
1+
/// Copyright 2022 - 2026, Dandielo <[email protected]>
22
/// SPDX-License-Identifier: MIT
33

44
#pragma once

source/code/core/collections/public/ice/static_string.hxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,10 @@ namespace ice
178178
};
179179
}
180180

181+
template<ice::u32 Capacity = 12>
182+
constexpr auto stringid(ice::StaticString<Capacity, char> value) noexcept -> ice::StringID
183+
{
184+
return ice::stringid(value._data, value._size);
185+
}
186+
181187
} // namespace ice

source/code/core/collections/public/ice/string.hxx

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/// SPDX-License-Identifier: MIT
33

44
#pragma once
5+
#include <ice/stringid.hxx>
56
#include <ice/string/string_concepts.hxx>
67
#include <ice/string/readonly_operations.hxx>
78

@@ -73,6 +74,16 @@ namespace ice
7374
return ice::BasicString<char>{ buffer, size };
7475
}
7576

77+
template<typename CharT> requires ice::concepts::SupportedCharType<CharT>
78+
constexpr auto BasicString<CharT>::data_view() const noexcept -> ice::Data
79+
{
80+
return Data{
81+
.location = _data,
82+
.size = size().bytes(),
83+
.alignment = ice::align_of<CharType>
84+
};
85+
}
86+
7687
using String = ice::BasicString<char>;
7788
using WString = ice::BasicString<wchar_t>;
7889

@@ -85,20 +96,25 @@ namespace ice
8596
};
8697
}
8798

88-
template<typename CharT> requires ice::concepts::SupportedCharType<CharT>
89-
constexpr auto BasicString<CharT>::data_view() const noexcept -> ice::Data
90-
{
91-
return Data{
92-
.location = _data,
93-
.size = size().bytes(),
94-
.alignment = ice::align_of<CharType>
95-
};
96-
}
97-
9899
template<typename CharType, typename T> requires ice::concepts::RODataObject<T>
99100
constexpr auto string_from_data(T ro_data) noexcept -> ice::BasicString<CharType>
100101
{
101102
return ice::string_from_data<CharType>(ro_data, 0, ro_data.size.value);
102103
}
103104

105+
constexpr auto hash(ice::String value) noexcept -> ice::u64
106+
{
107+
return ice::hash(std::string_view{ value });
108+
}
109+
110+
constexpr auto hash32(ice::String value) noexcept -> ice::u32
111+
{
112+
return ice::hash32(std::string_view{ value });
113+
}
114+
115+
constexpr auto stringid(ice::String value) noexcept -> ice::StringID
116+
{
117+
return ice::stringid(value.data(), value.size().u64());
118+
}
119+
104120
} // namespace ice

source/code/core/collections/public/ice/string/heap_string.hxx

Lines changed: 0 additions & 5 deletions
This file was deleted.

source/code/core/collections/public/ice/string/heap_var_string.hxx

Lines changed: 0 additions & 48 deletions
This file was deleted.

source/code/core/collections/public/ice/string/impl/heap_var_string.inl

Lines changed: 0 additions & 192 deletions
This file was deleted.

0 commit comments

Comments
 (0)