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 is_(leading|trailing)_surrogate/1 to char #17

Merged

Conversation

sebgod
Copy link
Contributor

@sebgod sebgod commented Dec 22, 2014

For input validation and character encoding transformations
it is essential to check for surrogate characters and their correct
sequence.

NEWS:
Announce the addition of is_(leading|trailing)_surrogate/1.

library/char.m:
Add is_leading_surrogate/1 which succeeds if a character is a
leading surrogate character.
is_trailing_surrogate/1 succeeds if the character is a
trailing surrogate character.

For input validation and character encoding transformations
it is essential to check for surrogate characters and their correct
sequence.

NEWS:
    Announce the addition of is_(leading|trailing)_surrogate/1.

library/char.m:
    Add is_leading_surrogate/1 which succeeds if a character is a
    leading surrogate character.
    is_trailing_surrogate/1 succeeds if the character is a
    trailing surrogate character.
@sebgod
Copy link
Contributor Author

sebgod commented Dec 22, 2014

As discussed in the mailing list

On a side note, I think the new syntax highlighting is in place, any comments welcome.

@PaulBone
Copy link
Member

I'm not a user of those editors and assuming that that's the new github syntax highlighting (I know it changed recently), I don't see github that way. Due to my vision impairment I see most webpages in white-on-black (firefox settings) so I don't have an oppinion at all. Other people might have noticed though.

PaulBone added a commit that referenced this pull request Dec 22, 2014
Add is_(leading|trailing)_surrogate/1 to char.
@PaulBone PaulBone merged commit cc2d104 into Mercury-Language:master Dec 22, 2014
@PaulBone PaulBone deleted the feature-char-lead-trail-surrogate branch December 22, 2014 06:49
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.

2 participants