From a36f425491aaf019243a31179e80cb10ea62db59 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Mon, 21 Jun 2021 20:05:08 -0400 Subject: (mkosarek) Transpiling code snippets in a shotty way, but it is good enough --- transpiler/MyString.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'transpiler/MyString.h') diff --git a/transpiler/MyString.h b/transpiler/MyString.h index d05d84a..805f5de 100644 --- a/transpiler/MyString.h +++ b/transpiler/MyString.h @@ -59,7 +59,7 @@ struct StringBuilder { StringBuffer* getBufferAtIdx(int index); const StringBuffer* getBufferAtIdxConst(int index) const; void addStr(String* str); - void addStr(const char* str); + void addStr(const char* str, int length = -1); void addChar(char c); void format(const char* str, ...); void addInt(int value); @@ -73,4 +73,4 @@ struct StringBuilder { char getCharAtIdx(int index) const; void insert(char c, int index); void free(); -}; \ No newline at end of file +}; -- cgit v1.2.1