acadia/lib/glacier/string/string.h

24 lines
365 B
C
Raw Normal View History

#pragma once
#include <stdint.h>
namespace glcr {
class String {
public:
String();
String(const char* cstr);
String(const char* cstr, uint64_t str_len);
const char* cstr() const { return cstr_; }
uint64_t length() const { return length_; }
bool operator==(const String& str);
private:
char* cstr_;
uint64_t length_;
};
} // namespace glcr