Class NSMutableString

    • Constructor Detail

      • NSMutableString

        protected NSMutableString​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • availableStringEncodings

        public static org.moe.natj.general.ptr.ConstNUIntPtr availableStringEncodings()
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • defaultCStringEncoding

        public static long defaultCStringEncoding()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • localizedNameOfStringEncoding

        public static java.lang.String localizedNameOfStringEncoding​(long encoding)
      • localizedStringWithFormat

        public static java.lang.Object localizedStringWithFormat​(java.lang.String format,
                                                                 java.lang.Object... varargs)
      • localizedUserNotificationStringForKeyArguments

        public static java.lang.String localizedUserNotificationStringForKeyArguments​(java.lang.String key,
                                                                                      NSArray<?> arguments)
      • new_objc

        public static java.lang.Object new_objc()
      • pathWithComponents

        public static java.lang.String pathWithComponents​(NSArray<java.lang.String> components)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • stringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion

        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)
      • stringWithCString

        @Deprecated
        public static NSMutableString stringWithCString​(org.moe.natj.general.ptr.ConstBytePtr bytes)
        Deprecated.
      • stringWithCStringEncoding

        public static NSMutableString stringWithCStringEncoding​(org.moe.natj.general.ptr.ConstBytePtr cString,
                                                                long enc)
      • stringWithCStringLength

        @Deprecated
        public static NSMutableString stringWithCStringLength​(org.moe.natj.general.ptr.ConstBytePtr bytes,
                                                              long length)
        Deprecated.
      • stringWithCapacity

        public static NSMutableString stringWithCapacity​(long capacity)
      • stringWithCharactersLength

        public static NSMutableString stringWithCharactersLength​(org.moe.natj.general.ptr.ConstCharPtr characters,
                                                                 long length)
      • stringWithContentsOfFile

        @Deprecated
        public static NSMutableString stringWithContentsOfFile​(java.lang.String path)
        Deprecated.
      • stringWithContentsOfFileEncodingError

        public static NSMutableString stringWithContentsOfFileEncodingError​(java.lang.String path,
                                                                            long enc,
                                                                            org.moe.natj.general.ptr.Ptr<NSError> error)
      • stringWithContentsOfFileUsedEncodingError

        public static NSMutableString stringWithContentsOfFileUsedEncodingError​(java.lang.String path,
                                                                                org.moe.natj.general.ptr.NUIntPtr enc,
                                                                                org.moe.natj.general.ptr.Ptr<NSError> error)
      • stringWithContentsOfURL

        @Deprecated
        public static NSMutableString stringWithContentsOfURL​(NSURL url)
        Deprecated.
      • stringWithContentsOfURLEncodingError

        public static NSMutableString stringWithContentsOfURLEncodingError​(NSURL url,
                                                                           long enc,
                                                                           org.moe.natj.general.ptr.Ptr<NSError> error)
      • stringWithContentsOfURLUsedEncodingError

        public static NSMutableString stringWithContentsOfURLUsedEncodingError​(NSURL url,
                                                                               org.moe.natj.general.ptr.NUIntPtr enc,
                                                                               org.moe.natj.general.ptr.Ptr<NSError> error)
      • stringWithFormat

        public static NSMutableString stringWithFormat​(java.lang.String format,
                                                       java.lang.Object... varargs)
      • stringWithString

        public static NSMutableString stringWithString​(java.lang.String string)
      • stringWithUTF8String

        public static NSMutableString stringWithUTF8String​(org.moe.natj.general.ptr.ConstBytePtr nullTerminatedCString)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • appendFormat

        public void appendFormat​(java.lang.String format,
                                 java.lang.Object... varargs)
      • appendString

        public void appendString​(java.lang.String aString)
      • applyTransformReverseRangeUpdatedRange

        public boolean applyTransformReverseRangeUpdatedRange​(java.lang.String transform,
                                                              boolean reverse,
                                                              NSRange range,
                                                              NSRange resultingRange)
        Perform string transliteration. The transformation represented by transform is applied to the given range of string in place. Only the specified range will be modified, but the transform may look at portions of the string outside that range for context. If supplied, resultingRange is modified to reflect the new range corresponding to the original range. reverse indicates that the inverse transform should be used instead, if it exists. Attempting to use an invalid transform identifier or reverse an irreversible transform will return NO; otherwise YES is returned, even if no characters are actually transformed. You can pass one of the predefined transforms listed above (NSStringTransformLatinToKatakana, etc), or any valid ICU transform ID as defined in the ICU User Guide. Arbitrary ICU transform rules are not supported.
      • deleteCharactersInRange

        public void deleteCharactersInRange​(NSRange range)
      • init

        public NSMutableString init()
        Description copied from class: NSString
        The initializers available to subclasses. See further below for additional init methods.
        Overrides:
        init in class NSString
      • initWithCapacity

        public NSMutableString initWithCapacity​(long capacity)
        In addition to these two, NSMutableString responds properly to all NSString creation methods.
      • initWithContentsOfURLEncodingError

        public NSMutableString initWithContentsOfURLEncodingError​(NSURL url,
                                                                  long enc,
                                                                  org.moe.natj.general.ptr.Ptr<NSError> error)
        Description copied from class: NSString
        These use the specified encoding. If nil is returned, the optional error return indicates problem that was encountered (for instance, file system or encoding errors).
        Overrides:
        initWithContentsOfURLEncodingError in class NSString
      • initWithContentsOfURLUsedEncodingError

        public NSMutableString initWithContentsOfURLUsedEncodingError​(NSURL url,
                                                                      org.moe.natj.general.ptr.NUIntPtr enc,
                                                                      org.moe.natj.general.ptr.Ptr<NSError> error)
        Description copied from class: NSString
        These try to determine the encoding, and return the encoding which was used. Note that these methods might get "smarter" in subsequent releases of the system, and use additional techniques for recognizing encodings. If nil is returned, the optional error return indicates problem that was encountered (for instance, file system or encoding errors).
        Overrides:
        initWithContentsOfURLUsedEncodingError in class NSString
      • insertStringAtIndex

        public void insertStringAtIndex​(java.lang.String aString,
                                        long loc)
        Additional mutation methods. For subclassers these are all available implemented in terms of the primitive replaceCharactersInRange:range: method.
      • replaceCharactersInRangeWithString

        public void replaceCharactersInRangeWithString​(NSRange range,
                                                       java.lang.String aString)
        NSMutableString primitive (funnel) method. See below for the other mutation methods.
      • replaceOccurrencesOfStringWithStringOptionsRange

        public long replaceOccurrencesOfStringWithStringOptionsRange​(java.lang.String target,
                                                                     java.lang.String replacement,
                                                                     long options,
                                                                     NSRange searchRange)
        This method replaces all occurrences of the target string with the replacement string, in the specified range of the receiver string, and returns the number of replacements. NSBackwardsSearch means the search is done from the end of the range (the results could be different); NSAnchoredSearch means only anchored (but potentially multiple) instances will be replaced. NSLiteralSearch and NSCaseInsensitiveSearch also apply. NSNumericSearch is ignored. Use NSMakeRange(0, [receiver length]) to process whole string. If NSRegularExpressionSearch is specified, the replacement is treated as a template, as in the corresponding NSRegularExpression methods, and no other options can apply except NSCaseInsensitiveSearch and NSAnchoredSearch.
      • setString

        public void setString​(java.lang.String aString)
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class NSString
      • itemProviderVisibilityForRepresentationWithTypeIdentifier_static

        public static long itemProviderVisibilityForRepresentationWithTypeIdentifier_static​(java.lang.String typeIdentifier)
      • objectWithItemProviderDataTypeIdentifierError

        public static java.lang.Object objectWithItemProviderDataTypeIdentifierError​(NSData data,
                                                                                     java.lang.String typeIdentifier,
                                                                                     org.moe.natj.general.ptr.Ptr<NSError> outError)
      • readableTypeIdentifiersForItemProvider

        public static NSArray<java.lang.String> readableTypeIdentifiersForItemProvider()
      • writableTypeIdentifiersForItemProvider_static

        public static NSArray<java.lang.String> writableTypeIdentifiersForItemProvider_static()
      • deferredLocalizedIntentsStringWithFormat

        public static java.lang.String deferredLocalizedIntentsStringWithFormat​(java.lang.String format,
                                                                                java.lang.Object... varargs)
      • deferredLocalizedIntentsStringWithFormatFromTable

        public static java.lang.String deferredLocalizedIntentsStringWithFormatFromTable​(java.lang.String format,
                                                                                         java.lang.String table,
                                                                                         java.lang.Object... varargs)
      • deferredLocalizedIntentsStringWithFormatFromTableArguments

        public static java.lang.String deferredLocalizedIntentsStringWithFormatFromTableArguments​(java.lang.String format,
                                                                                                  java.lang.String table,
                                                                                                  org.moe.natj.general.ptr.BytePtr arguments)