Skip to content

Commit

Permalink
Add UnicodeRange.ArabicExtendedB (#63901)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrainger committed Jan 18, 2022
1 parent 8d5f526 commit d2844eb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public static partial class UnicodeRanges
public static System.Text.Unicode.UnicodeRange AlphabeticPresentationForms { get { throw null; } }
public static System.Text.Unicode.UnicodeRange Arabic { get { throw null; } }
public static System.Text.Unicode.UnicodeRange ArabicExtendedA { get { throw null; } }
public static System.Text.Unicode.UnicodeRange ArabicExtendedB { get { throw null; } }
public static System.Text.Unicode.UnicodeRange ArabicPresentationFormsA { get { throw null; } }
public static System.Text.Unicode.UnicodeRange ArabicPresentationFormsB { get { throw null; } }
public static System.Text.Unicode.UnicodeRange ArabicSupplement { get { throw null; } }
Expand Down
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 d2844eb

Please sign in to comment.