Class CFString

    • Constructor Detail

      • CFString

        protected CFString()
      • CFString

        public CFString​(java.lang.String s)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class CFType
      • getClassTypeID

        public static long getClassTypeID()
      • createWithBytes

        protected static CFString createWithBytes​(CFAllocator alloc,
                                                  org.robovm.rt.bro.ptr.BytePtr bytes,
                                                  long numBytes,
                                                  CFStringEncodings encoding,
                                                  boolean isExternalRepresentation)
      • createWithCharacters

        protected static CFString createWithCharacters​(CFAllocator alloc,
                                                       org.robovm.rt.bro.ptr.ShortPtr chars,
                                                       long numChars)
      • createWithBytesNoCopy

        protected static CFString createWithBytesNoCopy​(CFAllocator alloc,
                                                        org.robovm.rt.bro.ptr.BytePtr bytes,
                                                        long numBytes,
                                                        CFStringEncodings encoding,
                                                        boolean isExternalRepresentation,
                                                        CFAllocator contentsDeallocator)
      • createWithCharactersNoCopy

        protected static CFString createWithCharactersNoCopy​(CFAllocator alloc,
                                                             org.robovm.rt.bro.ptr.ShortPtr chars,
                                                             long numChars,
                                                             CFAllocator contentsDeallocator)
      • createWithSubstring

        protected static CFString createWithSubstring​(CFAllocator alloc,
                                                      java.lang.String str,
                                                      CFRange range)
      • length

        public long length()
      • getCharacterAtIndex

        protected short getCharacterAtIndex​(long idx)
      • getCharacters

        protected void getCharacters​(CFRange range,
                                     org.robovm.rt.bro.ptr.ShortPtr buffer)
      • getPascalString

        protected boolean getPascalString​(org.robovm.rt.bro.ptr.BytePtr buffer,
                                          long bufferSize,
                                          CFStringEncodings encoding)
      • getCString

        protected boolean getCString​(org.robovm.rt.bro.ptr.BytePtr buffer,
                                     long bufferSize,
                                     CFStringEncodings encoding)
      • getPascalStringPtr

        protected org.robovm.rt.bro.ptr.BytePtr getPascalStringPtr​(CFStringEncodings encoding)
      • getCStringPtr

        protected org.robovm.rt.bro.ptr.BytePtr getCStringPtr​(CFStringEncodings encoding)
      • getCharactersPtr

        protected org.robovm.rt.bro.ptr.ShortPtr getCharactersPtr()
      • getBytes

        protected long getBytes​(CFRange range,
                                CFStringEncodings encoding,
                                byte lossByte,
                                boolean isExternalRepresentation,
                                org.robovm.rt.bro.ptr.BytePtr buffer,
                                long maxBufLen,
                                org.robovm.rt.bro.ptr.MachineSizedSIntPtr usedBufLen)
      • getMaximumSizeForEncoding

        protected static long getMaximumSizeForEncoding​(long length,
                                                        CFStringEncodings encoding)
      • getFileSystemRepresentation

        protected static boolean getFileSystemRepresentation​(java.lang.String string,
                                                             org.robovm.rt.bro.ptr.BytePtr buffer,
                                                             long maxBufLen)
      • getMaximumSizeOfFileSystemRepresentation

        protected static long getMaximumSizeOfFileSystemRepresentation​(java.lang.String string)
      • createWithFileSystemRepresentation

        protected static CFString createWithFileSystemRepresentation​(CFAllocator alloc,
                                                                     org.robovm.rt.bro.ptr.BytePtr buffer)
      • hasPrefix

        public boolean hasPrefix​(java.lang.String prefix)
      • hasSuffix

        public boolean hasSuffix​(java.lang.String suffix)
      • getRangeOfComposedCharactersAtIndex

        protected CFRange getRangeOfComposedCharactersAtIndex​(long theIndex)
      • getLineBounds

        protected void getLineBounds​(CFRange range,
                                     org.robovm.rt.bro.ptr.MachineSizedSIntPtr lineBeginIndex,
                                     org.robovm.rt.bro.ptr.MachineSizedSIntPtr lineEndIndex,
                                     org.robovm.rt.bro.ptr.MachineSizedSIntPtr contentsEndIndex)
      • getParagraphBounds

        protected static void getParagraphBounds​(java.lang.String string,
                                                 CFRange range,
                                                 org.robovm.rt.bro.ptr.MachineSizedSIntPtr parBeginIndex,
                                                 org.robovm.rt.bro.ptr.MachineSizedSIntPtr parEndIndex,
                                                 org.robovm.rt.bro.ptr.MachineSizedSIntPtr contentsEndIndex)
        Since:
        Available in iOS 2.0 and later.
      • getHyphenationLocationBeforeIndex

        protected long getHyphenationLocationBeforeIndex​(long location,
                                                         CFRange limitRange,
                                                         long options,
                                                         CFLocale locale,
                                                         org.robovm.rt.bro.ptr.IntPtr character)
        Since:
        Available in iOS 4.2 and later.
      • isHyphenationAvailableForLocale

        protected static boolean isHyphenationAvailableForLocale​(CFLocale locale)
        Since:
        Available in iOS 4.3 and later.
      • createByCombiningStrings

        protected static CFString createByCombiningStrings​(CFAllocator alloc,
                                                           CFArray theArray,
                                                           java.lang.String separatorString)
      • createArrayBySeparatingStrings

        protected static CFString createArrayBySeparatingStrings​(CFAllocator alloc,
                                                                 CFString theString,
                                                                 java.lang.String separatorString)
      • getIntValue

        protected static int getIntValue​(java.lang.String str)
      • getDoubleValue

        protected static double getDoubleValue​(java.lang.String str)
      • isEncodingAvailable

        protected static boolean isEncodingAvailable​(CFStringEncodings encoding)
      • getListOfAvailableEncodings

        protected static org.robovm.rt.bro.ptr.IntPtr getListOfAvailableEncodings()
      • getNameOfEncoding

        protected static java.lang.String getNameOfEncoding​(CFStringEncodings encoding)
      • convertEncodingToNSStringEncoding

        protected static long convertEncodingToNSStringEncoding​(CFStringEncodings encoding)
      • convertNSStringEncodingToEncoding

        protected static CFStringEncodings convertNSStringEncodingToEncoding​(long encoding)
      • convertEncodingToWindowsCodepage

        protected static int convertEncodingToWindowsCodepage​(CFStringEncodings encoding)
      • convertWindowsCodepageToEncoding

        protected static CFStringEncodings convertWindowsCodepageToEncoding​(int codepage)
      • convertIANACharSetNameToEncoding

        protected CFStringEncodings convertIANACharSetNameToEncoding()
      • convertEncodingToIANACharSetName

        protected static java.lang.String convertEncodingToIANACharSetName​(CFStringEncodings encoding)
      • show

        public void show()
        Overrides:
        show in class CFType