public class NSString extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding, NSItemProviderReading, NSItemProviderWriting, CKRecordValue, CNKeyDescriptor
| Modifier and Type | Class and Description |
|---|---|
static interface |
NSString.Block_enumerateLinesUsingBlock |
static interface |
NSString.Block_enumerateLinguisticTagsInRangeSchemeOptionsOrthographyUsingBlock |
static interface |
NSString.Block_enumerateSubstringsInRangeOptionsUsingBlock |
static interface |
NSString.Block_initWithBytesNoCopyLengthEncodingDeallocator |
static interface |
NSString.Block_initWithCharactersNoCopyLengthDeallocator |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retNSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler| Modifier | Constructor and Description |
|---|---|
protected |
NSString(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
long |
_itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier) |
NSString |
_objectWithItemProviderDataTypeIdentifierError(NSData data,
java.lang.String typeIdentifier,
org.moe.natj.general.ptr.Ptr<NSError> outError) |
NSArray<java.lang.String> |
_readableTypeIdentifiersForItemProvider() |
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
NSArray<java.lang.String> |
_writableTypeIdentifiersForItemProvider_static() |
static boolean |
accessInstanceVariablesDirectly() |
static NSString |
alloc() |
static NSString |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static org.moe.natj.general.ptr.ConstNUIntPtr |
availableStringEncodings() |
boolean |
boolValue()
Skips initial space characters (whitespaceSet), or optional -/+ sign followed by zeroes.
|
CGRect |
boundingRectWithSizeOptionsAttributesContext(CGSize size,
long options,
NSDictionary<java.lang.String,?> attributes,
NSStringDrawingContext context) |
boolean |
canBeConvertedToEncoding(long encoding) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
java.lang.String |
capitalizedString() |
java.lang.String |
capitalizedStringWithLocale(NSLocale locale) |
long |
caseInsensitiveCompare(java.lang.String string) |
char |
characterAtIndex(long index) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
java.lang.String |
commonPrefixWithStringOptions(java.lang.String str,
long mask) |
long |
compare(java.lang.String string)
In the compare: methods, the range argument specifies the subrange, rather than the whole, of the receiver to use in the comparison.
|
long |
compareOptions(java.lang.String string,
long mask) |
long |
compareOptionsRange(java.lang.String string,
long mask,
NSRange rangeOfReceiverToCompare) |
long |
compareOptionsRangeLocale(java.lang.String string,
long mask,
NSRange rangeOfReceiverToCompare,
java.lang.Object locale)
locale arg used to be a dictionary pre-Leopard.
|
long |
completePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes(org.moe.natj.general.ptr.Ptr<NSString> outputName,
boolean flag,
org.moe.natj.general.ptr.Ptr<NSArray<java.lang.String>> outputArray,
NSArray<java.lang.String> filterTypes) |
NSArray<java.lang.String> |
componentsSeparatedByCharactersInSet(NSCharacterSet separator) |
NSArray<java.lang.String> |
componentsSeparatedByString(java.lang.String separator) |
boolean |
containsString(java.lang.String str)
Simple convenience methods for string searching.
|
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
org.moe.natj.general.ptr.ConstBytePtr |
cString()
Deprecated.
|
long |
cStringLength()
Deprecated.
|
org.moe.natj.general.ptr.ConstBytePtr |
cStringUsingEncoding(long encoding)
"Autoreleased"; NULL return if encoding conversion not possible; for performance reasons, lifetime of this should not be considered longer than the lifetime of the receiving string (if the receiver string is freed, this might go invalid then, before the end of the autorelease scope).
|
NSData |
dataUsingEncoding(long encoding)
External representation
|
NSData |
dataUsingEncodingAllowLossyConversion(long encoding,
boolean lossy)
External representation
|
static java.lang.String |
debugDescription_static() |
java.lang.String |
decomposedStringWithCanonicalMapping() |
java.lang.String |
decomposedStringWithCompatibilityMapping() |
static long |
defaultCStringEncoding()
Should be rarely used
|
static java.lang.String |
deferredLocalizedIntentsStringWithFormat(java.lang.String format,
java.lang.Object... varargs)
Reads the string from the Localizable.strings file in the main app's bundle
|
static java.lang.String |
deferredLocalizedIntentsStringWithFormatFromTable(java.lang.String format,
java.lang.String table,
java.lang.Object... varargs)
Reads the string from the provided table file in the main app's bundle
|
static java.lang.String |
deferredLocalizedIntentsStringWithFormatFromTableArguments(java.lang.String format,
java.lang.String table,
org.moe.natj.general.ptr.BytePtr arguments)
Reads the string from the provided table file in the main app's bundle
|
java.lang.String |
description() |
double |
doubleValue()
The following convenience methods all skip initial space characters (whitespaceSet) and ignore trailing characters.
|
CGSize |
drawAtPointForWidthWithFontFontSizeLineBreakModeBaselineAdjustment(CGPoint point,
double width,
UIFont font,
double fontSize,
long lineBreakMode,
long baselineAdjustment)
Deprecated.
|
CGSize |
drawAtPointForWidthWithFontLineBreakMode(CGPoint point,
double width,
UIFont font,
long lineBreakMode)
Deprecated.
|
CGSize |
drawAtPointForWidthWithFontMinFontSizeActualFontSizeLineBreakModeBaselineAdjustment(CGPoint point,
double width,
UIFont font,
double minFontSize,
org.moe.natj.general.ptr.NFloatPtr actualFontSize,
long lineBreakMode,
long baselineAdjustment)
Deprecated.
|
void |
drawAtPointWithAttributes(CGPoint point,
NSDictionary<java.lang.String,?> attrs) |
CGSize |
drawAtPointWithFont(CGPoint point,
UIFont font)
Deprecated.
|
void |
drawInRectWithAttributes(CGRect rect,
NSDictionary<java.lang.String,?> attrs) |
CGSize |
drawInRectWithFont(CGRect rect,
UIFont font)
Deprecated.
|
CGSize |
drawInRectWithFontLineBreakMode(CGRect rect,
UIFont font,
long lineBreakMode)
Deprecated.
|
CGSize |
drawInRectWithFontLineBreakModeAlignment(CGRect rect,
UIFont font,
long lineBreakMode,
long alignment)
Deprecated.
|
void |
drawWithRectOptionsAttributesContext(CGRect rect,
long options,
NSDictionary<java.lang.String,?> attributes,
NSStringDrawingContext context) |
void |
encodeWithCoder(NSCoder coder) |
void |
enumerateLinesUsingBlock(NSString.Block_enumerateLinesUsingBlock block) |
void |
enumerateLinguisticTagsInRangeSchemeOptionsOrthographyUsingBlock(NSRange range,
java.lang.String scheme,
long options,
NSOrthography orthography,
NSString.Block_enumerateLinguisticTagsInRangeSchemeOptionsOrthographyUsingBlock block) |
void |
enumerateSubstringsInRangeOptionsUsingBlock(NSRange range,
long opts,
NSString.Block_enumerateSubstringsInRangeOptionsUsingBlock block)
In the enumerate methods, the blocks will be invoked inside an autorelease pool, so any values assigned inside the block should be retained.
|
long |
fastestEncoding()
Result in O(1) time; a rough estimate
|
java.lang.String |
fileSystemRepresentation() |
float |
floatValue() |
boolean |
getBytesMaxLengthUsedLengthEncodingOptionsRangeRemainingRange(org.moe.natj.general.ptr.VoidPtr buffer,
long maxBufferCount,
org.moe.natj.general.ptr.NUIntPtr usedBufferCount,
long encoding,
long options,
NSRange range,
NSRange leftover)
Use this to convert string section at a time into a fixed-size buffer, without any allocations.
|
void |
getCharacters(org.moe.natj.general.ptr.CharPtr buffer)
This method is unsafe because it could potentially cause buffer overruns.
|
void |
getCharactersRange(org.moe.natj.general.ptr.CharPtr buffer,
NSRange range)
Use with rangeOfComposedCharacterSequencesForRange: to avoid breaking up character sequences
|
void |
getCString(org.moe.natj.general.ptr.BytePtr bytes)
Deprecated.
|
void |
getCStringMaxLength(org.moe.natj.general.ptr.BytePtr bytes,
long maxLength)
Deprecated.
|
boolean |
getCStringMaxLengthEncoding(org.moe.natj.general.ptr.BytePtr buffer,
long maxBufferCount,
long encoding)
NO return if conversion not possible due to encoding errors or too small of a buffer.
|
void |
getCStringMaxLengthRangeRemainingRange(org.moe.natj.general.ptr.BytePtr bytes,
long maxLength,
NSRange aRange,
NSRange leftoverRange)
Deprecated.
|
boolean |
getFileSystemRepresentationMaxLength(org.moe.natj.general.ptr.BytePtr cname,
long max) |
void |
getLineStartEndContentsEndForRange(org.moe.natj.general.ptr.NUIntPtr startPtr,
org.moe.natj.general.ptr.NUIntPtr lineEndPtr,
org.moe.natj.general.ptr.NUIntPtr contentsEndPtr,
NSRange range) |
void |
getParagraphStartEndContentsEndForRange(org.moe.natj.general.ptr.NUIntPtr startPtr,
org.moe.natj.general.ptr.NUIntPtr parEndPtr,
org.moe.natj.general.ptr.NUIntPtr contentsEndPtr,
NSRange range) |
long |
hash() |
boolean |
hasPrefix(java.lang.String str)
These perform locale unaware prefix or suffix match.
|
boolean |
hasSuffix(java.lang.String str) |
NSString |
init()
The initializers available to subclasses.
|
NSString |
initWithBytesLengthEncoding(org.moe.natj.general.ptr.ConstVoidPtr bytes,
long len,
long encoding) |
NSString |
initWithBytesNoCopyLengthEncodingDeallocator(org.moe.natj.general.ptr.VoidPtr bytes,
long len,
long encoding,
NSString.Block_initWithBytesNoCopyLengthEncodingDeallocator deallocator) |
NSString |
initWithBytesNoCopyLengthEncodingFreeWhenDone(org.moe.natj.general.ptr.VoidPtr bytes,
long len,
long encoding,
boolean freeBuffer)
"NoCopy" is a hint
|
NSString |
initWithCharactersLength(org.moe.natj.general.ptr.ConstCharPtr characters,
long length) |
NSString |
initWithCharactersNoCopyLengthDeallocator(org.moe.natj.general.ptr.CharPtr chars,
long len,
NSString.Block_initWithCharactersNoCopyLengthDeallocator deallocator) |
NSString |
initWithCharactersNoCopyLengthFreeWhenDone(org.moe.natj.general.ptr.CharPtr characters,
long length,
boolean freeBuffer)
"NoCopy" is a hint
|
NSString |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
NSString |
initWithContentsOfFile(java.lang.String path)
Deprecated.
|
NSString |
initWithContentsOfFileEncodingError(java.lang.String path,
long enc,
org.moe.natj.general.ptr.Ptr<NSError> error) |
NSString |
initWithContentsOfFileUsedEncodingError(java.lang.String path,
org.moe.natj.general.ptr.NUIntPtr enc,
org.moe.natj.general.ptr.Ptr<NSError> error) |
NSString |
initWithContentsOfURL(NSURL url)
Deprecated.
|
NSString |
initWithContentsOfURLEncodingError(NSURL url,
long enc,
org.moe.natj.general.ptr.Ptr<NSError> error)
These use the specified encoding.
|
NSString |
initWithContentsOfURLUsedEncodingError(NSURL url,
org.moe.natj.general.ptr.NUIntPtr enc,
org.moe.natj.general.ptr.Ptr<NSError> error)
These try to determine the encoding, and return the encoding which was used.
|
NSString |
initWithCString(org.moe.natj.general.ptr.ConstBytePtr bytes)
Deprecated.
|
NSString |
initWithCStringEncoding(org.moe.natj.general.ptr.ConstBytePtr nullTerminatedCString,
long encoding) |
NSString |
initWithCStringLength(org.moe.natj.general.ptr.ConstBytePtr bytes,
long length)
Deprecated.
|
NSString |
initWithCStringNoCopyLengthFreeWhenDone(org.moe.natj.general.ptr.BytePtr bytes,
long length,
boolean freeBuffer)
Deprecated.
|
NSString |
initWithDataEncoding(NSData data,
long encoding) |
NSString |
initWithFormat(java.lang.String format,
java.lang.Object... varargs) |
NSString |
initWithFormatArguments(java.lang.String format,
org.moe.natj.general.ptr.BytePtr argList) |
NSString |
initWithFormatLocale(java.lang.String format,
java.lang.Object locale,
java.lang.Object... varargs) |
NSString |
initWithFormatLocaleArguments(java.lang.String format,
java.lang.Object locale,
org.moe.natj.general.ptr.BytePtr argList) |
NSString |
initWithString(java.lang.String aString) |
NSString |
initWithUTF8String(org.moe.natj.general.ptr.ConstBytePtr nullTerminatedCString) |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
long |
integerValue() |
int |
intValue() |
boolean |
isAbsolutePath() |
boolean |
isEqualToString(java.lang.String aString) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static long |
itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier) |
long |
itemProviderVisibilityForRepresentationWithTypeIdentifier(java.lang.String typeIdentifier) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
java.lang.String |
lastPathComponent() |
long |
length()
NSString primitives.
|
long |
lengthOfBytesUsingEncoding(long enc)
Result in O(n) time; the result is exact.
|
NSRange |
lineRangeForRange(NSRange range) |
NSArray<java.lang.String> |
linguisticTagsInRangeSchemeOptionsOrthographyTokenRanges(NSRange range,
java.lang.String scheme,
long options,
NSOrthography orthography,
org.moe.natj.general.ptr.Ptr<NSArray<? extends NSValue>> tokenRanges)
Clients wishing to analyze a given string once may use these NSString APIs without having to create an instance of NSLinguisticTagger.
|
NSProgress |
loadDataWithTypeIdentifierForItemProviderCompletionHandler(java.lang.String typeIdentifier,
NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)
One of writableTypeIdentifiersForItemProvider
|
java.lang.String |
localizedCapitalizedString() |
long |
localizedCaseInsensitiveCompare(java.lang.String string) |
boolean |
localizedCaseInsensitiveContainsString(java.lang.String str) |
long |
localizedCompare(java.lang.String string) |
java.lang.String |
localizedLowercaseString() |
static java.lang.String |
localizedNameOfStringEncoding(long encoding) |
long |
localizedStandardCompare(java.lang.String string)
localizedStandardCompare:, added in 10.6, should be used whenever file names or other strings are presented in lists and tables where Finder-like sorting is appropriate.
|
boolean |
localizedStandardContainsString(java.lang.String str)
The following two are the most appropriate methods for doing user-level string searches, similar to how searches are done generally in the system.
|
NSRange |
localizedStandardRangeOfString(java.lang.String str) |
static NSString |
localizedStringWithFormat(java.lang.String format,
java.lang.Object... varargs) |
java.lang.String |
localizedUppercaseString()
The following three return the locale-aware case mappings.
|
static java.lang.String |
localizedUserNotificationStringForKeyArguments(java.lang.String key,
NSArray<?> arguments)
Use -[NSString localizedUserNotificationStringForKey:arguments:] to provide a string that will be localized at the time that the notification is presented.
|
long |
longLongValue() |
org.moe.natj.general.ptr.ConstBytePtr |
lossyCString()
Deprecated.
|
java.lang.String |
lowercaseString() |
java.lang.String |
lowercaseStringWithLocale(NSLocale locale) |
long |
maximumLengthOfBytesUsingEncoding(long enc)
Result in O(1) time; the estimate may be way over what's needed.
|
java.lang.Object |
mutableCopyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static NSString |
new_objc() |
static NSString |
objectWithItemProviderDataTypeIdentifierError(NSData data,
java.lang.String typeIdentifier,
org.moe.natj.general.ptr.Ptr<NSError> outError) |
NSRange |
paragraphRangeForRange(NSRange range) |
NSArray<java.lang.String> |
pathComponents() |
java.lang.String |
pathExtension() |
static java.lang.String |
pathWithComponents(NSArray<java.lang.String> components) |
java.lang.String |
precomposedStringWithCanonicalMapping() |
java.lang.String |
precomposedStringWithCompatibilityMapping() |
java.lang.Object |
propertyList()
These methods are no longer recommended since they do not work with property lists and strings files in binary plist format.
|
NSDictionary<?,?> |
propertyListFromStringsFileFormat() |
NSRange |
rangeOfCharacterFromSet(NSCharacterSet searchSet)
These return the range of the first character from the set in the string, not the range of a sequence of characters.
|
NSRange |
rangeOfCharacterFromSetOptions(NSCharacterSet searchSet,
long mask) |
NSRange |
rangeOfCharacterFromSetOptionsRange(NSCharacterSet searchSet,
long mask,
NSRange rangeOfReceiverToSearch) |
NSRange |
rangeOfComposedCharacterSequenceAtIndex(long index) |
NSRange |
rangeOfComposedCharacterSequencesForRange(NSRange range) |
NSRange |
rangeOfString(java.lang.String searchString)
These methods perform string search, looking for the searchString within the receiver string.
|
NSRange |
rangeOfStringOptions(java.lang.String searchString,
long mask) |
NSRange |
rangeOfStringOptionsRange(java.lang.String searchString,
long mask,
NSRange rangeOfReceiverToSearch) |
NSRange |
rangeOfStringOptionsRangeLocale(java.lang.String searchString,
long mask,
NSRange rangeOfReceiverToSearch,
NSLocale locale) |
static NSArray<java.lang.String> |
readableTypeIdentifiersForItemProvider() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static void |
setVersion_static(long aVersion) |
CGSize |
sizeWithAttributes(NSDictionary<java.lang.String,?> attrs) |
CGSize |
sizeWithFont(UIFont font)
Deprecated.
|
CGSize |
sizeWithFontConstrainedToSize(UIFont font,
CGSize size)
Deprecated.
|
CGSize |
sizeWithFontConstrainedToSizeLineBreakMode(UIFont font,
CGSize size,
long lineBreakMode)
Deprecated.
|
CGSize |
sizeWithFontForWidthLineBreakMode(UIFont font,
double width,
long lineBreakMode)
Deprecated.
|
CGSize |
sizeWithFontMinFontSizeActualFontSizeForWidthLineBreakMode(UIFont font,
double minFontSize,
org.moe.natj.general.ptr.NFloatPtr actualFontSize,
double width,
long lineBreakMode)
Deprecated.
|
long |
smallestEncoding()
Result in O(n) time; the encoding in which the string is most compact
|
java.lang.String |
sr_sensorForDeletionRecordsFromSensor()
Returns a sensor stream that contains deletion records of the sensor
|
static NSString |
string() |
java.lang.String |
stringByAbbreviatingWithTildeInPath() |
java.lang.String |
stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet allowedCharacters)
Returns a new string made from the receiver by replacing all characters not in the allowedCharacters set with percent encoded characters.
|
java.lang.String |
stringByAddingPercentEscapesUsingEncoding(long enc)
Deprecated.
|
java.lang.String |
stringByAppendingFormat(java.lang.String format,
java.lang.Object... varargs) |
java.lang.String |
stringByAppendingPathComponent(java.lang.String str) |
java.lang.String |
stringByAppendingPathComponentConformingToType(java.lang.String partialName,
UTType contentType)
\brief Generate a path component based on a partial filename and a file
type, then append it to a copy of the receiver.
|
java.lang.String |
stringByAppendingPathExtension(java.lang.String str) |
java.lang.String |
stringByAppendingPathExtensionForType(UTType contentType)
\brief Generate a string based on a partial filename or path and a
file type.
|
java.lang.String |
stringByAppendingString(java.lang.String aString) |
java.lang.String |
stringByApplyingTransformReverse(java.lang.String transform,
boolean reverse)
Returns nil if reverse not applicable or transform is invalid
|
java.lang.String |
stringByDeletingLastPathComponent() |
java.lang.String |
stringByDeletingPathExtension() |
java.lang.String |
stringByExpandingTildeInPath() |
java.lang.String |
stringByFoldingWithOptionsLocale(long options,
NSLocale locale)
Returns a string with the character folding options applied.
|
java.lang.String |
stringByPaddingToLengthWithStringStartingAtIndex(long newLength,
java.lang.String padString,
long padIndex) |
java.lang.String |
stringByRemovingPercentEncoding()
Returns a new string made from the receiver by replacing all percent encoded sequences with the matching UTF-8 characters.
|
java.lang.String |
stringByReplacingCharactersInRangeWithString(NSRange range,
java.lang.String replacement)
Replace characters in range with the specified string, returning new string.
|
java.lang.String |
stringByReplacingOccurrencesOfStringWithString(java.lang.String target,
java.lang.String replacement)
Replace all occurrences of the target string with replacement.
|
java.lang.String |
stringByReplacingOccurrencesOfStringWithStringOptionsRange(java.lang.String target,
java.lang.String replacement,
long options,
NSRange searchRange)
Replace all occurrences of the target string in the specified range with replacement.
|
java.lang.String |
stringByReplacingPercentEscapesUsingEncoding(long enc)
Deprecated.
|
java.lang.String |
stringByResolvingSymlinksInPath() |
java.lang.String |
stringByStandardizingPath() |
java.lang.String |
stringByTrimmingCharactersInSet(NSCharacterSet set) |
static long |
stringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(NSData data,
NSDictionary<java.lang.String,?> opts,
org.moe.natj.general.ptr.Ptr<NSString> string,
org.moe.natj.general.ptr.BoolPtr usedLossyConversion)
This API is used to detect the string encoding of a given raw data.
|
NSArray<java.lang.String> |
stringsByAppendingPaths(NSArray<java.lang.String> paths) |
static NSString |
stringWithCharactersLength(org.moe.natj.general.ptr.ConstCharPtr characters,
long length) |
static NSString |
stringWithContentsOfFile(java.lang.String path)
Deprecated.
|
static NSString |
stringWithContentsOfFileEncodingError(java.lang.String path,
long enc,
org.moe.natj.general.ptr.Ptr<NSError> error) |
static NSString |
stringWithContentsOfFileUsedEncodingError(java.lang.String path,
org.moe.natj.general.ptr.NUIntPtr enc,
org.moe.natj.general.ptr.Ptr<NSError> error) |
static NSString |
stringWithContentsOfURL(NSURL url)
Deprecated.
|
static NSString |
stringWithContentsOfURLEncodingError(NSURL url,
long enc,
org.moe.natj.general.ptr.Ptr<NSError> error) |
static NSString |
stringWithContentsOfURLUsedEncodingError(NSURL url,
org.moe.natj.general.ptr.NUIntPtr enc,
org.moe.natj.general.ptr.Ptr<NSError> error) |
static NSString |
stringWithCString(org.moe.natj.general.ptr.ConstBytePtr bytes)
Deprecated.
|
static NSString |
stringWithCStringEncoding(org.moe.natj.general.ptr.ConstBytePtr cString,
long enc) |
static NSString |
stringWithCStringLength(org.moe.natj.general.ptr.ConstBytePtr bytes,
long length)
Deprecated.
|
static NSString |
stringWithFormat(java.lang.String format,
java.lang.Object... varargs) |
static NSString |
stringWithString(java.lang.String string) |
static NSString |
stringWithUTF8String(org.moe.natj.general.ptr.ConstBytePtr nullTerminatedCString) |
java.lang.String |
substringFromIndex(long from)
To avoid breaking up character sequences such as Emoji, you can do:
[str substringFromIndex:[str rangeOfComposedCharacterSequenceAtIndex:index].location]
[str substringToIndex:NSMaxRange([str rangeOfComposedCharacterSequenceAtIndex:index])]
[str substringWithRange:[str rangeOfComposedCharacterSequencesForRange:range]
|
java.lang.String |
substringToIndex(long to) |
java.lang.String |
substringWithRange(NSRange range)
Use with rangeOfComposedCharacterSequencesForRange: to avoid breaking up character sequences
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
java.lang.String |
uppercaseString()
The following three return the canonical (non-localized) mappings.
|
java.lang.String |
uppercaseStringWithLocale(NSLocale locale)
The following methods perform localized case mappings based on the locale specified.
|
org.moe.natj.general.ptr.ConstBytePtr |
UTF8String()
Convenience to return null-terminated UTF8 representation
|
java.lang.String |
variantFittingPresentationWidth(long width)
For strings with length variations, such as from a stringsdict file, this method returns the variant at the given width.
|
static long |
version_static() |
static NSArray<java.lang.String> |
writableTypeIdentifiersForItemProvider_static() |
NSArray<java.lang.String> |
writableTypeIdentifiersForItemProvider() |
boolean |
writeToFileAtomically(java.lang.String path,
boolean useAuxiliaryFile)
Deprecated.
|
boolean |
writeToFileAtomicallyEncodingError(java.lang.String path,
boolean useAuxiliaryFile,
long enc,
org.moe.natj.general.ptr.Ptr<NSError> error) |
boolean |
writeToURLAtomically(NSURL url,
boolean atomically)
Deprecated.
|
boolean |
writeToURLAtomicallyEncodingError(NSURL url,
boolean useAuxiliaryFile,
long enc,
org.moe.natj.general.ptr.Ptr<NSError> error)
Write to specified url or path using the specified encoding.
|
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description_static, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash_static, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NSString alloc()
public static NSString allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static org.moe.natj.general.ptr.ConstNUIntPtr availableStringEncodings()
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static long defaultCStringEncoding()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static java.lang.String localizedNameOfStringEncoding(long encoding)
public static NSString localizedStringWithFormat(java.lang.String format, java.lang.Object... varargs)
public static java.lang.String localizedUserNotificationStringForKeyArguments(java.lang.String key,
NSArray<?> arguments)
public static NSString new_objc()
public static java.lang.String pathWithComponents(NSArray<java.lang.String> components)
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static NSString string()
public static long stringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(NSData data, NSDictionary<java.lang.String,?> opts, org.moe.natj.general.ptr.Ptr<NSString> string, org.moe.natj.general.ptr.BoolPtr usedLossyConversion)
The possible items for the dictionary are: 1) an array of suggested string encodings (without specifying the 3rd option in this list, all string encodings are considered but the ones in the array will have a higher preference; moreover, the order of the encodings in the array is important: the first encoding has a higher preference than the second one in the array) 2) an array of string encodings not to use (the string encodings in this list will not be considered at all) 3) a boolean option indicating whether only the suggested string encodings are considered 4) a boolean option indicating whether lossy is allowed 5) an option that gives a specific string to substitude for mystery bytes 6) the current user's language 7) a boolean option indicating whether the data is generated by Windows
If the values in the dictionary have wrong types (for example, the value of NSStringEncodingDetectionSuggestedEncodingsKey is not an array), an exception is thrown. If the values in the dictionary are unknown (for example, the value in the array of suggested string encodings is not a valid encoding), the values will be ignored.
@Deprecated public static NSString stringWithCString(org.moe.natj.general.ptr.ConstBytePtr bytes)
public static NSString stringWithCStringEncoding(org.moe.natj.general.ptr.ConstBytePtr cString, long enc)
@Deprecated public static NSString stringWithCStringLength(org.moe.natj.general.ptr.ConstBytePtr bytes, long length)
public static NSString stringWithCharactersLength(org.moe.natj.general.ptr.ConstCharPtr characters, long length)
@Deprecated public static NSString stringWithContentsOfFile(java.lang.String path)
public static NSString stringWithContentsOfFileEncodingError(java.lang.String path, long enc, org.moe.natj.general.ptr.Ptr<NSError> error)
public static NSString stringWithContentsOfFileUsedEncodingError(java.lang.String path, org.moe.natj.general.ptr.NUIntPtr enc, org.moe.natj.general.ptr.Ptr<NSError> error)
@Deprecated public static NSString stringWithContentsOfURL(NSURL url)
public static NSString stringWithContentsOfURLEncodingError(NSURL url, long enc, org.moe.natj.general.ptr.Ptr<NSError> error)
public static NSString stringWithContentsOfURLUsedEncodingError(NSURL url, org.moe.natj.general.ptr.NUIntPtr enc, org.moe.natj.general.ptr.Ptr<NSError> error)
public static NSString stringWithFormat(java.lang.String format, java.lang.Object... varargs)
public static NSString stringWithString(java.lang.String string)
public static NSString stringWithUTF8String(org.moe.natj.general.ptr.ConstBytePtr nullTerminatedCString)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public org.moe.natj.general.ptr.ConstBytePtr UTF8String()
public boolean boolValue()
public CGRect boundingRectWithSizeOptionsAttributesContext(CGSize size, long options, NSDictionary<java.lang.String,?> attributes, NSStringDrawingContext context)
@Deprecated public org.moe.natj.general.ptr.ConstBytePtr cString()
@Deprecated public long cStringLength()
public org.moe.natj.general.ptr.ConstBytePtr cStringUsingEncoding(long encoding)
public boolean canBeConvertedToEncoding(long encoding)
public java.lang.String capitalizedString()
public java.lang.String capitalizedStringWithLocale(NSLocale locale)
public long caseInsensitiveCompare(java.lang.String string)
public char characterAtIndex(long index)
public java.lang.String commonPrefixWithStringOptions(java.lang.String str,
long mask)
public long compare(java.lang.String string)
public long compareOptions(java.lang.String string,
long mask)
public long compareOptionsRange(java.lang.String string,
long mask,
NSRange rangeOfReceiverToCompare)
public long compareOptionsRangeLocale(java.lang.String string,
long mask,
NSRange rangeOfReceiverToCompare,
java.lang.Object locale)
public long completePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes(org.moe.natj.general.ptr.Ptr<NSString> outputName, boolean flag, org.moe.natj.general.ptr.Ptr<NSArray<java.lang.String>> outputArray, NSArray<java.lang.String> filterTypes)
public NSArray<java.lang.String> componentsSeparatedByCharactersInSet(NSCharacterSet separator)
public NSArray<java.lang.String> componentsSeparatedByString(java.lang.String separator)
public boolean containsString(java.lang.String str)
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic NSData dataUsingEncoding(long encoding)
public NSData dataUsingEncodingAllowLossyConversion(long encoding, boolean lossy)
public java.lang.String decomposedStringWithCanonicalMapping()
public java.lang.String decomposedStringWithCompatibilityMapping()
public java.lang.String description()
description in interface NSObjectdescription in class NSObjectpublic double doubleValue()
@Deprecated public CGSize drawAtPointForWidthWithFontFontSizeLineBreakModeBaselineAdjustment(CGPoint point, double width, UIFont font, double fontSize, long lineBreakMode, long baselineAdjustment)
@Deprecated public CGSize drawAtPointForWidthWithFontLineBreakMode(CGPoint point, double width, UIFont font, long lineBreakMode)
@Deprecated public CGSize drawAtPointForWidthWithFontMinFontSizeActualFontSizeLineBreakModeBaselineAdjustment(CGPoint point, double width, UIFont font, double minFontSize, org.moe.natj.general.ptr.NFloatPtr actualFontSize, long lineBreakMode, long baselineAdjustment)
public void drawAtPointWithAttributes(CGPoint point, NSDictionary<java.lang.String,?> attrs)
@Deprecated public CGSize drawAtPointWithFont(CGPoint point, UIFont font)
public void drawInRectWithAttributes(CGRect rect, NSDictionary<java.lang.String,?> attrs)
@Deprecated public CGSize drawInRectWithFont(CGRect rect, UIFont font)
@Deprecated public CGSize drawInRectWithFontLineBreakMode(CGRect rect, UIFont font, long lineBreakMode)
@Deprecated public CGSize drawInRectWithFontLineBreakModeAlignment(CGRect rect, UIFont font, long lineBreakMode, long alignment)
public void drawWithRectOptionsAttributesContext(CGRect rect, long options, NSDictionary<java.lang.String,?> attributes, NSStringDrawingContext context)
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic void enumerateLinesUsingBlock(NSString.Block_enumerateLinesUsingBlock block)
public void enumerateLinguisticTagsInRangeSchemeOptionsOrthographyUsingBlock(NSRange range, java.lang.String scheme, long options, NSOrthography orthography, NSString.Block_enumerateLinguisticTagsInRangeSchemeOptionsOrthographyUsingBlock block)
public void enumerateSubstringsInRangeOptionsUsingBlock(NSRange range, long opts, NSString.Block_enumerateSubstringsInRangeOptionsUsingBlock block)
public long fastestEncoding()
public java.lang.String fileSystemRepresentation()
public float floatValue()
public boolean getBytesMaxLengthUsedLengthEncodingOptionsRangeRemainingRange(org.moe.natj.general.ptr.VoidPtr buffer,
long maxBufferCount,
org.moe.natj.general.ptr.NUIntPtr usedBufferCount,
long encoding,
long options,
NSRange range,
NSRange leftover)
@Deprecated public void getCString(org.moe.natj.general.ptr.BytePtr bytes)
@Deprecated
public void getCStringMaxLength(org.moe.natj.general.ptr.BytePtr bytes,
long maxLength)
public boolean getCStringMaxLengthEncoding(org.moe.natj.general.ptr.BytePtr buffer,
long maxBufferCount,
long encoding)
@Deprecated
public void getCStringMaxLengthRangeRemainingRange(org.moe.natj.general.ptr.BytePtr bytes,
long maxLength,
NSRange aRange,
NSRange leftoverRange)
public void getCharacters(org.moe.natj.general.ptr.CharPtr buffer)
public void getCharactersRange(org.moe.natj.general.ptr.CharPtr buffer,
NSRange range)
public boolean getFileSystemRepresentationMaxLength(org.moe.natj.general.ptr.BytePtr cname,
long max)
public void getLineStartEndContentsEndForRange(org.moe.natj.general.ptr.NUIntPtr startPtr,
org.moe.natj.general.ptr.NUIntPtr lineEndPtr,
org.moe.natj.general.ptr.NUIntPtr contentsEndPtr,
NSRange range)
public void getParagraphStartEndContentsEndForRange(org.moe.natj.general.ptr.NUIntPtr startPtr,
org.moe.natj.general.ptr.NUIntPtr parEndPtr,
org.moe.natj.general.ptr.NUIntPtr contentsEndPtr,
NSRange range)
public boolean hasPrefix(java.lang.String str)
public boolean hasSuffix(java.lang.String str)
public NSString init()
public NSString initWithBytesLengthEncoding(org.moe.natj.general.ptr.ConstVoidPtr bytes, long len, long encoding)
public NSString initWithBytesNoCopyLengthEncodingFreeWhenDone(org.moe.natj.general.ptr.VoidPtr bytes, long len, long encoding, boolean freeBuffer)
@Deprecated public NSString initWithCString(org.moe.natj.general.ptr.ConstBytePtr bytes)
public NSString initWithCStringEncoding(org.moe.natj.general.ptr.ConstBytePtr nullTerminatedCString, long encoding)
@Deprecated public NSString initWithCStringLength(org.moe.natj.general.ptr.ConstBytePtr bytes, long length)
@Deprecated public NSString initWithCStringNoCopyLengthFreeWhenDone(org.moe.natj.general.ptr.BytePtr bytes, long length, boolean freeBuffer)
public NSString initWithCharactersLength(org.moe.natj.general.ptr.ConstCharPtr characters, long length)
public NSString initWithCharactersNoCopyLengthFreeWhenDone(org.moe.natj.general.ptr.CharPtr characters, long length, boolean freeBuffer)
public NSString initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCoding@Deprecated public NSString initWithContentsOfFile(java.lang.String path)
public NSString initWithContentsOfFileEncodingError(java.lang.String path, long enc, org.moe.natj.general.ptr.Ptr<NSError> error)
public NSString initWithContentsOfFileUsedEncodingError(java.lang.String path, org.moe.natj.general.ptr.NUIntPtr enc, org.moe.natj.general.ptr.Ptr<NSError> error)
public NSString initWithContentsOfURLEncodingError(NSURL url, long enc, org.moe.natj.general.ptr.Ptr<NSError> error)
public NSString initWithContentsOfURLUsedEncodingError(NSURL url, org.moe.natj.general.ptr.NUIntPtr enc, org.moe.natj.general.ptr.Ptr<NSError> error)
public NSString initWithFormat(java.lang.String format, java.lang.Object... varargs)
public NSString initWithFormatArguments(java.lang.String format, org.moe.natj.general.ptr.BytePtr argList)
public NSString initWithFormatLocale(java.lang.String format, java.lang.Object locale, java.lang.Object... varargs)
public NSString initWithFormatLocaleArguments(java.lang.String format, java.lang.Object locale, org.moe.natj.general.ptr.BytePtr argList)
public NSString initWithString(java.lang.String aString)
public NSString initWithUTF8String(org.moe.natj.general.ptr.ConstBytePtr nullTerminatedCString)
public int intValue()
public long integerValue()
public boolean isAbsolutePath()
public boolean isEqualToString(java.lang.String aString)
public java.lang.String lastPathComponent()
public long length()
public long lengthOfBytesUsingEncoding(long enc)
public NSArray<java.lang.String> linguisticTagsInRangeSchemeOptionsOrthographyTokenRanges(NSRange range, java.lang.String scheme, long options, NSOrthography orthography, org.moe.natj.general.ptr.Ptr<NSArray<? extends NSValue>> tokenRanges)
public java.lang.String localizedCapitalizedString()
public long localizedCaseInsensitiveCompare(java.lang.String string)
public boolean localizedCaseInsensitiveContainsString(java.lang.String str)
public long localizedCompare(java.lang.String string)
public java.lang.String localizedLowercaseString()
public long localizedStandardCompare(java.lang.String string)
public boolean localizedStandardContainsString(java.lang.String str)
public NSRange localizedStandardRangeOfString(java.lang.String str)
public java.lang.String localizedUppercaseString()
public long longLongValue()
@Deprecated public org.moe.natj.general.ptr.ConstBytePtr lossyCString()
public java.lang.String lowercaseString()
public java.lang.String lowercaseStringWithLocale(NSLocale locale)
public long maximumLengthOfBytesUsingEncoding(long enc)
public java.lang.Object mutableCopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
mutableCopyWithZone in interface NSMutableCopyingpublic NSArray<java.lang.String> pathComponents()
public java.lang.String pathExtension()
public java.lang.String precomposedStringWithCanonicalMapping()
public java.lang.String precomposedStringWithCompatibilityMapping()
public java.lang.Object propertyList()
public NSDictionary<?,?> propertyListFromStringsFileFormat()
public NSRange rangeOfCharacterFromSet(NSCharacterSet searchSet)
The range argument specifies the subrange, rather than the whole, of the receiver to use in the search. It is an error to specify a range that is outside of the receiver's bounds, and an exception may be raised.
public NSRange rangeOfCharacterFromSetOptions(NSCharacterSet searchSet, long mask)
public NSRange rangeOfCharacterFromSetOptionsRange(NSCharacterSet searchSet, long mask, NSRange rangeOfReceiverToSearch)
public NSRange rangeOfComposedCharacterSequenceAtIndex(long index)
public NSRange rangeOfComposedCharacterSequencesForRange(NSRange range)
public NSRange rangeOfString(java.lang.String searchString)
Note that the first three methods do not take locale arguments, and perform the search in a non-locale aware fashion, which is not appropriate for user-level searching. To do user-level string searching, use the last method, specifying locale:[NSLocale currentLocale], or better yet, use localizedStandardRangeOfString: or localizedStandardContainsString:.
The range argument specifies the subrange, rather than the whole, of the receiver to use in the search. It is an error to specify a range that is outside of the receiver's bounds, and an exception may be raised.
public NSRange rangeOfStringOptions(java.lang.String searchString, long mask)
public NSRange rangeOfStringOptionsRange(java.lang.String searchString, long mask, NSRange rangeOfReceiverToSearch)
public NSRange rangeOfStringOptionsRangeLocale(java.lang.String searchString, long mask, NSRange rangeOfReceiverToSearch, NSLocale locale)
public CGSize sizeWithAttributes(NSDictionary<java.lang.String,?> attrs)
@Deprecated public CGSize sizeWithFont(UIFont font)
@Deprecated public CGSize sizeWithFontConstrainedToSize(UIFont font, CGSize size)
@Deprecated public CGSize sizeWithFontConstrainedToSizeLineBreakMode(UIFont font, CGSize size, long lineBreakMode)
@Deprecated public CGSize sizeWithFontForWidthLineBreakMode(UIFont font, double width, long lineBreakMode)
@Deprecated public CGSize sizeWithFontMinFontSizeActualFontSizeForWidthLineBreakMode(UIFont font, double minFontSize, org.moe.natj.general.ptr.NFloatPtr actualFontSize, double width, long lineBreakMode)
public long smallestEncoding()
public java.lang.String stringByAbbreviatingWithTildeInPath()
public java.lang.String stringByAddingPercentEncodingWithAllowedCharacters(NSCharacterSet allowedCharacters)
@Deprecated public java.lang.String stringByAddingPercentEscapesUsingEncoding(long enc)
public java.lang.String stringByAppendingFormat(java.lang.String format,
java.lang.Object... varargs)
public java.lang.String stringByAppendingPathComponent(java.lang.String str)
public java.lang.String stringByAppendingPathExtension(java.lang.String str)
public java.lang.String stringByAppendingString(java.lang.String aString)
public java.lang.String stringByApplyingTransformReverse(java.lang.String transform,
boolean reverse)
public java.lang.String stringByDeletingLastPathComponent()
public java.lang.String stringByDeletingPathExtension()
public java.lang.String stringByExpandingTildeInPath()
public java.lang.String stringByFoldingWithOptionsLocale(long options,
NSLocale locale)
public java.lang.String stringByPaddingToLengthWithStringStartingAtIndex(long newLength,
java.lang.String padString,
long padIndex)
public java.lang.String stringByRemovingPercentEncoding()
public java.lang.String stringByReplacingCharactersInRangeWithString(NSRange range, java.lang.String replacement)
public java.lang.String stringByReplacingOccurrencesOfStringWithString(java.lang.String target,
java.lang.String replacement)
public java.lang.String stringByReplacingOccurrencesOfStringWithStringOptionsRange(java.lang.String target,
java.lang.String replacement,
long options,
NSRange searchRange)
@Deprecated public java.lang.String stringByReplacingPercentEscapesUsingEncoding(long enc)
public java.lang.String stringByResolvingSymlinksInPath()
public java.lang.String stringByStandardizingPath()
public java.lang.String stringByTrimmingCharactersInSet(NSCharacterSet set)
public NSArray<java.lang.String> stringsByAppendingPaths(NSArray<java.lang.String> paths)
public java.lang.String substringFromIndex(long from)
public java.lang.String substringToIndex(long to)
public java.lang.String substringWithRange(NSRange range)
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic java.lang.String uppercaseString()
public java.lang.String uppercaseStringWithLocale(NSLocale locale)
public java.lang.String variantFittingPresentationWidth(long width)
@Deprecated
public boolean writeToFileAtomically(java.lang.String path,
boolean useAuxiliaryFile)
public boolean writeToFileAtomicallyEncodingError(java.lang.String path,
boolean useAuxiliaryFile,
long enc,
org.moe.natj.general.ptr.Ptr<NSError> error)
@Deprecated public boolean writeToURLAtomically(NSURL url, boolean atomically)
public boolean writeToURLAtomicallyEncodingError(NSURL url, boolean useAuxiliaryFile, long enc, org.moe.natj.general.ptr.Ptr<NSError> error)
public static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)
public long _itemProviderVisibilityForRepresentationWithTypeIdentifier_static(java.lang.String typeIdentifier)
_itemProviderVisibilityForRepresentationWithTypeIdentifier_static in interface NSItemProviderWritingpublic long itemProviderVisibilityForRepresentationWithTypeIdentifier(java.lang.String typeIdentifier)
public NSProgress loadDataWithTypeIdentifierForItemProviderCompletionHandler(java.lang.String typeIdentifier, NSItemProviderWriting.Block_loadDataWithTypeIdentifierForItemProviderCompletionHandler completionHandler)
NSItemProviderWritingloadDataWithTypeIdentifierForItemProviderCompletionHandler in interface NSItemProviderWritingpublic static NSString objectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)
public NSString _objectWithItemProviderDataTypeIdentifierError(NSData data, java.lang.String typeIdentifier, org.moe.natj.general.ptr.Ptr<NSError> outError)
_objectWithItemProviderDataTypeIdentifierError in interface NSItemProviderReadingpublic static NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
public NSArray<java.lang.String> _readableTypeIdentifiersForItemProvider()
_readableTypeIdentifiersForItemProvider in interface NSItemProviderReadingpublic static NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
public NSArray<java.lang.String> _writableTypeIdentifiersForItemProvider_static()
_writableTypeIdentifiersForItemProvider_static in interface NSItemProviderWritingpublic NSArray<java.lang.String> writableTypeIdentifiersForItemProvider()
public static java.lang.String deferredLocalizedIntentsStringWithFormat(java.lang.String format,
java.lang.Object... varargs)
public static java.lang.String deferredLocalizedIntentsStringWithFormatFromTable(java.lang.String format,
java.lang.String table,
java.lang.Object... varargs)
public static java.lang.String deferredLocalizedIntentsStringWithFormatFromTableArguments(java.lang.String format,
java.lang.String table,
org.moe.natj.general.ptr.BytePtr arguments)
public NSString initWithBytesNoCopyLengthEncodingDeallocator(org.moe.natj.general.ptr.VoidPtr bytes, long len, long encoding, NSString.Block_initWithBytesNoCopyLengthEncodingDeallocator deallocator)
public NSString initWithCharactersNoCopyLengthDeallocator(org.moe.natj.general.ptr.CharPtr chars, long len, NSString.Block_initWithCharactersNoCopyLengthDeallocator deallocator)
public java.lang.String stringByAppendingPathComponentConformingToType(java.lang.String partialName,
UTType contentType)
\param partialName The partial filename that should be expanded upon, e.g. \c "readme". \param contentType The type the resulting file should conform to, e.g. \c UTTypePlainText.
\result A complete file path. Using the argument examples above, this method would return a string with a last path component of \c "readme.txt".
Use this method when you have partial input from a user or other source and need to produce a complete filename suitable for that input. For example, if you are downloading a file from the Internet and know its MIME type, you can use this method to ensure the correct filename extension is applied to the URL where you save the file.
If \a partialName already has a path extension, and that path extension is valid for file system objects of type \a contentType, no additional extension is appended to the path component before constructing the string. For example, if the inputs are \c "puppy.jpg" and \c UTTypeImage respectively, then the resulting string will have a last path component of \c "puppy.jpg" . On the other hand, if the inputs are \c "puppy.jpg" and \c UTTypePlainText respectively, the resulting string will have a last path component of \c "puppy.jpg.txt" . If you want to ensure any existing path extension is replaced, you can use the \c stringByDeletingPathExtension property first.
If the path component could not be appended, this method returns a copy of \c self .
public java.lang.String stringByAppendingPathExtensionForType(UTType contentType)
\param contentType The type the resulting file should conform to, e.g. \c UTTypePlainText.
\result A complete file path. Using the argument example above and assuming the receiver equals \c "readme" , this method would return \c "readme.txt".
Use this method when you have partial input from a user or other source and need to produce a complete filename suitable for that input. For example, if you are downloading a file from the Internet and know its MIME type, you can use this method to ensure the correct filename extension is applied to the URL where you save the file.
If the receiver already has a path extension, and that path extension is valid for file system objects of type \a contentType, no additional extension is appended to the receiver before constructing the result. For example, if the receiver equals \c "puppy.jpg" and \a contentType equals \c UTTypeImage , then the resulting string will equal \c "puppy.jpg" . On the other hand, if the inputs are \c "puppy.jpg" and \c UTTypePlainText respectively, the resulting string will equal \c "puppy.jpg.txt" . If you want to ensure any existing path extension is replaced, you can use the \c stringByDeletingPathExtension property first.
If the extension could not be appended, this method returns a copy of \c self .
public java.lang.String sr_sensorForDeletionRecordsFromSensor()
This sensor stream should only be used for fetching. All other operations will be ignored. Deletion records share the recording and authorization state with their parent sensor.