diff options
author | crupest <crupest@outlook.com> | 2021-09-04 23:23:32 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-09-04 23:23:32 +0800 |
commit | c504aef3835f71ea22c9e938066f01e69e1c2db3 (patch) | |
tree | 4d456079e08e64923e84ca37b862c82a0b184167 /include/cru/common/String.hpp | |
parent | 9e3d8fbd19ac93382a231a5eb8e7f8b389e6f6c2 (diff) | |
download | cru-c504aef3835f71ea22c9e938066f01e69e1c2db3.tar.gz cru-c504aef3835f71ea22c9e938066f01e69e1c2db3.tar.bz2 cru-c504aef3835f71ea22c9e938066f01e69e1c2db3.zip |
...
Diffstat (limited to 'include/cru/common/String.hpp')
-rw-r--r-- | include/cru/common/String.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/cru/common/String.hpp b/include/cru/common/String.hpp index 79885aba..563e1606 100644 --- a/include/cru/common/String.hpp +++ b/include/cru/common/String.hpp @@ -73,6 +73,7 @@ class CRU_BASE_API String { Index length() const { return this->size(); } Index capacity() const { return this->capacity_; } std::uint16_t* data() { return this->buffer_; } + const std::uint16_t* data() const { return this->buffer_; } void reserve(Index new_capacity); |