![]() |
![]() |
![]() |
libgebr Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
enum GebrValidateCaseName; struct GebrValidateCase; GebrValidateCase * gebr_validate_get_validate_case (GebrValidateCaseName name
); const gchar * gebr_validate_case_get_message (GebrValidateCase *validate_case
); gint gebr_validate_case_check_value (GebrValidateCase *self
,const gchar *value
,gboolean *can_fix
); gchar * gebr_validate_case_fix (GebrValidateCase *self
,const gchar *value
); gchar * gebr_validate_case_automatic_fixes_msg (GebrValidateCase *self
,const gchar *value
,gboolean *can_fix
); gchar * gebr_validate_flags_failed_msg (gint failed_flags
); gboolean gebr_validate_check_is_not_empty (const gchar *str
); gboolean gebr_validate_check_no_lower_case (const gchar *sentence
); gchar * gebr_validate_change_first_to_upper (const gchar *sentence
); gboolean gebr_validate_check_tabs (const gchar *str
); gchar * gebr_validate_change_tabs (const gchar *sentence
); gboolean gebr_validate_check_no_multiple_blanks (const gchar *str
); gchar * gebr_validate_change_multiple_blanks (const gchar *sentence
); gboolean gebr_validate_check_no_blanks_at_boundaries (const gchar *str
); gchar * gebr_validate_change_no_blanks_at_boundaries (const gchar *sentence
); gboolean gebr_validate_check_no_punctuation_at_end (const gchar *str
); gchar * gebr_validate_change_no_punctuation_at_end (const gchar *sentence
); gboolean gebr_validate_check_menu_filename (const gchar *str
); gboolean gebr_validate_check_is_email (const gchar *str
); gboolean gebr_validate_check_is_url (const gchar *str
); gchar * gebr_validate_change_url (const gchar *sentence
);
typedef enum { GEBR_VALIDATE_CASE_AUTHOR, GEBR_VALIDATE_CASE_CATEGORY, GEBR_VALIDATE_CASE_DATE, GEBR_VALIDATE_CASE_DESCRIPTION, GEBR_VALIDATE_CASE_FILENAME, GEBR_VALIDATE_CASE_HELP, GEBR_VALIDATE_CASE_TITLE, GEBR_VALIDATE_CASE_EMAIL, GEBR_VALIDATE_CASE_PROGRAM_BINARY, GEBR_VALIDATE_CASE_PROGRAM_DESCRIPTION, GEBR_VALIDATE_CASE_PROGRAM_TITLE, GEBR_VALIDATE_CASE_PROGRAM_URL, GEBR_VALIDATE_CASE_PROGRAM_VERSION, GEBR_VALIDATE_CASE_PARAMETER_KEYWORD, GEBR_VALIDATE_CASE_PARAMETER_LABEL, } GebrValidateCaseName;
struct GebrValidateCase { GebrValidateCaseName name; gint flags; };
A validate case is a simple structure containing flags for checking values (E-mail addresses, capitalized titles, etc.) for validity.
GebrValidateCase * gebr_validate_get_validate_case (GebrValidateCaseName name
);
const gchar * gebr_validate_case_get_message (GebrValidateCase *validate_case
);
This function returns validate_case
message translated into the correct locale.
Returns : |
a translated string for validate_case . |
gint gebr_validate_case_check_value (GebrValidateCase *self
,const gchar *value
,gboolean *can_fix
);
gchar * gebr_validate_case_fix (GebrValidateCase *self
,const gchar *value
);
gchar * gebr_validate_case_automatic_fixes_msg (GebrValidateCase *self
,const gchar *value
,gboolean *can_fix
);
gboolean gebr_validate_check_no_lower_case (const gchar *sentence
);
gchar * gebr_validate_change_first_to_upper (const gchar *sentence
);
gboolean gebr_validate_check_no_multiple_blanks
(const gchar *str
);
gchar * gebr_validate_change_multiple_blanks
(const gchar *sentence
);
gboolean gebr_validate_check_no_blanks_at_boundaries
(const gchar *str
);
gchar * gebr_validate_change_no_blanks_at_boundaries
(const gchar *sentence
);
gboolean gebr_validate_check_no_punctuation_at_end
(const gchar *str
);
gchar * gebr_validate_change_no_punctuation_at_end
(const gchar *sentence
);