Skip to content

Commit

Permalink
Add UnicodeRange.ArabicExtendedB. Fixes dotnet#57609
Browse files Browse the repository at this point in the history
Produced via 'dotnet run -- Blocks.txt "..\..\src\System\Text\Unicode\UnicodeRanges.generated.cs" "..\..\tests\UnicodeRangesTests.generated.cs"' with latest UCD Blocks from https://www.unicode.org/Public/UCD/latest/ucd/Blocks.txt.
  • Loading branch information
bgrainger committed Jan 17, 2022
1 parent d48a44f commit 92b4219
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Expand Up @@ -190,6 +190,15 @@ public static partial class UnicodeRanges
public static UnicodeRange SyriacSupplement => _u0860 ?? CreateRange(ref _u0860, first: '\u0860', last: '\u086F');
private static UnicodeRange? _u0860;

/// <summary>
/// A <see cref="UnicodeRange"/> corresponding to the 'Arabic Extended-B' Unicode block (U+0870..U+089F).
/// </summary>
/// <remarks>
/// See https://www.unicode.org/charts/PDF/U0870.pdf for the full set of characters in this block.
/// </remarks>
public static UnicodeRange ArabicExtendedB => _u0870 ?? CreateRange(ref _u0870, first: '\u0870', last: '\u089F');
private static UnicodeRange? _u0870;

/// <summary>
/// A <see cref="UnicodeRange"/> corresponding to the 'Arabic Extended-A' Unicode block (U+08A0..U+08FF).
/// </summary>
Expand Down
Expand Up @@ -32,6 +32,7 @@ public static partial class UnicodeRangesTests
new object[] { '\u0800', '\u083F', nameof(UnicodeRanges.Samaritan) },
new object[] { '\u0840', '\u085F', nameof(UnicodeRanges.Mandaic) },
new object[] { '\u0860', '\u086F', nameof(UnicodeRanges.SyriacSupplement) },
new object[] { '\u0870', '\u089F', nameof(UnicodeRanges.ArabicExtendedB) },
new object[] { '\u08A0', '\u08FF', nameof(UnicodeRanges.ArabicExtendedA) },
new object[] { '\u0900', '\u097F', nameof(UnicodeRanges.Devanagari) },
new object[] { '\u0980', '\u09FF', nameof(UnicodeRanges.Bengali) },
Expand Down

0 comments on commit 92b4219

Please sign in to comment.