|  |  |  | Evolution-Data-Server Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
| EBookBackendSExpEBookBackendSExp — A utility for comparing EContacts or vcards with search expressions. | 
#include <libedata-book/libedata-book.h> struct EBookBackendSExp; struct EBookBackendSExpClass; EBookBackendSExp * e_book_backend_sexp_new (const gchar *text); const gchar * e_book_backend_sexp_text (EBookBackendSExp *sexp); gboolean e_book_backend_sexp_match_vcard (EBookBackendSExp *sexp,const gchar *vcard); gboolean e_book_backend_sexp_match_contact (EBookBackendSExp *sexp,EContact *contact);
This API is an all purpose utility for comparing EContacts with search expressions generated by EBookQuery.
EBookBackendSExp *  e_book_backend_sexp_new             (const gchar *text);
Creates a new EBookBackendSExp from text.
| 
 | an s-expression to parse | 
| Returns : | a new EBookBackendSExp | 
const gchar *       e_book_backend_sexp_text            (EBookBackendSExp *sexp);
Retrieve the text expression for the given EBookBackendSExp object.
| 
 | an EBookBackendSExp | 
| Returns : | the text expression | 
Since 3.8
gboolean e_book_backend_sexp_match_vcard (EBookBackendSExp *sexp,const gchar *vcard);
Checks if vcard matches sexp.
| 
 | an EBookBackendSExp | 
| 
 | a vCard string | 
| Returns : | TRUEif the vCard matches,FALSEotherwise | 
gboolean e_book_backend_sexp_match_contact (EBookBackendSExp *sexp,EContact *contact);
Checks if contact matches sexp.
| 
 | an EBookBackendSExp | 
| 
 | an EContact | 
| Returns : | TRUEif the contact matches,FALSEotherwise |