100 int count(
string)
const;
161 int find(
string s)
const;
168 int rfind(
string s)
const;
176 int find_first_of(
string list)
const;
184 int find_last_of(
string list)
const;
192 int find_first_not_of(
string list)
const;
200 int find_last_not_of(
string list)
const;
212 string lstrim()
const;
224 string rtrim()
const;
241 const char &operator[](
int t_index)
const;
244 char &operator[](
int t_index);
247 const char *c_str()
const;
250 const char *data()
const;
349 Object operator[](
int t_index);
352 const Object operator[](
int t_index)
const;
364 void erase_at(
int t_index);
372 void insert_ref_at(
int,
Object);
377 void insert_at(
int,
Object);
385 void push_back_ref(
Object);
409 string cpp_bare_name()
const;
412 string cpp_name()
const;
415 bool is_type_const()
const;
418 bool is_type_pointer()
const;
421 bool is_type_reference()
const;
424 bool is_type_undef()
const;
427 bool is_type_void()
const;
456 string get_annotation()
const;
467 int get_arity()
const;
481 Vector get_contained_functions()
const;
510 Vector get_param_types()
const;
513 bool has_guard()
const;
string join(Range c, string delim)
Joins the elements of the Range c into a string, delimiting each with the delim string.
A vector of Objects.
Definition: chaiscript_prelude_docs.hpp:346
ChaiScript representation of std::string.
Definition: chaiscript_prelude_docs.hpp:154
Range retro(Range)
Reverses a Range object so that the elements are accessed in reverse.
Maps strings to Objects.
Definition: chaiscript_prelude_docs.hpp:82
bool is_type(string) const
Returns true if the Object is of the named type.
bool is_var_const() const
Returns true if the Object is immutable.
bool is_var_reference() const
Returns true if the Object is stored as a reference.
void puts(Object o)
Prints o to the terminal, without a trailing carriage return.
Numeric sum(Range c)
Returns the sum total of the values in the Range c.
class ChaiScript_Language::Function max(Object a, Object b)
Returns the max of a or b.
Object drop_while(Range c, Function f)
Drops elements from the Range c that match f, stopping at the first non-match, returning the remainde...
void for_each(Range c, Function f)
Applies the function f over each element in the Range c.
Object foldl(Range c, Function f, Object initial)
Starts with the initial value and applies the function f to it and the first element of the Range c...
bool is_var_null() const
Returns true if the Object is a pointer and the pointer is null.
Vector zip(Range x, Range y)
Collates elements of x and y, returning a new Vector with the result.
This file is not technically part of the ChaiScript API.
Definition: chaiscript_prelude_docs.hpp:5
bool call_exists(Function f,...)
returns true if there exists a call to the Function f that takes the given parameters ...
bool even(Object x)
Returns true if x is an even integer.
void print(Object o)
Prints o to the terminal, with a trailing carriage return.
A concept implemented by string, Vector and Map. It is convertible to Range, default constructable an...
Definition: chaiscript_prelude_docs.hpp:107
Object filter(Container c, Function f)
Takes elements from Container c that match function f, return them.
Vector generate_range(Object x, Object y)
Generates a new Vector filled with values starting at x and ending with y.
Generic concept of a value in ChaiScript.
Definition: chaiscript_prelude_docs.hpp:20
bool is_var_pointer() const
Returns true if the Object is stored as a pointer.
Container reverse(Container c)
Returns the contents of the Container c in reversed order.
bool is_var_undef() const
Returns true if the Object does not contain a value is is undefined.
Object take(Range c, int num)
Takes num elements from the Range c, returning them.
Object reduce(Range c, Function f)
Similar to foldl, this takes the first two elements as its starting values for f. ...
Definition: chaiscript_prelude_docs.hpp:402
Object take_while(Range c, Function f)
Takes elements from the Range c that match function f, stopping at the first non-match, returning them as a new Vector.
Item returned from a Range object from a Map.
Definition: chaiscript_prelude_docs.hpp:53
Vector zip_with(Function f, Range x, Range y)
Applies f to elements of x and y, returning a new Vector with the result of each application.
A concept in ChaiScript that is implemented by string, Vector and Map.
Definition: chaiscript_prelude_docs.hpp:306
Represents a function object in ChaiScript.
Definition: chaiscript_prelude_docs.hpp:453
A concept in ChaiScript that is implemented by string, Vector and Map.
Definition: chaiscript_prelude_docs.hpp:277
Object min(Object a, Object b)
Returns the min of a or b.
Object map(Range c, Function f)
Applies f over each element in the Range c, joining all the results.
Object concat(Range x, Range y)
Returns a new Range with x and y concatenated.
string type_name() const
Returns the registered name of the type of the object.
string to_string(Object o)
Converts o into a string.
Type_Info get_type_info() const
Returns the Type_Info value for this Object.
Object drop(Range c, int num)
Drops num elements from the Range c, returning the remainder.
Vector collate(Object x, Object y)
Returns a new Vector with x and y as its values.
Numeric product(Range c)
Returns the product of the value in the Range c.