From | class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
var length: Int { get }
func characterAtIndex(_ index: Int) -> unichar
init()
init?(coder aDecoder: NSCoder)
}
extension NSString : CKRecordValue {
}
extension NSString : CNKeyDescriptor {
}
extension NSString {
func variantFittingPresentationWidth(_ width: Int) -> String
}
extension NSString {
func linguisticTagsInRange(_ range: NSRange, scheme tagScheme: String, options opts: NSLinguisticTaggerOptions, orthography orthography: NSOrthography?, tokenRanges tokenRanges: AutoreleasingUnsafeMutablePointer<NSArray?>) -> [String]
func enumerateLinguisticTagsInRange(_ range: NSRange, scheme tagScheme: String, options opts: NSLinguisticTaggerOptions, orthography orthography: NSOrthography?, usingBlock block: (String, NSRange, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)
}
extension NSString {
class func pathWithComponents(_ components: [String]) -> String
var pathComponents: [String] { get }
var absolutePath: Bool { get }
var lastPathComponent: String { get }
var stringByDeletingLastPathComponent: String { get }
func stringByAppendingPathComponent(_ str: String) -> String
var pathExtension: String { get }
var stringByDeletingPathExtension: String { get }
func stringByAppendingPathExtension(_ str: String) -> String?
var stringByAbbreviatingWithTildeInPath: String { get }
var stringByExpandingTildeInPath: String { get }
var stringByStandardizingPath: String { get }
var stringByResolvingSymlinksInPath: String { get }
func stringsByAppendingPaths(_ paths: [String]) -> [String]
func completePathIntoString(_ outputName: AutoreleasingUnsafeMutablePointer<NSString?>, caseSensitive flag: Bool, matchesIntoArray outputArray: AutoreleasingUnsafeMutablePointer<NSArray?>, filterTypes filterTypes: [String]?) -> Int
var fileSystemRepresentation: UnsafePointer<Int8> { get }
func getFileSystemRepresentation(_ cname: UnsafeMutablePointer<Int8>, maxLength max: Int) -> Bool
}
extension NSString : StringLiteralConvertible {
required convenience init(unicodeScalarLiteral value: StaticString)
required convenience init(extendedGraphemeClusterLiteral value: StaticString)
required convenience init(stringLiteral value: StaticString)
}
extension NSString : _CocoaStringType {
}
extension NSString {
convenience init(format format: NSString, _ args: CVarArgType...)
convenience init(format format: NSString, locale locale: NSLocale?, _ args: CVarArgType...)
@warn_unused_result
class func localizedStringWithFormat(_ format: NSString, _ args: CVarArgType...) -> Self
@warn_unused_result
func stringByAppendingFormat(_ format: NSString, _ args: CVarArgType...) -> NSString
}
extension NSString {
@objc(_swiftInitWithString_NSString:) convenience init(string aString: NSString)
}
extension NSString : _Reflectable {
}
extension NSString {
func substringFromIndex(_ from: Int) -> String
func substringToIndex(_ to: Int) -> String
func substringWithRange(_ range: NSRange) -> String
func getCharacters(_ buffer: UnsafeMutablePointer<unichar>, range range: NSRange)
func compare(_ string: String) -> NSComparisonResult
func compare(_ string: String, options mask: NSStringCompareOptions) -> NSComparisonResult
func compare(_ string: String, options mask: NSStringCompareOptions, range compareRange: NSRange) -> NSComparisonResult
func compare(_ string: String, options mask: NSStringCompareOptions, range compareRange: NSRange, locale locale: AnyObject?) -> NSComparisonResult
func caseInsensitiveCompare(_ string: String) -> NSComparisonResult
func localizedCompare(_ string: String) -> NSComparisonResult
func localizedCaseInsensitiveCompare(_ string: String) -> NSComparisonResult
func localizedStandardCompare(_ string: String) -> NSComparisonResult
func isEqualToString(_ aString: String) -> Bool
func hasPrefix(_ str: String) -> Bool
func hasSuffix(_ str: String) -> Bool
func commonPrefixWithString(_ str: String, options mask: NSStringCompareOptions) -> String
func containsString(_ str: String) -> Bool
func localizedCaseInsensitiveContainsString(_ str: String) -> Bool
func localizedStandardContainsString(_ str: String) -> Bool
func localizedStandardRangeOfString(_ str: String) -> NSRange
func rangeOfString(_ searchString: String) -> NSRange
func rangeOfString(_ searchString: String, options mask: NSStringCompareOptions) -> NSRange
func rangeOfString(_ searchString: String, options mask: NSStringCompareOptions, range searchRange: NSRange) -> NSRange
func rangeOfString(_ searchString: String, options mask: NSStringCompareOptions, range searchRange: NSRange, locale locale: NSLocale?) -> NSRange
func rangeOfCharacterFromSet(_ searchSet: NSCharacterSet) -> NSRange
func rangeOfCharacterFromSet(_ searchSet: NSCharacterSet, options mask: NSStringCompareOptions) -> NSRange
func rangeOfCharacterFromSet(_ searchSet: NSCharacterSet, options mask: NSStringCompareOptions, range searchRange: NSRange) -> NSRange
func rangeOfComposedCharacterSequenceAtIndex(_ index: Int) -> NSRange
func rangeOfComposedCharacterSequencesForRange(_ range: NSRange) -> NSRange
func stringByAppendingString(_ aString: String) -> String
var doubleValue: Double { get }
var floatValue: Float { get }
var intValue: Int32 { get }
var integerValue: Int { get }
var longLongValue: Int64 { get }
var boolValue: Bool { get }
var uppercaseString: String { get }
var lowercaseString: String { get }
var capitalizedString: String { get }
var localizedUppercaseString: String { get }
var localizedLowercaseString: String { get }
var localizedCapitalizedString: String { get }
func uppercaseStringWithLocale(_ locale: NSLocale?) -> String
func lowercaseStringWithLocale(_ locale: NSLocale?) -> String
func capitalizedStringWithLocale(_ locale: NSLocale?) -> String
func getLineStart(_ startPtr: UnsafeMutablePointer<Int>, end lineEndPtr: UnsafeMutablePointer<Int>, contentsEnd contentsEndPtr: UnsafeMutablePointer<Int>, forRange range: NSRange)
func lineRangeForRange(_ range: NSRange) -> NSRange
func getParagraphStart(_ startPtr: UnsafeMutablePointer<Int>, end parEndPtr: UnsafeMutablePointer<Int>, contentsEnd contentsEndPtr: UnsafeMutablePointer<Int>, forRange range: NSRange)
func paragraphRangeForRange(_ range: NSRange) -> NSRange
func enumerateSubstringsInRange(_ range: NSRange, options opts: NSStringEnumerationOptions, usingBlock block: (String?, NSRange, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)
func enumerateLinesUsingBlock(_ block: (String, UnsafeMutablePointer<ObjCBool>) -> Void)
var UTF8String: UnsafePointer<Int8> { get }
var fastestEncoding: UInt { get }
var smallestEncoding: UInt { get }
func dataUsingEncoding(_ encoding: UInt, allowLossyConversion lossy: Bool) -> NSData?
func dataUsingEncoding(_ encoding: UInt) -> NSData?
func canBeConvertedToEncoding(_ encoding: UInt) -> Bool
func cStringUsingEncoding(_ encoding: UInt) -> UnsafePointer<Int8>
func getCString(_ buffer: UnsafeMutablePointer<Int8>, maxLength maxBufferCount: Int, encoding encoding: UInt) -> Bool
func getBytes(_ buffer: UnsafeMutablePointer<Void>, maxLength maxBufferCount: Int, usedLength usedBufferCount: UnsafeMutablePointer<Int>, encoding encoding: UInt, options options: NSStringEncodingConversionOptions, range range: NSRange, remainingRange leftover: NSRangePointer) -> Bool
func maximumLengthOfBytesUsingEncoding(_ enc: UInt) -> Int
func lengthOfBytesUsingEncoding(_ enc: UInt) -> Int
class func availableStringEncodings() -> UnsafePointer<UInt>
class func localizedNameOfStringEncoding(_ encoding: UInt) -> String
class func defaultCStringEncoding() -> UInt
var decomposedStringWithCanonicalMapping: String { get }
var precomposedStringWithCanonicalMapping: String { get }
var decomposedStringWithCompatibilityMapping: String { get }
var precomposedStringWithCompatibilityMapping: String { get }
func componentsSeparatedByString(_ separator: String) -> [String]
func componentsSeparatedByCharactersInSet(_ separator: NSCharacterSet) -> [String]
func stringByTrimmingCharactersInSet(_ set: NSCharacterSet) -> String
func stringByPaddingToLength(_ newLength: Int, withString padString: String, startingAtIndex padIndex: Int) -> String
func stringByFoldingWithOptions(_ options: NSStringCompareOptions, locale locale: NSLocale?) -> String
func stringByReplacingOccurrencesOfString(_ target: String, withString replacement: String, options options: NSStringCompareOptions, range searchRange: NSRange) -> String
func stringByReplacingOccurrencesOfString(_ target: String, withString replacement: String) -> String
func stringByReplacingCharactersInRange(_ range: NSRange, withString replacement: String) -> String
func stringByApplyingTransform(_ transform: String, reverse reverse: Bool) -> String?
func writeToURL(_ url: NSURL, atomically useAuxiliaryFile: Bool, encoding enc: UInt) throws
func writeToFile(_ path: String, atomically useAuxiliaryFile: Bool, encoding enc: UInt) throws
var description: String { get }
var hash: Int { get }
convenience init(charactersNoCopy characters: UnsafeMutablePointer<unichar>, length length: Int, freeWhenDone freeBuffer: Bool)
convenience init(characters characters: UnsafePointer<unichar>, length length: Int)
convenience init?(UTF8String nullTerminatedCString: UnsafePointer<Int8>)
convenience init(string aString: String)
convenience init(format format: String, arguments argList: CVaListPointer)
convenience init(format format: String, locale locale: AnyObject?, arguments argList: CVaListPointer)
convenience init?(data data: NSData, encoding encoding: UInt)
convenience init?(bytes bytes: UnsafePointer<Void>, length len: Int, encoding encoding: UInt)
convenience init?(bytesNoCopy bytes: UnsafeMutablePointer<Void>, length len: Int, encoding encoding: UInt, freeWhenDone freeBuffer: Bool)
class func string() -> Self
class func stringWithString(_ string: String) -> Self
class func stringWithCharacters(_ characters: UnsafePointer<unichar>, length length: Int) -> Self
class func stringWithUTF8String(_ nullTerminatedCString: UnsafePointer<Int8>) -> Self?
convenience init?(CString nullTerminatedCString: UnsafePointer<Int8>, encoding encoding: UInt)
class func stringWithCString(_ cString: UnsafePointer<Int8>, encoding enc: UInt) -> Self?
convenience init(contentsOfURL url: NSURL, encoding enc: UInt) throws
convenience init(contentsOfFile path: String, encoding enc: UInt) throws
class func stringWithContentsOfURL(_ url: NSURL, encoding enc: UInt) throws -> Self
class func stringWithContentsOfFile(_ path: String, encoding enc: UInt) throws -> Self
convenience init(contentsOfURL url: NSURL, usedEncoding enc: UnsafeMutablePointer<UInt>) throws
convenience init(contentsOfFile path: String, usedEncoding enc: UnsafeMutablePointer<UInt>) throws
class func stringWithContentsOfURL(_ url: NSURL, usedEncoding enc: UnsafeMutablePointer<UInt>) throws -> Self
class func stringWithContentsOfFile(_ path: String, usedEncoding enc: UnsafeMutablePointer<UInt>) throws -> Self
}
extension NSString {
class func stringEncodingForData(_ data: NSData, encodingOptions opts: [String : AnyObject]?, convertedString string: AutoreleasingUnsafeMutablePointer<NSString?>, usedLossyConversion usedLossyConversion: UnsafeMutablePointer<ObjCBool>) -> UInt
}
extension NSString {
func propertyList() -> AnyObject
func propertyListFromStringsFileFormat() -> [NSObject : AnyObject]?
}
extension NSString {
func cString() -> UnsafePointer<Int8>
func lossyCString() -> UnsafePointer<Int8>
func cStringLength() -> Int
func getCString(_ bytes: UnsafeMutablePointer<Int8>)
func getCString(_ bytes: UnsafeMutablePointer<Int8>, maxLength maxLength: Int)
func getCString(_ bytes: UnsafeMutablePointer<Int8>, maxLength maxLength: Int, range aRange: NSRange, remainingRange leftoverRange: NSRangePointer)
func writeToFile(_ path: String, atomically useAuxiliaryFile: Bool) -> Bool
func writeToURL(_ url: NSURL, atomically atomically: Bool) -> Bool
convenience init?(contentsOfFile path: String)
convenience init?(contentsOfURL url: NSURL)
class func stringWithContentsOfFile(_ path: String) -> AnyObject?
class func stringWithContentsOfURL(_ url: NSURL) -> AnyObject?
convenience init?(CStringNoCopy bytes: UnsafeMutablePointer<Int8>, length length: Int, freeWhenDone freeBuffer: Bool)
convenience init?(CString bytes: UnsafePointer<Int8>, length length: Int)
convenience init?(CString bytes: UnsafePointer<Int8>)
class func stringWithCString(_ bytes: UnsafePointer<Int8>, length length: Int) -> AnyObject?
class func stringWithCString(_ bytes: UnsafePointer<Int8>) -> AnyObject?
func getCharacters(_ buffer: UnsafeMutablePointer<unichar>)
}
extension NSString {
func stringByAddingPercentEncodingWithAllowedCharacters(_ allowedCharacters: NSCharacterSet) -> String?
var stringByRemovingPercentEncoding: String? { get }
func stringByAddingPercentEscapesUsingEncoding(_ enc: UInt) -> String?
func stringByReplacingPercentEscapesUsingEncoding(_ enc: UInt) -> String?
}
extension NSString : _Reflectable {
}
extension NSString {
@objc(_swiftInitWithString_NSString:) convenience init(string aString: NSString)
}
extension NSString {
convenience init(format format: NSString, _ args: CVarArgType...)
convenience init(format format: NSString, locale locale: NSLocale?, _ args: CVarArgType...)
@warn_unused_result
class func localizedStringWithFormat(_ format: NSString, _ args: CVarArgType...) -> Self
@warn_unused_result
func stringByAppendingFormat(_ format: NSString, _ args: CVarArgType...) -> NSString
}
extension NSString : _CocoaStringType {
}
extension NSString : StringLiteralConvertible {
required convenience init(unicodeScalarLiteral value: StaticString)
required convenience init(extendedGraphemeClusterLiteral value: StaticString)
required convenience init(stringLiteral value: StaticString)
}
extension NSString {
func sizeWithAttributes(_ attrs: [String : AnyObject]?) -> CGSize
func drawAtPoint(_ point: CGPoint, withAttributes attrs: [String : AnyObject]?)
func drawInRect(_ rect: CGRect, withAttributes attrs: [String : AnyObject]?)
}
extension NSString {
func drawWithRect(_ rect: CGRect, options options: NSStringDrawingOptions, attributes attributes: [String : AnyObject]?, context context: NSStringDrawingContext?)
func boundingRectWithSize(_ size: CGSize, options options: NSStringDrawingOptions, attributes attributes: [String : AnyObject]?, context context: NSStringDrawingContext?) -> CGRect
}
extension NSString {
func sizeWithFont(_ font: UIFont!) -> CGSize
func sizeWithFont(_ font: UIFont!, forWidth width: CGFloat, lineBreakMode lineBreakMode: NSLineBreakMode) -> CGSize
func drawAtPoint(_ point: CGPoint, withFont font: UIFont!) -> CGSize
func drawAtPoint(_ point: CGPoint, forWidth width: CGFloat, withFont font: UIFont!, lineBreakMode lineBreakMode: NSLineBreakMode) -> CGSize
func sizeWithFont(_ font: UIFont!, constrainedToSize size: CGSize) -> CGSize
func sizeWithFont(_ font: UIFont!, constrainedToSize size: CGSize, lineBreakMode lineBreakMode: NSLineBreakMode) -> CGSize
func drawInRect(_ rect: CGRect, withFont font: UIFont!) -> CGSize
func drawInRect(_ rect: CGRect, withFont font: UIFont!, lineBreakMode lineBreakMode: NSLineBreakMode) -> CGSize
func drawInRect(_ rect: CGRect, withFont font: UIFont!, lineBreakMode lineBreakMode: NSLineBreakMode, alignment alignment: NSTextAlignment) -> CGSize
func sizeWithFont(_ font: UIFont!, minFontSize minFontSize: CGFloat, actualFontSize actualFontSize: UnsafeMutablePointer<CGFloat>, forWidth width: CGFloat, lineBreakMode lineBreakMode: NSLineBreakMode) -> CGSize
func drawAtPoint(_ point: CGPoint, forWidth width: CGFloat, withFont font: UIFont!, fontSize fontSize: CGFloat, lineBreakMode lineBreakMode: NSLineBreakMode, baselineAdjustment baselineAdjustment: UIBaselineAdjustment) -> CGSize
func drawAtPoint(_ point: CGPoint, forWidth width: CGFloat, withFont font: UIFont!, minFontSize minFontSize: CGFloat, actualFontSize actualFontSize: UnsafeMutablePointer<CGFloat>, lineBreakMode lineBreakMode: NSLineBreakMode, baselineAdjustment baselineAdjustment: UIBaselineAdjustment) -> CGSize
} |
To | class NSString : NSObject, NSCopying, NSMutableCopying, NSSecureCoding {
var length: Int { get }
func characterAtIndex(_ index: Int) -> unichar
init()
init?(coder aDecoder: NSCoder)
}
extension NSString : CKRecordValue {
}
extension NSString : CNKeyDescriptor {
}
extension NSString {
func variantFittingPresentationWidth(_ width: Int) -> String
}
extension NSString {
func linguisticTagsInRange(_ range: NSRange, scheme tagScheme: String, options opts: NSLinguisticTaggerOptions, orthography orthography: NSOrthography?, tokenRanges tokenRanges: AutoreleasingUnsafeMutablePointer<NSArray?>) -> [String]
func enumerateLinguisticTagsInRange(_ range: NSRange, scheme tagScheme: String, options opts: NSLinguisticTaggerOptions, orthography orthography: NSOrthography?, usingBlock block: (String, NSRange, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)
}
extension NSString {
class func pathWithComponents(_ components: [String]) -> String
var pathComponents: [String] { get }
var absolutePath: Bool { get }
var lastPathComponent: String { get }
var stringByDeletingLastPathComponent: String { get }
func stringByAppendingPathComponent(_ str: String) -> String
var pathExtension: String { get }
var stringByDeletingPathExtension: String { get }
func stringByAppendingPathExtension(_ str: String) -> String?
var stringByAbbreviatingWithTildeInPath: String { get }
var stringByExpandingTildeInPath: String { get }
var stringByStandardizingPath: String { get }
var stringByResolvingSymlinksInPath: String { get }
func stringsByAppendingPaths(_ paths: [String]) -> [String]
func completePathIntoString(_ outputName: AutoreleasingUnsafeMutablePointer<NSString?>, caseSensitive flag: Bool, matchesIntoArray outputArray: AutoreleasingUnsafeMutablePointer<NSArray?>, filterTypes filterTypes: [String]?) -> Int
var fileSystemRepresentation: UnsafePointer<Int8> { get }
func getFileSystemRepresentation(_ cname: UnsafeMutablePointer<Int8>, maxLength max: Int) -> Bool
}
extension NSString : StringLiteralConvertible {
required convenience init(unicodeScalarLiteral value: StaticString)
required convenience init(extendedGraphemeClusterLiteral value: StaticString)
required convenience init(stringLiteral value: StaticString)
}
extension NSString {
convenience init(format format: NSString, _ args: CVarArgType...)
convenience init(format format: NSString, locale locale: NSLocale?, _ args: CVarArgType...)
@warn_unused_result
class func localizedStringWithFormat(_ format: NSString, _ args: CVarArgType...) -> Self
@warn_unused_result
func stringByAppendingFormat(_ format: NSString, _ args: CVarArgType...) -> NSString
}
extension NSString {
@objc(_swiftInitWithString_NSString:) convenience init(string aString: NSString)
}
extension NSString : _Reflectable {
}
extension NSString {
func substringFromIndex(_ from: Int) -> String
func substringToIndex(_ to: Int) -> String
func substringWithRange(_ range: NSRange) -> String
func getCharacters(_ buffer: UnsafeMutablePointer<unichar>, range range: NSRange)
func compare(_ string: String) -> NSComparisonResult
func compare(_ string: String, options mask: NSStringCompareOptions) -> NSComparisonResult
func compare(_ string: String, options mask: NSStringCompareOptions, range compareRange: NSRange) -> NSComparisonResult
func compare(_ string: String, options mask: NSStringCompareOptions, range compareRange: NSRange, locale locale: AnyObject?) -> NSComparisonResult
func caseInsensitiveCompare(_ string: String) -> NSComparisonResult
func localizedCompare(_ string: String) -> NSComparisonResult
func localizedCaseInsensitiveCompare(_ string: String) -> NSComparisonResult
func localizedStandardCompare(_ string: String) -> NSComparisonResult
func isEqualToString(_ aString: String) -> Bool
func hasPrefix(_ str: String) -> Bool
func hasSuffix(_ str: String) -> Bool
func commonPrefixWithString(_ str: String, options mask: NSStringCompareOptions) -> String
func containsString(_ str: String) -> Bool
func localizedCaseInsensitiveContainsString(_ str: String) -> Bool
func localizedStandardContainsString(_ str: String) -> Bool
func localizedStandardRangeOfString(_ str: String) -> NSRange
func rangeOfString(_ searchString: String) -> NSRange
func rangeOfString(_ searchString: String, options mask: NSStringCompareOptions) -> NSRange
func rangeOfString(_ searchString: String, options mask: NSStringCompareOptions, range searchRange: NSRange) -> NSRange
func rangeOfString(_ searchString: String, options mask: NSStringCompareOptions, range searchRange: NSRange, locale locale: NSLocale?) -> NSRange
func rangeOfCharacterFromSet(_ searchSet: NSCharacterSet) -> NSRange
func rangeOfCharacterFromSet(_ searchSet: NSCharacterSet, options mask: NSStringCompareOptions) -> NSRange
func rangeOfCharacterFromSet(_ searchSet: NSCharacterSet, options mask: NSStringCompareOptions, range searchRange: NSRange) -> NSRange
func rangeOfComposedCharacterSequenceAtIndex(_ index: Int) -> NSRange
func rangeOfComposedCharacterSequencesForRange(_ range: NSRange) -> NSRange
func stringByAppendingString(_ aString: String) -> String
var doubleValue: Double { get }
var floatValue: Float { get }
var intValue: Int32 { get }
var integerValue: Int { get }
var longLongValue: Int64 { get }
var boolValue: Bool { get }
var uppercaseString: String { get }
var lowercaseString: String { get }
var capitalizedString: String { get }
var localizedUppercaseString: String { get }
var localizedLowercaseString: String { get }
var localizedCapitalizedString: String { get }
func uppercaseStringWithLocale(_ locale: NSLocale?) -> String
func lowercaseStringWithLocale(_ locale: NSLocale?) -> String
func capitalizedStringWithLocale(_ locale: NSLocale?) -> String
func getLineStart(_ startPtr: UnsafeMutablePointer<Int>, end lineEndPtr: UnsafeMutablePointer<Int>, contentsEnd contentsEndPtr: UnsafeMutablePointer<Int>, forRange range: NSRange)
func lineRangeForRange(_ range: NSRange) -> NSRange
func getParagraphStart(_ startPtr: UnsafeMutablePointer<Int>, end parEndPtr: UnsafeMutablePointer<Int>, contentsEnd contentsEndPtr: UnsafeMutablePointer<Int>, forRange range: NSRange)
func paragraphRangeForRange(_ range: NSRange) -> NSRange
func enumerateSubstringsInRange(_ range: NSRange, options opts: NSStringEnumerationOptions, usingBlock block: (String?, NSRange, NSRange, UnsafeMutablePointer<ObjCBool>) -> Void)
func enumerateLinesUsingBlock(_ block: (String, UnsafeMutablePointer<ObjCBool>) -> Void)
var UTF8String: UnsafePointer<Int8> { get }
var fastestEncoding: UInt { get }
var smallestEncoding: UInt { get }
func dataUsingEncoding(_ encoding: UInt, allowLossyConversion lossy: Bool) -> NSData?
func dataUsingEncoding(_ encoding: UInt) -> NSData?
func canBeConvertedToEncoding(_ encoding: UInt) -> Bool
func cStringUsingEncoding(_ encoding: UInt) -> UnsafePointer<Int8>
func getCString(_ buffer: UnsafeMutablePointer<Int8>, maxLength maxBufferCount: Int, encoding encoding: UInt) -> Bool
func getBytes(_ buffer: UnsafeMutablePointer<Void>, maxLength maxBufferCount: Int, usedLength usedBufferCount: UnsafeMutablePointer<Int>, encoding encoding: UInt, options options: NSStringEncodingConversionOptions, range range: NSRange, remainingRange leftover: NSRangePointer) -> Bool
func maximumLengthOfBytesUsingEncoding(_ enc: UInt) -> Int
func lengthOfBytesUsingEncoding(_ enc: UInt) -> Int
class func availableStringEncodings() -> UnsafePointer<UInt>
class func localizedNameOfStringEncoding(_ encoding: UInt) -> String
class func defaultCStringEncoding() -> UInt
var decomposedStringWithCanonicalMapping: String { get }
var precomposedStringWithCanonicalMapping: String { get }
var decomposedStringWithCompatibilityMapping: String { get }
var precomposedStringWithCompatibilityMapping: String { get }
func componentsSeparatedByString(_ separator: String) -> [String]
func componentsSeparatedByCharactersInSet(_ separator: NSCharacterSet) -> [String]
func stringByTrimmingCharactersInSet(_ set: NSCharacterSet) -> String
func stringByPaddingToLength(_ newLength: Int, withString padString: String, startingAtIndex padIndex: Int) -> String
func stringByFoldingWithOptions(_ options: NSStringCompareOptions, locale locale: NSLocale?) -> String
func stringByReplacingOccurrencesOfString(_ target: String, withString replacement: String, options options: NSStringCompareOptions, range searchRange: NSRange) -> String
func stringByReplacingOccurrencesOfString(_ target: String, withString replacement: String) -> String
func stringByReplacingCharactersInRange(_ range: NSRange, withString replacement: String) -> String
func stringByApplyingTransform(_ transform: String, reverse reverse: Bool) -> String?
func writeToURL(_ url: NSURL, atomically useAuxiliaryFile: Bool, encoding enc: UInt) throws
func writeToFile(_ path: String, atomically useAuxiliaryFile: Bool, encoding enc: UInt) throws
var description: String { get }
var hash: Int { get }
convenience init(charactersNoCopy characters: UnsafeMutablePointer<unichar>, length length: Int, freeWhenDone freeBuffer: Bool)
convenience init(characters characters: UnsafePointer<unichar>, length length: Int)
convenience init?(UTF8String nullTerminatedCString: UnsafePointer<Int8>)
convenience init(string aString: String)
convenience init(format format: String, arguments argList: CVaListPointer)
convenience init(format format: String, locale locale: AnyObject?, arguments argList: CVaListPointer)
convenience init?(data data: NSData, encoding encoding: UInt)
convenience init?(bytes bytes: UnsafePointer<Void>, length len: Int, encoding encoding: UInt)
convenience init?(bytesNoCopy bytes: UnsafeMutablePointer<Void>, length len: Int, encoding encoding: UInt, freeWhenDone freeBuffer: Bool)
class func string() -> Self
class func stringWithString(_ string: String) -> Self
class func stringWithCharacters(_ characters: UnsafePointer<unichar>, length length: Int) -> Self
class func stringWithUTF8String(_ nullTerminatedCString: UnsafePointer<Int8>) -> Self?
convenience init?(CString nullTerminatedCString: UnsafePointer<Int8>, encoding encoding: UInt)
class func stringWithCString(_ cString: UnsafePointer<Int8>, encoding enc: UInt) -> Self?
convenience init(contentsOfURL url: NSURL, encoding enc: UInt) throws
convenience init(contentsOfFile path: String, encoding enc: UInt) throws
class func stringWithContentsOfURL(_ url: NSURL, encoding enc: UInt) throws -> Self
class func stringWithContentsOfFile(_ path: String, encoding enc: UInt) throws -> Self
convenience init(contentsOfURL url: NSURL, usedEncoding enc: UnsafeMutablePointer<UInt>) throws
convenience init(contentsOfFile path: String, usedEncoding enc: UnsafeMutablePointer<UInt>) throws
class func stringWithContentsOfURL(_ url: NSURL, usedEncoding enc: UnsafeMutablePointer<UInt>) throws -> Self
class func stringWithContentsOfFile(_ path: String, usedEncoding enc: UnsafeMutablePointer<UInt>) throws -> Self
}
extension NSString {
class func stringEncodingForData(_ data: NSData, encodingOptions opts: [String : AnyObject]?, convertedString string: AutoreleasingUnsafeMutablePointer<NSString?>, usedLossyConversion usedLossyConversion: UnsafeMutablePointer<ObjCBool>) -> UInt
}
extension NSString {
func propertyList() -> AnyObject
func propertyListFromStringsFileFormat() -> [NSObject : AnyObject]?
}
extension NSString {
func cString() -> UnsafePointer<Int8>
func lossyCString() -> UnsafePointer<Int8>
func cStringLength() -> Int
func getCString(_ bytes: UnsafeMutablePointer<Int8>)
func getCString(_ bytes: UnsafeMutablePointer<Int8>, maxLength maxLength: Int)
func getCString(_ bytes: UnsafeMutablePointer<Int8>, maxLength maxLength: Int, range aRange: NSRange, remainingRange leftoverRange: NSRangePointer)
func writeToFile(_ path: String, atomically useAuxiliaryFile: Bool) -> Bool
func writeToURL(_ url: NSURL, atomically atomically: Bool) -> Bool
convenience init?(contentsOfFile path: String)
convenience init?(contentsOfURL url: NSURL)
class func stringWithContentsOfFile(_ path: String) -> AnyObject?
class func stringWithContentsOfURL(_ url: NSURL) -> AnyObject?
convenience init?(CStringNoCopy bytes: UnsafeMutablePointer<Int8>, length length: Int, freeWhenDone freeBuffer: Bool)
convenience init?(CString bytes: UnsafePointer<Int8>, length length: Int)
convenience init?(CString bytes: UnsafePointer<Int8>)
class func stringWithCString(_ bytes: UnsafePointer<Int8>, length length: Int) -> AnyObject?
class func stringWithCString(_ bytes: UnsafePointer<Int8>) -> AnyObject?
func getCharacters(_ buffer: UnsafeMutablePointer<unichar>)
}
extension NSString {
func stringByAddingPercentEncodingWithAllowedCharacters(_ allowedCharacters: NSCharacterSet) -> String?
var stringByRemovingPercentEncoding: String? { get }
func stringByAddingPercentEscapesUsingEncoding(_ enc: UInt) -> String?
func stringByReplacingPercentEscapesUsingEncoding(_ enc: UInt) -> String?
}
extension NSString : _Reflectable {
}
extension NSString {
@objc(_swiftInitWithString_NSString:) convenience init(string aString: NSString)
}
extension NSString {
convenience init(format format: NSString, _ args: CVarArgType...)
convenience init(format format: NSString, locale locale: NSLocale?, _ args: CVarArgType...)
@warn_unused_result
class func localizedStringWithFormat(_ format: NSString, _ args: CVarArgType...) -> Self
@warn_unused_result
func stringByAppendingFormat(_ format: NSString, _ args: CVarArgType...) -> NSString
}
extension NSString : StringLiteralConvertible {
required convenience init(unicodeScalarLiteral value: StaticString)
required convenience init(extendedGraphemeClusterLiteral value: StaticString)
required convenience init(stringLiteral value: StaticString)
}
extension NSString {
func sizeWithAttributes(_ attrs: [String : AnyObject]?) -> CGSize
func drawAtPoint(_ point: CGPoint, withAttributes attrs: [String : AnyObject]?)
func drawInRect(_ rect: CGRect, withAttributes attrs: [String : AnyObject]?)
}
extension NSString {
func drawWithRect(_ rect: CGRect, options options: NSStringDrawingOptions, attributes attributes: [String : AnyObject]?, context context: NSStringDrawingContext?)
func boundingRectWithSize(_ size: CGSize, options options: NSStringDrawingOptions, attributes attributes: [String : AnyObject]?, context context: NSStringDrawingContext?) -> CGRect
}
extension NSString {
func sizeWithFont(_ font: UIFont!) -> CGSize
func sizeWithFont(_ font: UIFont!, forWidth width: CGFloat, lineBreakMode lineBreakMode: NSLineBreakMode) -> CGSize
func drawAtPoint(_ point: CGPoint, withFont font: UIFont!) -> CGSize
func drawAtPoint(_ point: CGPoint, forWidth width: CGFloat, withFont font: UIFont!, lineBreakMode lineBreakMode: NSLineBreakMode) -> CGSize
func sizeWithFont(_ font: UIFont!, constrainedToSize size: CGSize) -> CGSize
func sizeWithFont(_ font: UIFont!, constrainedToSize size: CGSize, lineBreakMode lineBreakMode: NSLineBreakMode) -> CGSize
func drawInRect(_ rect: CGRect, withFont font: UIFont!) -> CGSize
func drawInRect(_ rect: CGRect, withFont font: UIFont!, lineBreakMode lineBreakMode: NSLineBreakMode) -> CGSize
func drawInRect(_ rect: CGRect, withFont font: UIFont!, lineBreakMode lineBreakMode: NSLineBreakMode, alignment alignment: NSTextAlignment) -> CGSize
func sizeWithFont(_ font: UIFont!, minFontSize minFontSize: CGFloat, actualFontSize actualFontSize: UnsafeMutablePointer<CGFloat>, forWidth width: CGFloat, lineBreakMode lineBreakMode: NSLineBreakMode) -> CGSize
func drawAtPoint(_ point: CGPoint, forWidth width: CGFloat, withFont font: UIFont!, fontSize fontSize: CGFloat, lineBreakMode lineBreakMode: NSLineBreakMode, baselineAdjustment baselineAdjustment: UIBaselineAdjustment) -> CGSize
func drawAtPoint(_ point: CGPoint, forWidth width: CGFloat, withFont font: UIFont!, minFontSize minFontSize: CGFloat, actualFontSize actualFontSize: UnsafeMutablePointer<CGFloat>, lineBreakMode lineBreakMode: NSLineBreakMode, baselineAdjustment baselineAdjustment: UIBaselineAdjustment) -> CGSize
} |
---|