Class CSLocalizedString

    • Constructor Detail

      • CSLocalizedString

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

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

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

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

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

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

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

        @NotNull
        public static @NotNull 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

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

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

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

        @NotNull
        public static @NotNull java.lang.String localizedUserNotificationStringForKeyArguments​(@NotNull
                                                                                               @NotNull java.lang.String key,
                                                                                               @Nullable
                                                                                               @Nullable NSArray<?> arguments)
      • pathWithComponents

        @NotNull
        public static @NotNull java.lang.String pathWithComponents​(@NotNull
                                                                   @NotNull 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​(@NotNull
                                                                                                  @NotNull NSData data,
                                                                                                  @Nullable
                                                                                                  @Nullable NSDictionary<java.lang.String,​?> opts,
                                                                                                  @Nullable
                                                                                                  @Nullable org.moe.natj.general.ptr.Ptr<NSString> string,
                                                                                                  @Nullable
                                                                                                  @Nullable org.moe.natj.general.ptr.BoolPtr usedLossyConversion)
      • stringWithCString

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

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

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

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

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

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

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

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

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

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

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

        public static CSLocalizedString stringWithString​(@NotNull
                                                         @NotNull java.lang.String string)
      • stringWithUTF8String

        public static CSLocalizedString stringWithUTF8String​(@NotNull
                                                             @NotNull 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()
      • init

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

        @Deprecated
        public CSLocalizedString initWithCString​(@NotNull
                                                 @NotNull org.moe.natj.general.ptr.ConstBytePtr bytes)
        Deprecated.
        Description copied from class: NSString
        API-Since: 2.0 Deprecated-Since: 2.0 Deprecated-Message: Use -initWithCString:encoding: instead
        Overrides:
        initWithCString in class NSString
      • initWithCStringLength

        @Deprecated
        public CSLocalizedString initWithCStringLength​(@NotNull
                                                       @NotNull org.moe.natj.general.ptr.ConstBytePtr bytes,
                                                       long length)
        Deprecated.
        Description copied from class: NSString
        API-Since: 2.0 Deprecated-Since: 2.0 Deprecated-Message: Use -initWithCString:encoding: instead
        Overrides:
        initWithCStringLength in class NSString
      • initWithCStringNoCopyLengthFreeWhenDone

        @Deprecated
        public CSLocalizedString initWithCStringNoCopyLengthFreeWhenDone​(@NotNull
                                                                         @NotNull org.moe.natj.general.ptr.BytePtr bytes,
                                                                         long length,
                                                                         boolean freeBuffer)
        Deprecated.
        Description copied from class: NSString
        API-Since: 2.0 Deprecated-Since: 2.0 Deprecated-Message: Use -initWithCString:encoding: instead
        Overrides:
        initWithCStringNoCopyLengthFreeWhenDone in class NSString
      • initWithContentsOfFile

        @Deprecated
        public CSLocalizedString initWithContentsOfFile​(@NotNull
                                                        @NotNull java.lang.String path)
        Deprecated.
        Description copied from class: NSString
        API-Since: 2.0 Deprecated-Since: 2.0 Deprecated-Message: Use -initWithContentsOfFile:encoding:error: instead
        Overrides:
        initWithContentsOfFile in class NSString
      • initWithContentsOfURL

        @Deprecated
        public CSLocalizedString initWithContentsOfURL​(@NotNull
                                                       @NotNull NSURL url)
        Deprecated.
        Description copied from class: NSString
        API-Since: 2.0 Deprecated-Since: 2.0 Deprecated-Message: Use -initWithContentsOfURL:encoding:error: instead
        Overrides:
        initWithContentsOfURL in class NSString
      • initWithContentsOfURLEncodingError

        public CSLocalizedString initWithContentsOfURLEncodingError​(@NotNull
                                                                    @NotNull NSURL url,
                                                                    long enc,
                                                                    @Nullable
                                                                    @Nullable 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 CSLocalizedString initWithContentsOfURLUsedEncodingError​(@NotNull
                                                                        @NotNull NSURL url,
                                                                        @Nullable
                                                                        @Nullable org.moe.natj.general.ptr.NUIntPtr enc,
                                                                        @Nullable
                                                                        @Nullable 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
      • initWithFormatLocale

        public CSLocalizedString initWithFormatLocale​(@NotNull
                                                      @NotNull java.lang.String format,
                                                      @Nullable
                                                      @Nullable java.lang.Object locale,
                                                      java.lang.Object... varargs)
        Overrides:
        initWithFormatLocale in class NSString
      • initWithFormatLocaleArguments

        public CSLocalizedString initWithFormatLocaleArguments​(@NotNull
                                                               @NotNull java.lang.String format,
                                                               @Nullable
                                                               @Nullable java.lang.Object locale,
                                                               org.moe.natj.general.ptr.BytePtr argList)
        Overrides:
        initWithFormatLocaleArguments in class NSString
      • initWithLocalizedStrings

        public CSLocalizedString initWithLocalizedStrings​(@NotNull
                                                          @NotNull NSDictionary<?,​?> localizedStrings)
        Takes a dictionary of preferred codes to the localized string for that language
      • localizedString

        @NotNull
        public @NotNull java.lang.String localizedString()
        Returns the localized string for the current language
      • _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​(@NotNull
                                                                                            @NotNull java.lang.String typeIdentifier)
      • objectWithItemProviderDataTypeIdentifierError

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

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

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

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

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

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

        public CSLocalizedString initWithValidatedFormatValidFormatSpecifiersArgumentsError​(@NotNull
                                                                                            @NotNull java.lang.String format,
                                                                                            @NotNull
                                                                                            @NotNull java.lang.String validFormatSpecifiers,
                                                                                            org.moe.natj.general.ptr.BytePtr argList,
                                                                                            @Nullable
                                                                                            @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Description copied from class: NSString
        API-Since: 16.0
        Overrides:
        initWithValidatedFormatValidFormatSpecifiersArgumentsError in class NSString
      • initWithValidatedFormatValidFormatSpecifiersError

        public CSLocalizedString initWithValidatedFormatValidFormatSpecifiersError​(@NotNull
                                                                                   @NotNull java.lang.String format,
                                                                                   @NotNull
                                                                                   @NotNull java.lang.String validFormatSpecifiers,
                                                                                   @Nullable
                                                                                   @Nullable org.moe.natj.general.ptr.Ptr<NSError> error,
                                                                                   java.lang.Object... varargs)
        Description copied from class: NSString
        API-Since: 16.0
        Overrides:
        initWithValidatedFormatValidFormatSpecifiersError in class NSString
      • initWithValidatedFormatValidFormatSpecifiersLocaleArgumentsError

        public CSLocalizedString initWithValidatedFormatValidFormatSpecifiersLocaleArgumentsError​(@NotNull
                                                                                                  @NotNull java.lang.String format,
                                                                                                  @NotNull
                                                                                                  @NotNull java.lang.String validFormatSpecifiers,
                                                                                                  @Nullable
                                                                                                  @Nullable java.lang.Object locale,
                                                                                                  org.moe.natj.general.ptr.BytePtr argList,
                                                                                                  @Nullable
                                                                                                  @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        Description copied from class: NSString
        API-Since: 11.0
        Overrides:
        initWithValidatedFormatValidFormatSpecifiersLocaleArgumentsError in class NSString
      • initWithValidatedFormatValidFormatSpecifiersLocaleError

        public CSLocalizedString initWithValidatedFormatValidFormatSpecifiersLocaleError​(@NotNull
                                                                                         @NotNull java.lang.String format,
                                                                                         @NotNull
                                                                                         @NotNull java.lang.String validFormatSpecifiers,
                                                                                         @Nullable
                                                                                         @Nullable java.lang.Object locale,
                                                                                         @Nullable
                                                                                         @Nullable org.moe.natj.general.ptr.Ptr<NSError> error,
                                                                                         java.lang.Object... varargs)
        Description copied from class: NSString
        API-Since: 16.0
        Overrides:
        initWithValidatedFormatValidFormatSpecifiersLocaleError in class NSString
      • localizedStringWithValidatedFormatValidFormatSpecifiersError

        @Nullable
        public static @Nullable CSLocalizedString localizedStringWithValidatedFormatValidFormatSpecifiersError​(@NotNull
                                                                                                               @NotNull java.lang.String format,
                                                                                                               @NotNull
                                                                                                               @NotNull java.lang.String validFormatSpecifiers,
                                                                                                               @Nullable
                                                                                                               @Nullable org.moe.natj.general.ptr.Ptr<NSError> error,
                                                                                                               java.lang.Object... varargs)
      • stringWithValidatedFormatValidFormatSpecifiersError

        public static CSLocalizedString stringWithValidatedFormatValidFormatSpecifiersError​(@NotNull
                                                                                            @NotNull java.lang.String format,
                                                                                            @NotNull
                                                                                            @NotNull java.lang.String validFormatSpecifiers,
                                                                                            @Nullable
                                                                                            @Nullable org.moe.natj.general.ptr.Ptr<NSError> error,
                                                                                            java.lang.Object... varargs)
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.