Package org.robovm.apple.corefoundation
Class CFString
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.corefoundation.CFPropertyList
-
- org.robovm.apple.corefoundation.CFString
-
- All Implemented Interfaces:
java.lang.AutoCloseable
- Direct Known Subclasses:
CFMutableString
public class CFString extends CFPropertyList
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CFString.AsStringMarshaler
static class
CFString.AsStringNoRetainMarshaler
Marshaler used for create and copy methods which have already retained the CFString they return.static class
CFString.CFStringPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFPropertyList
CFPropertyList.CFPropertyListPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CFComparisonResult
compare(java.lang.String theString1, java.lang.String theString2, CFRange rangeToCompare, CFStringCompareFlags compareOptions)
static CFComparisonResult
compare(java.lang.String theString1, java.lang.String theString2, CFRange rangeToCompare, CFStringCompareFlags compareOptions, CFLocale locale)
static CFComparisonResult
compare(java.lang.String theString1, java.lang.String theString2, CFStringCompareFlags compareOptions)
protected static java.lang.String
convertEncodingToIANACharSetName(CFStringEncodings encoding)
protected static long
convertEncodingToNSStringEncoding(CFStringEncodings encoding)
protected static int
convertEncodingToWindowsCodepage(CFStringEncodings encoding)
protected CFStringEncodings
convertIANACharSetNameToEncoding()
protected static CFStringEncodings
convertNSStringEncodingToEncoding(long encoding)
protected static CFStringEncodings
convertWindowsCodepageToEncoding(int codepage)
protected static CFString
createArrayBySeparatingStrings(CFAllocator alloc, CFString theString, java.lang.String separatorString)
protected static CFString
createArrayWithFindResults(CFAllocator alloc, CFString theString, java.lang.String stringToFind, CFRange rangeToSearch, CFStringCompareFlags compareOptions)
protected static CFString
createByCombiningStrings(CFAllocator alloc, CFArray theArray, java.lang.String separatorString)
protected static CFString
createCopy(CFAllocator alloc, CFString theString)
protected static CFString
createExternalRepresentation(CFAllocator alloc, CFString theString, CFStringEncodings encoding, byte lossByte)
protected static CFString
createFromExternalRepresentation(CFAllocator alloc, CFData data, CFStringEncodings encoding)
protected static CFString
createWithBytes(CFAllocator alloc, org.robovm.rt.bro.ptr.BytePtr bytes, long numBytes, CFStringEncodings encoding, boolean isExternalRepresentation)
protected static CFString
createWithBytesNoCopy(CFAllocator alloc, org.robovm.rt.bro.ptr.BytePtr bytes, long numBytes, CFStringEncodings encoding, boolean isExternalRepresentation, CFAllocator contentsDeallocator)
protected static CFString
createWithCharacters(CFAllocator alloc, org.robovm.rt.bro.ptr.ShortPtr chars, long numChars)
protected static CFString
createWithCharactersNoCopy(CFAllocator alloc, org.robovm.rt.bro.ptr.ShortPtr chars, long numChars, CFAllocator contentsDeallocator)
protected static CFString
createWithCString(CFAllocator alloc, org.robovm.rt.bro.ptr.BytePtr cStr, CFStringEncodings encoding)
protected static CFString
createWithCStringNoCopy(CFAllocator alloc, org.robovm.rt.bro.ptr.BytePtr cStr, CFStringEncodings encoding, CFAllocator contentsDeallocator)
protected static CFString
createWithFileSystemRepresentation(CFAllocator alloc, org.robovm.rt.bro.ptr.BytePtr buffer)
protected static CFString
createWithPascalString(CFAllocator alloc, org.robovm.rt.bro.ptr.BytePtr pStr, CFStringEncodings encoding)
protected static CFString
createWithPascalStringNoCopy(CFAllocator alloc, org.robovm.rt.bro.ptr.BytePtr pStr, CFStringEncodings encoding, CFAllocator contentsDeallocator)
protected static CFString
createWithSubstring(CFAllocator alloc, java.lang.String str, CFRange range)
boolean
find(java.lang.String stringToFind, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFLocale locale, CFRange result)
boolean
find(java.lang.String stringToFind, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFRange result)
CFRange
find(java.lang.String stringToFind, CFStringCompareFlags compareOptions)
boolean
find(CFCharacterSet theSet, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFRange result)
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)
protected short
getCharacterAtIndex(long idx)
protected void
getCharacters(CFRange range, org.robovm.rt.bro.ptr.ShortPtr buffer)
protected org.robovm.rt.bro.ptr.ShortPtr
getCharactersPtr()
static long
getClassTypeID()
protected boolean
getCString(org.robovm.rt.bro.ptr.BytePtr buffer, long bufferSize, CFStringEncodings encoding)
protected org.robovm.rt.bro.ptr.BytePtr
getCStringPtr(CFStringEncodings encoding)
protected static double
getDoubleValue(java.lang.String str)
protected CFStringEncodings
getFastestEncoding()
protected static boolean
getFileSystemRepresentation(java.lang.String string, org.robovm.rt.bro.ptr.BytePtr buffer, long maxBufLen)
protected long
getHyphenationLocationBeforeIndex(long location, CFRange limitRange, long options, CFLocale locale, org.robovm.rt.bro.ptr.IntPtr character)
protected static int
getIntValue(java.lang.String str)
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)
protected static org.robovm.rt.bro.ptr.IntPtr
getListOfAvailableEncodings()
protected static long
getMaximumSizeForEncoding(long length, CFStringEncodings encoding)
protected static long
getMaximumSizeOfFileSystemRepresentation(java.lang.String string)
protected static CFStringEncodings
getMostCompatibleMacStringEncoding(CFStringEncodings encoding)
protected static java.lang.String
getNameOfEncoding(CFStringEncodings encoding)
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)
protected boolean
getPascalString(org.robovm.rt.bro.ptr.BytePtr buffer, long bufferSize, CFStringEncodings encoding)
protected org.robovm.rt.bro.ptr.BytePtr
getPascalStringPtr(CFStringEncodings encoding)
protected CFRange
getRangeOfComposedCharactersAtIndex(long theIndex)
protected CFStringEncodings
getSmallestEncoding()
protected static CFStringEncodings
getSystemEncoding()
boolean
hasPrefix(java.lang.String prefix)
boolean
hasSuffix(java.lang.String suffix)
protected static boolean
isEncodingAvailable(CFStringEncodings encoding)
protected static boolean
isHyphenationAvailableForLocale(CFLocale locale)
long
length()
void
show()
java.lang.String
toString()
-
Methods inherited from class org.robovm.apple.corefoundation.CFPropertyList
asData, asData, create, create, create, create, create, create, createDeepCopy, createDeepCopy, isValid, write
-
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain
-
-
-
-
Method Detail
-
getClassTypeID
public static long getClassTypeID()
-
createWithPascalString
protected static CFString createWithPascalString(CFAllocator alloc, org.robovm.rt.bro.ptr.BytePtr pStr, CFStringEncodings encoding)
-
createWithCString
protected static CFString createWithCString(CFAllocator alloc, org.robovm.rt.bro.ptr.BytePtr cStr, CFStringEncodings encoding)
-
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)
-
createWithPascalStringNoCopy
protected static CFString createWithPascalStringNoCopy(CFAllocator alloc, org.robovm.rt.bro.ptr.BytePtr pStr, CFStringEncodings encoding, CFAllocator contentsDeallocator)
-
createWithCStringNoCopy
protected static CFString createWithCStringNoCopy(CFAllocator alloc, org.robovm.rt.bro.ptr.BytePtr cStr, CFStringEncodings encoding, CFAllocator contentsDeallocator)
-
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)
-
createCopy
protected static CFString createCopy(CFAllocator alloc, CFString theString)
-
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)
-
createFromExternalRepresentation
protected static CFString createFromExternalRepresentation(CFAllocator alloc, CFData data, CFStringEncodings encoding)
-
createExternalRepresentation
protected static CFString createExternalRepresentation(CFAllocator alloc, CFString theString, CFStringEncodings encoding, byte lossByte)
-
getSmallestEncoding
protected CFStringEncodings getSmallestEncoding()
-
getFastestEncoding
protected CFStringEncodings getFastestEncoding()
-
getSystemEncoding
protected static CFStringEncodings getSystemEncoding()
-
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)
-
compare
public static CFComparisonResult compare(java.lang.String theString1, java.lang.String theString2, CFRange rangeToCompare, CFStringCompareFlags compareOptions, CFLocale locale)
- Since:
- Available in iOS 2.0 and later.
-
compare
public static CFComparisonResult compare(java.lang.String theString1, java.lang.String theString2, CFRange rangeToCompare, CFStringCompareFlags compareOptions)
-
compare
public static CFComparisonResult compare(java.lang.String theString1, java.lang.String theString2, CFStringCompareFlags compareOptions)
-
find
public boolean find(java.lang.String stringToFind, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFLocale locale, CFRange result)
- Since:
- Available in iOS 2.0 and later.
-
find
public boolean find(java.lang.String stringToFind, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFRange result)
-
createArrayWithFindResults
protected static CFString createArrayWithFindResults(CFAllocator alloc, CFString theString, java.lang.String stringToFind, CFRange rangeToSearch, CFStringCompareFlags compareOptions)
-
find
public CFRange find(java.lang.String stringToFind, CFStringCompareFlags compareOptions)
-
hasPrefix
public boolean hasPrefix(java.lang.String prefix)
-
hasSuffix
public boolean hasSuffix(java.lang.String suffix)
-
getRangeOfComposedCharactersAtIndex
protected CFRange getRangeOfComposedCharactersAtIndex(long theIndex)
-
find
public boolean find(CFCharacterSet theSet, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFRange result)
-
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)
-
getMostCompatibleMacStringEncoding
protected static CFStringEncodings getMostCompatibleMacStringEncoding(CFStringEncodings encoding)
-
-