My library
Library for common tasks
strings.h
Go to the documentation of this file.
1
7#ifndef SEEN_STRINGS
8#define SEEN_STRINGS
9
10#include "types.h"
11
17string getString();
18
27byte endsWith(const string str, const string suffix);
28
36string changeLastCharacter(const string str, char newCharacter);
37
43string copyOf(const string src);
44
45#endif
string copyOf(const string src)
Get a copy of the given string.
string changeLastCharacter(const string str, char newCharacter)
Get a tring with different last character.
byte endsWith(const string str, const string suffix)
Check if a string ends with the specified substring.
string getString()
Reads from terminal a string of arbitrary length.
Collection of useful types.