ArkScript
A small, fast, functional and scripting language for video games
Utils.hpp File Reference

replxx utilities More...

#include <vector>
#include <string>
#include <replxx.hxx>
Include dependency graph for Utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Ark
 
namespace  Ark::internal
 

Functions

long Ark::internal::countOpenEnclosures (const std::string &line, char open, char close)
 Count the open enclosure and its counterpart: (), {}, [].
 
void Ark::internal::trimWhitespace (std::string &line)
 Remove whitespaces at the start and end of a string.
 
replxx::Replxx::completions_t Ark::internal::hookCompletion (const std::vector< std::string > &words, const std::string &context, int &length)
 
void Ark::internal::hookColor (const std::vector< std::pair< std::string, replxx::Replxx::Color > > &words_colors, const std::string &context, replxx::Replxx::colors_t &colors)
 
replxx::Replxx::hints_t Ark::internal::hookHint (const std::vector< std::string > &words, const std::string &context, int &length, replxx::Replxx::Color &color)
 

Detailed Description

replxx utilities

Author
Alexandre Plateau (lexpl.nosp@m.t.de.nosp@m.v@gma.nosp@m.il.c.nosp@m.om)
Version
1.1
Date
2020-10-27

Definition in file Utils.hpp.