Files
asterisk/main
Sean Bright 718efe9365 utf8.c: Add UTF-8 validation and utility functions
There are various places in Asterisk - specifically in regards to
database integration - where having some kind of UTF-8 validation would
be beneficial. This patch adds:

* Functions to validate that a given string contains only valid UTF-8
  sequences.

* A function to copy a string (similar to ast_copy_string) stopping when
  an invalid UTF-8 sequence is encountered.

* A UTF-8 validator that allows for progressive validation.

All of this is based on the excellent UTF-8 decoder by Björn Höhrmann.
More information is available here:

    https://bjoern.hoehrmann.de/utf-8/decoder/dfa/

The API was written in such a way that should allow us to replace the
implementation later should we determine that we need something more
comprehensive.

Change-Id: I3555d787a79e7c780a7800cd26e0b5056368abf9
2020-07-27 17:30:17 -05:00
..
2020-05-05 09:22:51 -05:00
2019-08-01 16:22:01 -05:00
2020-05-05 09:22:51 -05:00
2020-05-05 09:22:51 -05:00
2020-04-06 10:58:11 -05:00
2019-08-01 16:22:01 -05:00
2017-10-24 17:17:53 -04:00
2020-06-10 13:56:03 -05:00
2017-12-20 12:54:13 -05:00
2019-12-17 14:11:52 +00:00
2016-11-01 12:37:58 -05:00
2020-06-10 13:56:03 -05:00
2020-06-10 13:56:03 -05:00
2020-06-10 13:56:03 -05:00
2018-06-23 00:27:06 -06:00
2018-07-20 05:20:25 -06:00