Home | History | Annotate | Download | only in src

Lines Matching refs:sanitize

161  * Sanitize
181 inline const char *get_name (void) { return "SANITIZE"; }
185 inline return_t dispatch (const T &obj) { return obj.sanitize (this); }
202 DEBUG_MSG_LEVEL (SANITIZE, this->blob, 0, +1,
210 DEBUG_MSG_LEVEL (SANITIZE, this->blob, 0, -1,
224 (&this->debug_depth, "SANITIZE", this->blob, NULL,
238 (&this->debug_depth, "SANITIZE", this->blob, NULL,
261 (&this->debug_depth, "SANITIZE", this->blob, NULL,
280 /* Template to sanitize an object. */
284 static hb_blob_t *sanitize (hb_blob_t *blob) {
293 DEBUG_MSG_FUNC (SANITIZE, blob, "start");
304 sane = t->sanitize (c);
307 DEBUG_MSG_FUNC (SANITIZE, blob, "passed first round with %d edits; going for second round", c->edit_count);
309 /* sanitize again to ensure no toe-stepping */
311 sane = t->sanitize (c);
313 DEBUG_MSG_FUNC (SANITIZE, blob, "requested %d edits in second round; FAILLING", c->edit_count);
326 DEBUG_MSG_FUNC (SANITIZE, blob, "retry");
334 DEBUG_MSG_FUNC (SANITIZE, blob, sane ? "PASSED" : "FAILED");
567 inline bool sanitize (hb_sanitize_context_t *c) {
593 inline bool sanitize (hb_sanitize_context_t *c) {
667 inline bool sanitize (hb_sanitize_context_t *c) {
702 inline bool sanitize (hb_sanitize_context_t *c, void *base) {
708 return TRACE_RETURN (likely (obj.sanitize (c)) || neuter (c));
711 inline bool sanitize (hb_sanitize_context_t *c, void *base, T user_data) {
717 return TRACE_RETURN (likely (obj.sanitize (c, user_data)) || neuter (c));
801 inline bool sanitize (hb_sanitize_context_t *c) {
806 * we do not need to call their sanitize() as we already did
809 * pointed to do have a simple sanitize(), ie. they do not
812 (void) (false && array[0].sanitize (c));
816 inline bool sanitize (hb_sanitize_context_t *c, void *base) {
821 if (unlikely (!array[i].sanitize (c, base)))
826 inline bool sanitize (hb_sanitize_context_t *c, void *base, T user_data) {
831 if (unlikely (!array[i].sanitize (c, base, user_data)))
879 inline bool sanitize (hb_sanitize_context_t *c) {
881 return TRACE_RETURN (OffsetArrayOf<Type>::sanitize (c, this));
884 inline bool sanitize (hb_sanitize_context_t *c, T user_data) {
886 return TRACE_RETURN (OffsetArrayOf<Type>::sanitize (c, this, user_data));
924 inline bool sanitize (hb_sanitize_context_t *c) {
929 * we do not need to call their sanitize() as we already did
932 * pointed to do have a simple sanitize(), ie. they do not
935 (void) (false && array[0].sanitize (c));