[glacier] Create lib with scaffolding string class.
This commit is contained in:
parent
172bf51db7
commit
859fbf66da
4 changed files with 62 additions and 0 deletions
18
lib/glacier/string/string.h
Normal file
18
lib/glacier/string/string.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
namespace glcr {
|
||||
|
||||
class String {
|
||||
public:
|
||||
String(const char* cstr);
|
||||
|
||||
bool operator==(const String& str);
|
||||
|
||||
private:
|
||||
char* cstr_;
|
||||
uint64_t length_;
|
||||
};
|
||||
|
||||
} // namespace glcr
|
||||
Loading…
Add table
Add a link
Reference in a new issue