2017-03-18 19:24:16 +00:00
|
|
|
/*
|
|
|
|
* Mr. 4th Dimention - Allen Webster
|
|
|
|
*
|
|
|
|
* 18.03.2017
|
|
|
|
*
|
|
|
|
* Abstract model for the describing the characters of a buffer.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
|
|
|
#if !defined(FRED_BUFFER_MODEL_H)
|
|
|
|
#define FRED_BUFFER_MODEL_H
|
|
|
|
|
|
|
|
struct Buffer_Model_Step{
|
|
|
|
u32 type;
|
|
|
|
u32 value;
|
2017-03-23 19:16:39 +00:00
|
|
|
i32 i;
|
2017-03-23 19:14:39 +00:00
|
|
|
u32 byte_length;
|
2017-03-18 19:24:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Buffer_Model_Behavior{
|
|
|
|
b32 do_newline;
|
|
|
|
b32 do_codepoint_advance;
|
|
|
|
b32 do_number_advance;
|
|
|
|
};
|
|
|
|
|
|
|
|
enum{
|
|
|
|
BufferModelUnit_None,
|
|
|
|
BufferModelUnit_Codepoint,
|
|
|
|
BufferModelUnit_Numbers,
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// BOTTOM
|
|
|
|
|