Snel
A shell implementation for A.U.TH (Operating Systems Lab)
|
A basic sequence interpreter for snel. More...
#include "sequencer.h"
Go to the source code of this file.
Functions | |
template<typename T > | |
void | snel::memcpy (T *to, const T *from, size_t n) |
A type-safe memcpy. | |
template<typename T , typename Container > | |
void | snel::split (const std::basic_string< T > &str, Container &cont, T delim) |
std::string | snel::filter (const std::string in) |
A basic sequence interpreter for snel.
Sequencer.cpp Created on: Feb, 2019 Author: Christos Choutouridis AEM: 8997 email : cchou tou@ ece.a uth. gr
Definition in file sequencer.cpp.
std::string snel::filter | ( | const std::string | in | ) |
A very very simple filtering for leading ' ', comments and adjustments for the '|' character.
in | Input string |
Definition at line 49 of file sequencer.cpp.
void snel::split | ( | const std::basic_string< T > & | str, |
Container & | cont, | ||
T | delim | ||
) |
Split a string to tokens and store them in a container, using a delimiter character.
str | The input string to split |
cont | The container to push the tokens (MUST have .push_back(T) member) |
delim | The delimiter of type T to use |
Definition at line 31 of file sequencer.cpp.