1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:17:34 +00:00

More moving towards using signed types.

I'm still feeling this out, but I am starting to like the general idea.
This commit is contained in:
Andreas Kling 2019-02-25 22:06:55 +01:00
parent beda478821
commit 9624b54703
48 changed files with 234 additions and 250 deletions

View file

@ -8,12 +8,12 @@ namespace AK {
class StringBuilder {
public:
explicit StringBuilder(size_t initial_capacity = 16);
explicit StringBuilder(ssize_t initial_capacity = 16);
~StringBuilder() { }
void append(const String&);
void append(char);
void append(const char*, size_t);
void append(const char*, ssize_t);
void appendf(const char*, ...);
void appendvf(const char*, va_list);
@ -21,10 +21,10 @@ public:
ByteBuffer to_byte_buffer();
private:
void will_append(size_t);
void will_append(ssize_t);
ByteBuffer m_buffer;
size_t m_length { 0 };
ssize_t m_length { 0 };
};
}