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:
AutoCloseable
- Direct Known Subclasses:
CFMutableString
public class CFString extends CFPropertyList
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCFString.AsStringMarshalerstatic classCFString.AsStringNoRetainMarshalerMarshaler used for create and copy methods which have already retained the CFString they return.static classCFString.CFStringPtrNested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFPropertyList
CFPropertyList.CFPropertyListPtrNested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.AsListMarshaler, CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler -
Constructor Summary
-
Method Summary
Methods inherited from class org.robovm.apple.corefoundation.CFPropertyList
asData, asData, create, create, create, create, create, create, createDeepCopy, createDeepCopy, isValid, writeMethods 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
-
Constructor Details
-
CFString
protected CFString() -
CFString
-
-
Method Details
-
toString
-
getClassTypeID
public static long getClassTypeID() -
createWithPascalString
protected static CFString createWithPascalString(CFAllocator alloc, BytePtr pStr, CFStringEncodings encoding) -
createWithCString
protected static CFString createWithCString(CFAllocator alloc, BytePtr cStr, CFStringEncodings encoding) -
createWithBytes
protected static CFString createWithBytes(CFAllocator alloc, BytePtr bytes, long numBytes, CFStringEncodings encoding, boolean isExternalRepresentation) -
createWithCharacters
-
createWithPascalStringNoCopy
protected static CFString createWithPascalStringNoCopy(CFAllocator alloc, BytePtr pStr, CFStringEncodings encoding, CFAllocator contentsDeallocator) -
createWithCStringNoCopy
protected static CFString createWithCStringNoCopy(CFAllocator alloc, BytePtr cStr, CFStringEncodings encoding, CFAllocator contentsDeallocator) -
createWithBytesNoCopy
protected static CFString createWithBytesNoCopy(CFAllocator alloc, BytePtr bytes, long numBytes, CFStringEncodings encoding, boolean isExternalRepresentation, CFAllocator contentsDeallocator) -
createWithCharactersNoCopy
protected static CFString createWithCharactersNoCopy(CFAllocator alloc, ShortPtr chars, long numChars, CFAllocator contentsDeallocator) -
createWithSubstring
-
createCopy
-
length
public long length() -
getCharacterAtIndex
protected short getCharacterAtIndex(long idx) -
getCharacters
-
getPascalString
-
getCString
-
getPascalStringPtr
-
getCStringPtr
-
getCharactersPtr
-
getBytes
protected long getBytes(CFRange range, CFStringEncodings encoding, byte lossByte, boolean isExternalRepresentation, BytePtr buffer, long maxBufLen, 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
-
getFastestEncoding
-
getSystemEncoding
-
getMaximumSizeForEncoding
-
getFileSystemRepresentation
-
getMaximumSizeOfFileSystemRepresentation
-
createWithFileSystemRepresentation
-
compare
public static CFComparisonResult compare(String theString1, String theString2, CFRange rangeToCompare, CFStringCompareFlags compareOptions, CFLocale locale) -
compare
public static CFComparisonResult compare(String theString1, String theString2, CFRange rangeToCompare, CFStringCompareFlags compareOptions) -
compare
public static CFComparisonResult compare(String theString1, String theString2, CFStringCompareFlags compareOptions) -
find
public boolean find(String stringToFind, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFLocale locale, CFRange result) -
find
public boolean find(String stringToFind, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFRange result) -
createArrayWithFindResults
protected static CFString createArrayWithFindResults(CFAllocator alloc, CFString theString, String stringToFind, CFRange rangeToSearch, CFStringCompareFlags compareOptions) -
find
-
hasPrefix
-
hasSuffix
-
getRangeOfComposedCharactersAtIndex
-
find
public boolean find(CFCharacterSet theSet, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFRange result) -
getLineBounds
protected void getLineBounds(CFRange range, MachineSizedSIntPtr lineBeginIndex, MachineSizedSIntPtr lineEndIndex, MachineSizedSIntPtr contentsEndIndex) -
getParagraphBounds
protected static void getParagraphBounds(String string, CFRange range, MachineSizedSIntPtr parBeginIndex, MachineSizedSIntPtr parEndIndex, MachineSizedSIntPtr contentsEndIndex) -
getHyphenationLocationBeforeIndex
-
isHyphenationAvailableForLocale
-
createByCombiningStrings
protected static CFString createByCombiningStrings(CFAllocator alloc, CFArray theArray, String separatorString) -
createArrayBySeparatingStrings
protected static CFString createArrayBySeparatingStrings(CFAllocator alloc, CFString theString, String separatorString) -
getIntValue
-
getDoubleValue
-
isEncodingAvailable
-
getListOfAvailableEncodings
-
getNameOfEncoding
-
convertEncodingToNSStringEncoding
-
convertNSStringEncodingToEncoding
-
convertEncodingToWindowsCodepage
-
convertWindowsCodepageToEncoding
-
convertIANACharSetNameToEncoding
-
convertEncodingToIANACharSetName
-
getMostCompatibleMacStringEncoding
-
show
public void show()
-