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 barebones NSSpellChecker bindings #312

Merged
merged 1 commit into from Apr 29, 2019
Merged

Conversation

@euclio
Copy link
Contributor

euclio commented Apr 28, 2019

Also adds substringWithRange to NSString.


This change is Reviewable

language: id,
wrapFlag: BOOL,
tag: NSInteger,
wordCount: *mut NSInteger) -> NSRange {

This comment has been minimized.

@jdm

jdm Apr 29, 2019

Member

Let's return (NSRange, NSInteger) instead of accepting a mutable argument here.

This comment has been minimized.

@euclio

euclio Apr 29, 2019

Author Contributor

Done.

@euclio euclio force-pushed the euclio:nsspellchecker branch from 5680674 to 2c7b625 Apr 29, 2019
language: id,
wrapFlag: BOOL,
tag: NSInteger) -> (NSRange, NSInteger) {
let wordCount = ptr::null_mut();

This comment has been minimized.

@jdm

jdm Apr 29, 2019

Member

This won't do the right thing. We should initialize let mut wordCount = 0;, pass a mutable reference as the argument, and return the value of wordCount.

This comment has been minimized.

@euclio

euclio Apr 29, 2019

Author Contributor

Whoops, fixed!

@euclio euclio force-pushed the euclio:nsspellchecker branch from 2c7b625 to a939bec Apr 29, 2019
@jdm
Copy link
Member

jdm commented Apr 29, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Apr 29, 2019

📌 Commit a939bec has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Apr 29, 2019

Testing commit a939bec with merge 15da198...

bors-servo added a commit that referenced this pull request Apr 29, 2019
add barebones NSSpellChecker bindings

Also adds `substringWithRange` to `NSString`.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/312)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Apr 29, 2019

☀️ Test successful - checks-travis
Approved by: jdm
Pushing 15da198 to master...

@bors-servo bors-servo merged commit a939bec into servo:master Apr 29, 2019
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
Details
homu Test successful
Details
@euclio euclio deleted the euclio:nsspellchecker branch Apr 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.