188 template <uint64_t N>
192 template <uint64_t N>
197template <typename Child,
207template <
typename Child,
209 DoesContainInvalidContent<Capacity> DoesContainInvalidContentCall,
210 DoesContainInvalidCharacter<Capacity> DoesContainInvalidCharacterCall>
213SemanticString<Child, Capacity, DoesContainInvalidContentCall, DoesContainInvalidCharacterCall>::create_impl(
217 "Unable to create semantic string since the value \""
218 << value <<
"\" exceeds the maximum valid length of " << Capacity <<
".");
224 if (DoesContainInvalidCharacterCall(str)) {
226 "Unable to create semantic string since the value \"" << value
227 <<
"\" contains invalid characters as content");
231 if (DoesContainInvalidContentCall(str)) {
233 "Unable to create semantic string since the value \"" << value <<
"\" contains invalid content");
240template <
typename Child,
242 DoesContainInvalidContent<Capacity> DoesContainInvalidContentCall,
243 DoesContainInvalidCharacter<Capacity> DoesContainInvalidCharacterCall>
250 template create_impl<N>(value);
253template <
typename Child,
261 template create_impl<N>(value.unchecked_access().c_str());
264template <
typename Child,
271 return m_data.
size();
274template <
typename Child,
284template <
typename Child,
294template <
typename Child,
304template <
typename Child,
312 if (!temp.unchecked_code_units().insert(pos, str, 0, count)) {
314 "Unable to insert the value \""
315 << str.unchecked_access().c_str()
316 <<
"\" to the semantic string since it would exceed the maximum valid length of " << Capacity
321 if (DoesContainInvalidCharacterCall(temp)) {
323 "Unable to insert the value \""
324 << str.unchecked_access().c_str()
325 <<
"\" to the semantic string since it contains invalid characters as content.");
329 if (DoesContainInvalidContentCall(temp)) {
331 "Unable to insert the value \""
332 << str.unchecked_access().c_str()
333 <<
"\" to the semantic string since it would lead to invalid content.");
341template <
typename Child,
350template <
typename Child,
360template <
typename Child,
369template <
typename Child,
379template <
typename Child,
388template <
typename Child,
398template <
typename Child,
407template <
typename Child,
417template <
typename Child,
426template <
typename Child,
436template <
typename Child,
445template <
typename Child,