/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static CGSize getSize(String str, NSDictionary<NSString, NSObject> attrs) { return NSStringExtensions.getSize(create(getChars(str), str.length()), attrs); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, NSDictionary<NSString, NSObject> attrs) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, attrs); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static CGRect getBoundingRect(String str, CGSize size, NSStringDrawingOptions options, NSDictionary<NSString, NSObject> attributes, NSStringDrawingContext context) { return NSStringExtensions.getBoundingRect(create(getChars(str), str.length()), size, options, attributes, context); } /**
@Override public V remove(Object key) { if (key == null) throw new IllegalArgumentException("key cannot be null"); V oldValue = get(key); if (key instanceof NSObject) { removeObject((NSObject) key); } else { String strKey = String.valueOf(key); removeObjectForKey$(NSString.create(NSString.getChars(strKey), strKey.length())); } return oldValue; }
protected NSObject getObjectForKey(Object key) { if (key == null) throw new IllegalArgumentException("key cannot be null"); if (key instanceof NSObject) { return objectForKey$(((NSObject)key).getHandle()); } else { String strKey = String.valueOf(key); return objectForKey$(NSString.create(NSString.getChars(strKey), strKey.length())); } } @Method(selector = "objectForKey:")
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGPoint point, NSDictionary<NSString, NSObject> attrs) { NSStringExtensions.draw(create(getChars(str), str.length()), point, attrs); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static CGSize getSize(String str, NSDictionary<NSString, NSObject> attrs) { return NSStringExtensions.getSize(create(getChars(str), str.length()), attrs); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, NSStringDrawingOptions options, NSDictionary<NSString, NSObject> attributes, NSStringDrawingContext context) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, options, attributes, context); } /**
public static String replacePercentEscapes(String str, NSStringEncoding encoding) { long handle = create(getChars(str), str.length()); return replacePercentEscapes(handle, sel_stringByReplacingPercentEscapesUsingEncoding$, encoding); }
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, options, attributes.getDictionary(), context); } /**
public static String appendPathComponent(String str, String component) { long handle = create(getChars(str), str.length()); return appendPathComponent(handle, sel_stringByAppendingPathComponent$, component); }
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, NSAttributedStringAttributes attrs) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, attrs.getDictionary()); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static CGRect getBoundingRect(String str, CGSize size, NSStringDrawingOptions options, CTAttributedStringAttributes attributes, NSStringDrawingContext context) { return NSStringExtensions.getBoundingRect(create(getChars(str), str.length()), size, options, attributes.getDictionary().as(NSDictionary.class), context); }
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGPoint point, CMTextMarkupAttributes attrs) { NSStringExtensions.draw(create(getChars(str), str.length()), point, attrs.getDictionary().as(NSDictionary.class)); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, NSStringDrawingOptions options, CMTextMarkupAttributes attributes, NSStringDrawingContext context) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, options, attributes.getDictionary().as(NSDictionary.class), context); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static CGSize getSize(String str, CMTextMarkupAttributes attrs) { return NSStringExtensions.getSize(create(getChars(str), str.length()), attrs.getDictionary().as(NSDictionary.class)); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static CGSize getSize(String str, CTAttributedStringAttributes attrs) { return NSStringExtensions.getSize(create(getChars(str), str.length()), attrs.getDictionary().as(NSDictionary.class)); }
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGPoint point, CTAttributedStringAttributes attrs) { NSStringExtensions.draw(create(getChars(str), str.length()), point, attrs.getDictionary().as(NSDictionary.class)); }
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, CMTextMarkupAttributes attrs) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, attrs.getDictionary().as(NSDictionary.class)); } /**
/** * @since Available in iOS 7.0 and later. */ @WeaklyLinked public static void draw(String str, CGRect rect, CMTextMarkupAttributes attrs) { NSStringExtensions.draw(create(getChars(str), str.length()), rect, attrs.getDictionary().as(NSDictionary.class)); } /**