Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UnicodeRange.ArabicExtendedB #63901

Merged
merged 2 commits into from
Jan 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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