Skip to content

Conversation

Azoy
Copy link
Contributor

@Azoy Azoy commented Nov 17, 2021

This PR implements all of the Unicode.Scalar.Properties in our native data.

@Azoy Azoy requested a review from milseman November 17, 2021 22:46
@Azoy
Copy link
Contributor Author

Azoy commented Nov 17, 2021

@swift-ci please test

@Azoy
Copy link
Contributor Author

Azoy commented Nov 18, 2021

@swift-ci please clean test Windows

Comment on lines +25 to +28
// Name aliases are only found with correction attribute.
guard components[2] == "correction" else {
continue
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could the alternate name alias (for ZERO WIDTH NO-BREAK SPACE) also be included?

FEFF;BYTE ORDER MARK;alternate

And possibly the control name aliases? Although how would you choose which one to include?

0009;CHARACTER TABULATION;control
0009;HORIZONTAL TABULATION;control

}
return codeUnits.withUnsafeBufferPointer { String._uncheckedFromUTF16($0) }

return result
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😭 (out of joy)

@Azoy
Copy link
Contributor Author

Azoy commented Nov 29, 2021

@swift-ci please test

@Azoy Azoy force-pushed the finish-scalar-properties branch from 2ee54a9 to 9e742a2 Compare November 29, 2021 22:33
@Azoy
Copy link
Contributor Author

Azoy commented Nov 29, 2021

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 9e742a28238cce072796af397a14cd80cafa60f3

Copy link
Member

@milseman milseman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking great and I'm excited to see it land soon!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we have good benchmark coverage for this. This could be a nice improvement.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have lots of sets of magic numbers that are coordinated with the data files. I do wonder if it makes sense to have a C header with constants in it...

fix special mappings

fix bug
@Azoy Azoy force-pushed the finish-scalar-properties branch from 9e742a2 to a8ae6e7 Compare November 30, 2021 05:33
@Azoy
Copy link
Contributor Author

Azoy commented Nov 30, 2021

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - a8ae6e7

@Azoy
Copy link
Contributor Author

Azoy commented Nov 30, 2021

@swift-ci please clean test Linux

@Azoy Azoy merged commit ac6c08f into swiftlang:main Nov 30, 2021
@Azoy Azoy deleted the finish-scalar-properties branch November 30, 2021 20:40
Azoy added a commit to Azoy/swift that referenced this pull request Dec 1, 2021
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.

5 participants