Camel.SExp¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Camel.SExp(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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.
- 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.
- classmethod new()¶
- Returns:
a new
Camel.SExp
- Return type:
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.part
statement, orNone
, when could not convert it. Free it withGLib.free
(), when done with it.- Return type:
Converts a search expression to an SQL ‘WHERE’
Camel.part
statement, without the ‘WHERE’ keyword.New in version 2.26.
- add_variable(scope, name, value)¶
- Parameters:
scope (
int
) – a scopename (
str
) – a variable namevalue (
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.
- error()¶
-
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)¶
-
Prepares to scan a text buffer.
New in version 3.4.
- remove_symbol(scope, name)¶
-
Revoes a symbol from a scope.
New in version 3.4.
- result_free(result)¶
- Parameters:
result (
Camel.SExpResult
orNone
) – aCamel.SExpResult
to 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 ofCamel.SExpResult
to free
Frees an array of results.
New in version 3.4.