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

J2N.Character: Added ReadOnlySpan<char> overloads for working with codepoints #54

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

NightOwl888
Copy link
Owner

Added ReadOnlySpan overloads for CodePointAt, CodePointBefore, CodePointCount, and OffsetByCodePoints + tests

New APIs

namespace J2N
{
    public static class Character
    {
        public static int CodePointAt(this ReadOnlySpan<char> seq, int index)
        public static int CodePointBefore(this ReadOnlySpan<char> seq, int index)
        public static int CodePointCount(this ReadOnlySpan<char> seq)
        public static int OffsetByCodePoints(this ReadOnlySpan<char> seq, int index, int codePointOffset)
    }
}

…dePointBefore, CodePointCount, and OffsetByCodePoints + tests
@NightOwl888 NightOwl888 merged commit 47fbe53 into main Nov 3, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant