beast icon indicating copy to clipboard operation
beast copied to clipboard

option to disable utf8-validation

Open vinniefalco opened this issue 7 years ago • 4 comments

This would be even faster than the currently optimized version of utf8_checker.

vinniefalco avatar Jul 21 '18 00:07 vinniefalco

Hi Vinnie, is this a feature that you are thinking of adding to Beast? If so, I think that it would be a good idea, for instance, I use ICU for UTF-8 validation, comparison, transformation and any manipulation required such as word boundaries, etc. I see no point in redundant validation for users who may use other Unicode libraries.

carolinebeltran avatar Jul 22 '18 16:07 carolinebeltran

Yes this is a planned feature. Note, you can always use binary mode for messages, no checking is performed then.

vinniefalco avatar Jul 22 '18 17:07 vinniefalco

Would that be another

void
set_option(utf8_option const& opt)

?

Do we want the logic in stream, checking if we should ignore the checker, or in utf8_checker, with some internal logic to disable it?

alandefreitas avatar Jun 18 '22 20:06 alandefreitas

void set_validate_utf8( bool v );
bool validate_utf8() const noexcept;

logic in stream

vinniefalco avatar Jun 19 '22 14:06 vinniefalco