int _wind_stringprep_prohibited(const uint32_t *in, size_t in_len, wind_profile_flags flags) { unsigned i; for (i = 0; i < in_len; ++i) if (_wind_stringprep_error(in[i], flags)) return 1; return 0; }
int main(void) { unsigned i; unsigned failures = 0; for (i = 0; i < sizeof(positives)/sizeof(positives[0]); ++i) if (!_wind_stringprep_error(positives[i], WIND_PROFILE_NAME)) { printf ("code-point 0x%x not marked as prohibited\n", positives[i]); ++failures; } for (i = 0; i < sizeof(negatives)/sizeof(negatives[0]); ++i) if (_wind_stringprep_error(negatives[i], WIND_PROFILE_NAME)) { printf ("code-point 0x%x not marked as non-prohibited\n", negatives[i]); ++failures; } return failures != 0; }