ladybird/Tests/AK
Diego 7560b640f3 AK: Add AllowSurrogates to UTF-8 validator
The [UTF-8](https://datatracker.ietf.org/doc/html/rfc3629#page-5)
standard says to reject strings with upper or lower surrogates. However,
in many standards, ECMAScript included, unpaired surrogates (and
therefore UTF-8 surrogates) are allowed in strings. So, this commit
extends the UTF-8 validation API with `AllowSurrogates`, which will
reject upper and lower surrogate characters.
2024-06-09 12:16:32 +02:00
..
CMakeLists.txt AK: Remove various unused things 2024-06-04 09:19:39 +02:00
TestAllOf.cpp LibTest: Add more numeric generators 2024-01-12 16:42:51 -07:00
TestAnyOf.cpp LibTest: Add more numeric generators 2024-01-12 16:42:51 -07:00
TestArbitrarySizedEnum.cpp AK: Add an ArbitrarySizedEnum template 2022-03-27 18:54:56 +02:00
TestArray.cpp Tests/AK: Add a test for the array ctor deduction guide 2024-02-11 18:53:00 +01:00
TestAtomic.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBadge.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestBase64.cpp AK: Reject invalid Base64 encoded string lengths 2024-03-25 08:13:27 +01:00
TestBinaryHeap.cpp LibTest: Add more numeric generators 2024-01-12 16:42:51 -07:00
TestBinarySearch.cpp LibTest: Add more numeric generators 2024-01-12 16:42:51 -07:00
TestBitCast.cpp Everywhere: Run clang-format 2022-12-03 23:52:23 +00:00
TestBitmap.cpp LibTest: Add more numeric generators 2024-01-12 16:42:51 -07:00
TestBitStream.cpp LibTest: Add more numeric generators 2024-01-12 16:42:51 -07:00
TestBuiltinWrappers.cpp LibTest: Add more numeric generators 2024-01-12 16:42:51 -07:00
TestByteBuffer.cpp AK: Add an option to zero-fill ByteBuffer data upon growth 2023-12-27 19:30:39 +01:00
TestByteString.cpp Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
TestCharacterTypes.cpp AK: Add CharacterTypes::is_ascii_base36_digit() 2024-01-13 19:01:35 -07:00
TestChecked.cpp Everywhere: Run clang-format 2024-04-24 16:50:01 -04:00
TestCircularBuffer.cpp Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
TestCircularQueue.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestComplex.cpp AK: Cover TestComplex with more tests 2024-01-12 16:42:51 -07:00
TestDisjointChunks.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestDistinctNumeric.cpp AK: Fix typo in -= operator of DistinctNumeric 2023-01-06 12:01:46 +01:00
TestDoublyLinkedList.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
TestDuration.cpp Tests: Fix TestDuration build with 32-bit time_t 2023-09-06 07:21:07 -06:00
TestEndian.cpp AK: Add tests for LittleEndian<enum class> 2022-12-28 22:27:19 -05:00
TestEnumBits.cpp AK/Tests: Add test for EnumBits has_any_flag() 2021-07-16 11:49:50 +02:00
TestEnumerate.cpp AK: Introduce AK::enumerate 2024-03-23 09:02:58 -04:00
TestFind.cpp Tests: Remove unused header includes 2021-08-01 08:10:16 +02:00
TestFixedArray.cpp AK+Tests: Don't double-destroy NoAllocationGuard in TestFixedArray 2022-09-15 23:04:46 +00:00
TestFixedPoint.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestFloatingPoint.cpp AK: Add FloatingPoint.h 2022-08-27 12:28:05 +02:00
TestFloatingPointParsing.cpp Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
TestFlyString.cpp AK: Make "foo"_fly_string infallible 2023-08-07 16:03:27 +02:00
TestFormat.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestGenericLexer.cpp AK: Remove ByteString from GenericLexer 2024-01-12 17:03:53 -07:00
TestHashFunctions.cpp AK: Implement SipHash as the default hash algorithm for most use cases 2023-10-01 11:06:36 +03:30
TestHashMap.cpp Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
TestHashTable.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestHex.cpp Tests: Move AK tests to Tests/AK 2021-05-06 17:54:28 +02:00
TestIndexSequence.cpp AK: Make IndexSequence use size_t 2024-02-11 18:53:00 +01:00
TestInsertionSort.cpp AK: Introduce cutoff to insertion sort for Quicksort 2022-12-12 15:03:57 +00:00
TestIntegerMath.cpp Tests/AK: Add tests for integral log2 2024-05-21 09:31:17 +02:00
TestIntrusiveList.cpp AK: Fix crash during teardown of self-owning objects 2023-04-21 18:15:00 +02:00
TestIntrusiveRedBlackTree.cpp Everywhere: Remove NonnullOwnPtr.h includes 2023-03-06 23:46:35 +01:00
TestIPv4Address.cpp Everywhere: Run clang-format 2024-04-24 16:50:01 -04:00
TestIPv6Address.cpp AK: Migrate IPv6Address::to_deprecated_string() to ::to_string() 2023-06-09 19:38:14 +01:00
TestJSON.cpp Everywhere: Run clang-format 2024-04-24 16:50:01 -04:00
TestLEB128.cpp AK: Remove the fallible constructor from FixedMemoryStream 2023-02-08 17:44:32 +00:00
TestLexicalPath.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestMemory.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestMemoryStream.cpp AK: Add methods to BufferedStream to resize the user supplied buffer 2024-04-21 11:46:55 +02:00
TestNeverDestroyed.cpp Tests: Stop invoking UB in AK::NeverDestroyed's tests 2024-06-05 17:19:14 -06:00
TestNonnullOwnPtr.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestNonnullRefPtr.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestNumberFormat.cpp AK+Tests: Add a test for formatting numbers in base 10 units 2023-01-02 20:11:18 +00:00
TestOptional.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestOptionParser.cpp AK: Update OptionParser::m_arg_index by substracting skipped args 2024-02-06 00:08:30 +01:00
TestOwnPtr.cpp AK: Fix crash during teardown of self-owning objects 2023-04-21 18:15:00 +02:00
TestPrint.cpp AK: Allow printing wide characters using %ls modifier 2022-03-30 11:30:43 +04:30
TestQueue.cpp Everywhere: Use to_number<T> instead of to_{int,uint,float,double} 2023-12-23 20:41:07 +01:00
TestQuickSelect.cpp AK: Testing for AK::quickselect_inline 2023-02-03 19:04:15 +01:00
TestQuickSort.cpp Tests: Use AK_MAKE_DEFAULT_MOVABLE to avoid mistakes in default impls 2023-06-18 08:47:51 +01:00
TestRedBlackTree.cpp AK: Clear minimum when removing last node of RedBlackTree 2022-02-10 14:09:39 +00:00
TestRefPtr.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestSegmentedVector.cpp AK+LibWeb: Use segmented vector to store commands in RecordingPainter 2023-12-30 23:02:46 +01:00
TestSIMD.cpp Tests: Fix building TestSIMD on non-SSE ABIs 2023-09-06 07:21:07 -06:00
TestSinglyLinkedList.cpp AK: Combine SinglyLinkedList and SinglyLinkedListWithCount 2023-01-02 20:13:24 +00:00
TestSourceGenerator.cpp AK: Make SourceGenerator::fork() infallible 2023-08-22 13:08:24 +02:00
TestSourceLocation.cpp Everywhere: Explicitly specify the size in StringView constructors 2022-07-12 23:11:35 +02:00
TestSpan.cpp Everywhere: Run clang-format 2024-04-24 16:50:01 -04:00
TestStack.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestStatistics.cpp AK: Add thresholds to quickselect_inline and Statistics::Median 2023-02-03 19:04:15 +01:00
TestStdLibExtras.cpp AK: Make ceil_div() handle one argument being negative correctly 2024-04-27 07:09:08 +02:00
TestString.cpp AK+LibUnicode: Implement a case-insensitive variant of find_byte_offset 2024-06-01 07:37:54 +02:00
TestStringFloatingPointConversions.cpp AK: Add framework for a unified floating point to string conversion 2022-11-03 20:17:09 -06:00
TestStringUtils.cpp AK: Add unit tests for StringUtils::find_last 2024-01-04 11:28:03 -05:00
TestStringView.cpp AK: Add a StringView method to count the number of lines in a string 2024-03-08 14:43:33 -05:00
TestTrie.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestTuple.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestTypedTransfer.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
TestTypeTraits.cpp Everywhere: Remove needless trailing semi-colons after functions 2023-07-08 10:32:56 +01:00
TestUFixedBigInt.cpp AK: Make BigIntBase more agnostic to non native word sizes 2024-03-25 14:26:29 -06:00
TestUtf8.cpp AK: Add AllowSurrogates to UTF-8 validator 2024-06-09 12:16:32 +02:00
TestUtf16.cpp AK: Add a Utf16View::starts_with method 2024-01-04 12:43:10 +01:00
TestVariant.cpp Everywhere: Run clang-format 2024-04-24 16:50:01 -04:00
TestVector.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30
TestWeakPtr.cpp Everywhere: Rename {Deprecated => Byte}String 2023-12-17 18:25:10 +03:30