Camel.SExp¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | encode_bool(string, v_bool) | 
| class | encode_string(string, v_string) | 
| class | new() | 
| class | to_sql_sexp(sexp) | 
| add_variable(scope, name, value) | |
| error() | |
| evaluate_occur_times(start, end) | |
| input_file(fd) | |
| input_text(text, len) | |
| parse() | |
| remove_symbol(scope, name) | |
| result_free(result) | |
| resultv_free(argv) | |
| set_scope(scope) | 
Virtual Methods¶
| Inherited: | GObject.Object (7) | 
|---|
Properties¶
None
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Class Details¶
- 
class Camel.SExp(**kwargs)¶
- Bases: - GObject.Object- Abstract: - No - Structure: - Camel.SExpClass- New in version 3.4. - 
classmethod encode_bool(string, v_bool)¶
- Parameters: - string (GLib.String) – DestinationGLib.String
- v_bool (bool) – the value
 - Encode a bool into an s-expression string. Bools are encoded using #t #f syntax. - New in version 3.4. 
- string (
 - 
classmethod encode_string(string, v_string)¶
- Parameters: - string (GLib.String) – DestinationGLib.String
- v_string (str) – String expression.
 - Add a c string v_string to the s-expression stored in the gstring s. Quotes are added, and special characters are escaped appropriately. - New in version 3.4. 
- string (
 - 
classmethod new()¶
- Returns: - a new - Camel.SExp- Return type: - Camel.SExp- New in version 3.4. 
 - 
classmethod to_sql_sexp(sexp)¶
- Parameters: - sexp ( - str) – a search expression to convert- Returns: - a newly allocated string, an SQL ‘WHERE’ - Camel.partstatement, or- None, when could not convert it. Free it with- GLib.free(), when done with it.- Return type: - str- Converts a search expression to an SQL ‘WHERE’ - Camel.partstatement, without the ‘WHERE’ keyword.- New in version 2.26. 
 - 
add_variable(scope, name, value)¶
- Parameters: - scope (int) – a scope
- name (str) – a variable name
- value (Camel.SExpTerm) – a variable value, as aCamel.SExpTerm
 - Adds a variable named name to the given scope, set to the given value. - New in version 3.4. 
- scope (
 - 
error()¶
- Returns: - Set error string on the self, or - None, when none is set- Return type: - stror- None- New in version 3.4. 
 - 
input_file(fd)¶
- Parameters: - fd ( - int) – a file descriptor- Prepares to scan a file. - New in version 3.4. 
 - 
input_text(text, len)¶
- Parameters: - Prepares to scan a text buffer. - New in version 3.4. 
 - 
remove_symbol(scope, name)¶
- Parameters: - Revoes a symbol from a scope. - New in version 3.4. 
 - 
result_free(result)¶
- Parameters: - result ( - Camel.SExpResultor- None) – a- Camel.SExpResultto free- Frees the result and its internal data. Does nothing, when the result is - None.- New in version 3.4. 
 - 
resultv_free(argv)¶
- Parameters: - argv ([ - Camel.SExpResult]) – an array of- Camel.SExpResultto free- Frees an array of results. - New in version 3.4. 
 
- 
classmethod