The validation helper feature. More...
Data Structures | |
struct | _Elm_Validate_Content |
Typedefs | |
typedef struct _Elm_Validate_Content | Elm_Validate_Content |
Data for the elm_validator_regexp_helper() | |
typedef struct _Elm_Validator_Regexp | Elm_Validator_Regexp |
The Regexp validator data. | |
Enumerations | |
enum | Elm_Regexp_Status { ELM_REG_NOERROR = 0 , ELM_REG_NOMATCH , ELM_REG_BADPAT } |
Enumeration that defines the regex error codes. More... | |
Functions | |
Elm_Validator_Regexp * | elm_validator_regexp_new (const char *pattern, const char *signal) |
Create a new regex validator. More... | |
void | elm_validator_regexp_free (Elm_Validator_Regexp *validator) |
Delete the existing regex validator. More... | |
Elm_Regexp_Status | elm_validator_regexp_status_get (Elm_Validator_Regexp *validator) |
Get the validation status. More... | |
void | elm_validator_regexp_helper (void *data, const Efl_Event *event) |
The regex validator. More... | |
The validation helper feature.
enum Elm_Regexp_Status |
Elm_Validator_Regexp * elm_validator_regexp_new | ( | const char * | pattern, |
const char * | signal | ||
) |
Create a new regex validator.
General designed for validate inputed entry text.
pattern | The regex pattern |
signal | The part of signal name, which will be emitted to style |
References eina_stringshare_add(), ELM_REG_BADPAT, and ELM_REG_NOERROR.
void elm_validator_regexp_free | ( | Elm_Validator_Regexp * | validator | ) |
Delete the existing regex validator.
validator | The given validator |
References eina_stringshare_del().
Elm_Regexp_Status elm_validator_regexp_status_get | ( | Elm_Validator_Regexp * | validator | ) |
Get the validation status.
validator | The given validator |
void elm_validator_regexp_helper | ( | void * | data, |
const Efl_Event * | event | ||
) |
The regex validator.
Used as callback to validate event.
Example:
References ELM_REG_NOERROR, and ELM_REG_NOMATCH.