Package org.robovm.apple.foundation
Class NSString
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.foundation.NSString
- All Implemented Interfaces:
NSObjectProtocol,NSPropertyList,ObjCProtocol
- Direct Known Subclasses:
CSLocalizedString,NSMutableString
public class NSString extends NSObject implements NSPropertyList
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNSString.AsStringMarshalerstatic classNSString.NSStringPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAINFields inherited from class org.robovm.objc.ObjCObject
customClass -
Constructor Summary
Constructors Modifier Constructor Description NSString()NSString(String s)protectedNSString(NSObject.Handle h, long handle)protectedNSString(NSObject.SkipInit skipInit) -
Method Summary
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, willChangeValue, willChangeValue, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRefMethods inherited from class org.robovm.rt.bro.NativeObject
as, getHandle, setHandle
-
Constructor Details
-
NSString
-
NSString
public NSString() -
NSString
-
NSString
-
-
Method Details
-
length
protected long length() -
getChars
-
toString
-
length
-
getCharacters
-
getLocalizedString
-
getSize
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
getSize
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
draw
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
draw
@Deprecated public CGSize draw(CGPoint point, double width, UIFont font, NSLineBreakMode lineBreakMode)Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
getSize
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
getSize
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
draw
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
draw
@Deprecated public CGSize draw(NSString thiz, CGRect rect, UIFont font, NSLineBreakMode lineBreakMode)Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
draw
@Deprecated public CGSize draw(CGRect rect, UIFont font, NSLineBreakMode lineBreakMode, NSTextAlignment alignment)Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
getSize
@Deprecated public CGSize getSize(UIFont font, double minFontSize, double width, NSLineBreakMode lineBreakMode)Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
draw
@Deprecated public CGSize draw(CGPoint point, double width, UIFont font, double fontSize, NSLineBreakMode lineBreakMode, UIBaselineAdjustment baselineAdjustment)Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
getSize
- Since:
- Available in iOS 7.0 and later.
-
getSize
- Since:
- Available in iOS 7.0 and later.
-
getSize
- Since:
- Available in iOS 7.0 and later.
-
getSize
- Since:
- Available in iOS 7.0 and later.
-
getSize
- Since:
- Available in iOS 7.0 and later.
-
getSize
- Since:
- Available in iOS 7.0 and later.
-
getSize
- Since:
- Available in iOS 7.0 and later.
-
getSize
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGRect rect, NSStringDrawingOptions options, NSDictionary<NSString,NSObject> attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGRect rect, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGRect rect, NSStringDrawingOptions options, CMTextMarkupAttributes attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
draw
public void draw(CGRect rect, NSStringDrawingOptions options, CTAttributedStringAttributes attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(String str, CGRect rect, NSStringDrawingOptions options, NSDictionary<NSString,NSObject> attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(String str, CGRect rect, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(String str, CGRect rect, NSStringDrawingOptions options, CMTextMarkupAttributes attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
draw
public static void draw(String str, CGRect rect, NSStringDrawingOptions options, CTAttributedStringAttributes attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public CGRect getBoundingRect(CGSize size, NSStringDrawingOptions options, NSDictionary<NSString,NSObject> attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public CGRect getBoundingRect(CGSize size, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public CGRect getBoundingRect(CGSize size, NSStringDrawingOptions options, CMTextMarkupAttributes attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public CGRect getBoundingRect(CGSize size, NSStringDrawingOptions options, CTAttributedStringAttributes attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public static CGRect getBoundingRect(String str, CGSize size, NSStringDrawingOptions options, NSDictionary<NSString,NSObject> attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public static CGRect getBoundingRect(String str, CGSize size, NSStringDrawingOptions options, NSAttributedStringAttributes attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public static CGRect getBoundingRect(String str, CGSize size, NSStringDrawingOptions options, CMTextMarkupAttributes attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
getBoundingRect
public static CGRect getBoundingRect(String str, CGSize size, NSStringDrawingOptions options, CTAttributedStringAttributes attributes, NSStringDrawingContext context)- Since:
- Available in iOS 7.0 and later.
-
readFile
- Throws:
NSErrorException
-
hasPrefix
-
hasPrefix
-
hasSuffix
-
hasSuffix
-
toData
protected static NSData toData(long handle, Selector sel, NSStringEncoding encoding, boolean lossy) -
toData
-
toData
-
toData
-
appendPathComponent
-
appendPathComponent
-
appendPathExtension
-
appendPathExtension
-
addPercentEncoding
protected static String addPercentEncoding(long handle, Selector sel, NSCharacterSet allowedCharacters) -
addPercentEncoding
-
addPercentEscapes
-
addPercentEscapes
-
replacePercentEscapes
protected static String replacePercentEscapes(long handle, Selector sel, NSStringEncoding encoding) -
replacePercentEscapes
-
rangeOf
-
rangeOf
-
getCharactersAt
protected short getCharactersAt(long index) -
getCharacters
-
hasPrefix
-
hasSuffix
-
toData
-
toData
-
writeURL
public boolean writeURL(NSURL url, boolean atomically, NSStringEncoding enc) throws NSErrorException- Throws:
NSErrorException
-
writeFile
public boolean writeFile(String path, boolean atomically, NSStringEncoding enc) throws NSErrorException- Throws:
NSErrorException
-
init
protected long init(long characters, long length) -
create
protected static long create(long characters, long length) -
readURL
- Throws:
NSErrorException
-
readFile
- Throws:
NSErrorException
-
appendPathComponent
-
appendPathExtension
-
addPercentEncoding
-
addPercentEscapes
Deprecated.Deprecated in iOS 9.0. Use -stringByAddingPercentEncodingWithAllowedCharacters: instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent since each URL component or subcomponent has different rules for what characters are valid. -
replacePercentEscapes
Deprecated.Deprecated in iOS 9.0. Use -stringByRemovingPercentEncoding instead, which always uses the recommended UTF-8 encoding.
-