acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
_impl_string_meta_data.h
1
//
2
// _string_base_meta_data.h
3
// acme
4
//
5
// Created by Camilo Sasuke Thomas Borregaard Soerensen on 08/06/22.
6
// Copyright (c) 2022 Camilo Sasuke Thomas Borregaard Soerensen. All rights reserved.
7
// as _impl_string_meta_data.h from _impl_string_base.h by
8
// camilo on 2023-03-07 15:05 BRT <3ThomasBorregaardSorensen!!
9
//
10
#pragma once
11
12
13
//template < prototype_character CHARACTER >
14
//inline void string_heap_data < CHARACTER > ::raw_set_character_count(::character_count countData)
15
//{
16
//
17
// if (this->natural_is_shared())
18
// {
19
//
20
// throw_exception(error_wrong_state, "invalid state");
21
//
22
// }
23
//
24
// auto storageCharacterCount = this->storage_character_count();
25
//
26
// if (countData > storageCharacterCount)
27
// {
28
//
29
// throw_exception(error_bad_argument, "count in bytes of character count exceeds storage size");
30
//
31
// }
32
//
33
// this->m_countData = countData;
34
//
35
//}
36
37
38
//template < prototype_character CHARACTER >
39
//inline void string_heap_data < CHARACTER > ::set_character_count(::character_count countData)
40
//{
41
//
42
// raw_set_character_count(countData);
43
//
44
//}
45
46
47
48
49
//template < prototype_character CHARACTER >
50
//inline ::memsize string_heap_data < CHARACTER>::character_count_in_bytes() const
51
//{
52
//
53
// return character_count_to_byte_length(&this->begin()[0], this->m_countData);
54
//
55
//}
56
//
57
58
//template < prototype_character CHARACTER >
59
//inline ::memsize string_heap_data < CHARACTER>::null_terminated_character_count_in_bytes() const
60
//{
61
//
62
// return this->character_count_in_bytes() + sizeof(CHARACTER);
63
//
64
//}
65
//
66
prototype
string
_impl_string_meta_data.h
Generated by
1.17.0