str.hpp File Reference

Provides string class with a small foot-printVersion: 01102013 Added eraseFirstWords() Version: 05052013 Added tokenize() to get char* tokens. Added clearAll(). Fixed str::printf() Version: 02122013 Added support for str memory on a stack (external memory). Fix removeAllSpecialChars() Version: 12082012 Remove encryption functions, fix beginsWithIgnoreCase(). Added operators for str Version: 10062012 Added scanf() Version: 06192012 Initial. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  str
 

Macros

#define STR_ON_STACK(name, size)
 

Detailed Description

Provides string class with a small foot-print

Version: 01102013 Added eraseFirstWords() Version: 05052013 Added tokenize() to get char* tokens. Added clearAll(). Fixed str::printf() Version: 02122013 Added support for str memory on a stack (external memory). Fix removeAllSpecialChars() Version: 12082012 Remove encryption functions, fix beginsWithIgnoreCase(). Added operators for str Version: 10062012 Added scanf() Version: 06192012 Initial.

Macro Definition Documentation

#define STR_ON_STACK (   name,
  size 
)
Value:
char __##name##buffer[size]; \
str name((__##name##buffer), sizeof(__##name##buffer))
To use the FreeRTOS so play with it a little *uses roughly of and uses roughly of RAM *The larger the size
Definition: readme.txt:4
To use the FreeRTOS so play with it a little *uses roughly of and uses roughly of RAM *The larger the the larger recording buffer *You can choose ring buffer
Definition: readme.txt:4

Declare the str object on stack, no memory allocation is performed.

Note
str object on stack cannot grow, so insertion, printf beyond the memory available will fail.

This provides easy way to declare the string on stack. STR_ON_STACK(my_str, 128) turns into : char __my_strbuffer[128]; str my_str(__my_strbuffer, sizeof(__my_strbuffer));