Got an intial console working, at least for simple typing.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#ifndef TSTRING_H
|
||||
#define TSTRING_H
|
||||
|
||||
#ifndef DEFAULT_TSTRING_BYTE_BUFFER
|
||||
#define DEFAULT_TSTRING_BYTE_BUFFER 32
|
||||
#endif
|
||||
|
||||
typedef struct tstring TString;
|
||||
|
||||
TString* TStringCreate(void);
|
||||
void TStringTruncate(TString* string);
|
||||
void TStringAppendText(const char* text, TString* string);
|
||||
void TStringGetGlyph(int index, char buffer[8], const TString* string);
|
||||
void TStringFree(TString* string);
|
||||
void TStringPrintDetails(const TString* string, int statsOnly);
|
||||
void TStringInsertText(const char* text, int index, TString* string);
|
||||
void TStringPop(char buffer[8], TString* string);
|
||||
void TStringRemoveRange(int startIndex, int count, TString* string);
|
||||
void TStringGetStringRange(const TString* string, unsigned int startIndex, unsigned int count, unsigned int bufferSize, char buffer[]);
|
||||
char* TStringGetString(const TString* string);
|
||||
int TStringLength(const TString* string);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user