use objc2::__framework_prelude::*;
use crate::*;
pub type NSRangePointer = *mut NSRange;
extern "C" {
pub fn NSUnionRange(range1: NSRange, range2: NSRange) -> NSRange;
}
extern "C" {
pub fn NSIntersectionRange(range1: NSRange, range2: NSRange) -> NSRange;
}
extern "C" {
#[cfg(feature = "NSString")]
pub fn NSStringFromRange(range: NSRange) -> NonNull<NSString>;
}
extern "C" {
#[cfg(feature = "NSString")]
pub fn NSRangeFromString(a_string: &NSString) -> NSRange;
}
extern_methods!(
#[cfg(feature = "NSValue")]
unsafe impl NSValue {
#[method_id(@__retain_semantics Other valueWithRange:)]
pub unsafe fn valueWithRange(range: NSRange) -> Retained<NSValue>;
#[method(rangeValue)]
pub unsafe fn rangeValue(&self) -> NSRange;
}
);