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

[Foundation] Add missing properties to NSCharacterSet. Fixes #20745. #20761

Merged
merged 1 commit into from
Jun 21, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[Foundation] Add missing properties to NSCharacterSet. Fixes #20745.
Fixes #20745.
  • Loading branch information
rolfbjarne committed Jun 21, 2024
commit a216a2e083d2169c493ba1c0a5e691fc705b18ba
25 changes: 25 additions & 0 deletions src/foundation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,7 @@ interface NSCharacterSet : NSSecureCoding, NSMutableCopying {
[Static, Export ("characterSetWithCharactersInString:")]
NSCharacterSet FromString (string aString);

[return: NullAllowed]
[Static, Export ("characterSetWithContentsOfFile:")]
NSCharacterSet FromFile (string path);

Expand Down Expand Up @@ -1486,6 +1487,30 @@ interface NSCharacterSet : NSSecureCoding, NSMutableCopying {

[Export ("longCharacterIsMember:")]
bool Contains (uint /* UTF32Char = UInt32 */ theLongChar);

[Static]
[Export ("URLFragmentAllowedCharacterSet", ArgumentSemantic.Copy)]
NSCharacterSet UrlFragmentAllowed { get; }

[Static]
[Export ("URLHostAllowedCharacterSet", ArgumentSemantic.Copy)]
NSCharacterSet UrlHostAllowed { get; }

[Static]
[Export ("URLPasswordAllowedCharacterSet", ArgumentSemantic.Copy)]
NSCharacterSet UrlPasswordAllowed { get; }

[Static]
[Export ("URLPathAllowedCharacterSet", ArgumentSemantic.Copy)]
NSCharacterSet UrlPathAllowed { get; }

[Static]
[Export ("URLQueryAllowedCharacterSet", ArgumentSemantic.Copy)]
NSCharacterSet UrlQueryAllowed { get; }

[Static]
[Export ("URLUserAllowedCharacterSet", ArgumentSemantic.Copy)]
NSCharacterSet UrlUserAllowed { get; }
}

[MacCatalyst (13, 1)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,6 @@
!missing-selector! +NSBundle::preferredLocalizationsFromArray:forPreferences: not bound
!missing-selector! +NSCalendar::autoupdatingCurrentCalendar not bound
!missing-selector! +NSCalendar::calendarWithIdentifier: not bound
!missing-selector! +NSCharacterSet::URLFragmentAllowedCharacterSet not bound
!missing-selector! +NSCharacterSet::URLHostAllowedCharacterSet not bound
!missing-selector! +NSCharacterSet::URLPasswordAllowedCharacterSet not bound
!missing-selector! +NSCharacterSet::URLPathAllowedCharacterSet not bound
!missing-selector! +NSCharacterSet::URLQueryAllowedCharacterSet not bound
!missing-selector! +NSCharacterSet::URLUserAllowedCharacterSet not bound
!missing-selector! +NSDate::dateWithTimeInterval:sinceDate: not bound
!missing-selector! +NSDate::timeIntervalSinceReferenceDate not bound
!missing-selector! +NSDecimalNumber::decimalNumberWithDecimal: not bound
Expand Down Expand Up @@ -938,7 +932,6 @@
!missing-null-allowed! 'Foundation.NSBundle Foundation.NSBundle::FromUrl(Foundation.NSUrl)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSCachedUrlResponse Foundation.NSUrlCache::CachedResponseForRequest(Foundation.NSUrlRequest)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSCachedUrlResponse Foundation.NSUrlProtocol::get_CachedResponse()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSCharacterSet Foundation.NSCharacterSet::FromFile(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSData Foundation.NSData::FromFile(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSData Foundation.NSData::FromFile(System.String,Foundation.NSDataReadingOptions,Foundation.NSError&)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSData Foundation.NSData::FromUrl(Foundation.NSUrl)' is missing an [NullAllowed] on return type
Expand Down
7 changes: 0 additions & 7 deletions tests/xtro-sharpie/common-Foundation.ignore
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,6 @@
!missing-selector! +NSBundle::preferredLocalizationsFromArray:forPreferences: not bound
!missing-selector! +NSCalendar::autoupdatingCurrentCalendar not bound
!missing-selector! +NSCalendar::calendarWithIdentifier: not bound
!missing-selector! +NSCharacterSet::URLFragmentAllowedCharacterSet not bound
!missing-selector! +NSCharacterSet::URLHostAllowedCharacterSet not bound
!missing-selector! +NSCharacterSet::URLPasswordAllowedCharacterSet not bound
!missing-selector! +NSCharacterSet::URLPathAllowedCharacterSet not bound
!missing-selector! +NSCharacterSet::URLQueryAllowedCharacterSet not bound
!missing-selector! +NSCharacterSet::URLUserAllowedCharacterSet not bound
!missing-selector! +NSDate::dateWithTimeInterval:sinceDate: not bound
!missing-selector! +NSDate::timeIntervalSinceReferenceDate not bound
!missing-selector! +NSDecimalNumber::decimalNumberWithDecimal: not bound
Expand Down Expand Up @@ -947,7 +941,6 @@
!missing-null-allowed! 'Foundation.NSBundle Foundation.NSBundle::FromUrl(Foundation.NSUrl)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSCachedUrlResponse Foundation.NSUrlCache::CachedResponseForRequest(Foundation.NSUrlRequest)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSCachedUrlResponse Foundation.NSUrlProtocol::get_CachedResponse()' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSCharacterSet Foundation.NSCharacterSet::FromFile(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSData Foundation.NSData::FromFile(System.String)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSData Foundation.NSData::FromFile(System.String,Foundation.NSDataReadingOptions,Foundation.NSError&)' is missing an [NullAllowed] on return type
!missing-null-allowed! 'Foundation.NSData Foundation.NSData::FromUrl(Foundation.NSUrl)' is missing an [NullAllowed] on return type
Expand Down