1
0
mirror of https://gitlab.com/klmp200/fish.git synced 2024-09-28 22:08:13 +00:00
fish/fish_shell/fish_utils.h
klmp200 b550ebc9df Support des regex pour détecter les opérateurs logiques.
Split des mots si caractère spécial collé.
2017-05-20 16:25:00 +02:00

39 lines
910 B
C

//
// Created by Antoine Bartuccio on 15/05/2017.
//
#ifndef FISH_FISH_UTILS_H
#define FISH_FISH_UTILS_H
#include "fish_types.h"
void crash(); // Tested
char *getInsult(); // Tested
void freeWordArray(WordArray *array); // Tested
WordList * createWordList(); // Tested
WordList * sliceWordList(WordList *list, int min_index, int max_index);
void addEndWordList(WordList *list, char *word); // Tested
void addBeginWordList(WordList *list, char *word);
void removeWordList(WordList *list); // Tested
void removeWordListElem(WordList *list, WordListElement *elem);
void freeWordList(WordList *list); // Tested
WordArray * wordListToWordArray(WordList *list); // Tested
WordList * wordArrayToWordList(WordArray * array); // Tested
WordList * splitWordList(WordList *list, char *regex);
char * splitWord(char * origin, int beginning_index, int size_to_delete); // Tested
#endif //FISH_FISH_UTILS_H