Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Compile Swift Module 'Utils' (410 sources)
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/path/cg/CGPathExtensions.swift:43:21: error: converting non-escaping value to 'T' may allow it to escape
- Swift.print(MemoryLayout.size(ofValue: body))
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/path/cg/CGPathExtensions.swift:44:26: error: converting non-escaping value to 'T' may allow it to escape
- let unsafeBody = unsafeBitCast(body, to: UnsafeMutableRawPointer.self)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/context/Graphics.swift:25:41: error: cannot use optional chaining on non-optional value of type '() -> NSGraphicsContext?'
- return NSGraphicsContext.current?.cgContext ?? {fatalError("Context not available")}()/* Get the handle to the current context */
- ~~~~~~~~~~~~~~~~~~~~~~~~~^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/context/Graphics.swift:105:9: error: 'beginOuterShadow' is inaccessible due to 'private' protection level
- beginOuterShadow(path)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/context/Graphics.swift:191:18: note: 'beginOuterShadow' declared here
- private func beginOuterShadow(_ path:CGPath){
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/context/Graphics.swift:117:9: error: 'endOuterShadow' is inaccessible due to 'private' protection level
- endOuterShadow()
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/context/Graphics.swift:197:18: note: 'endOuterShadow()' declared here
- private func endOuterShadow(){
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/context/Graphics.swift:118:9: error: 'applyInnerShadow' is inaccessible due to 'private' protection level
- applyInnerShadow(path:path)/*init inner shadow*/
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/context/Graphics.swift:202:18: note: 'applyInnerShadow(path:)' declared here
- private func applyInnerShadow(path:CGPath){
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/file/FileParser.swift:81:80: error: cannot convert value of type 'XMLNode.Options' to expected argument type 'Int'
- let xmlDoc:XMLDoc = try XMLDoc(xmlString:content, options: XMLNode.Options(rawValue: 0))
- ~~~~~~~~^~~~~~~~~~~~~~~~~~~~
- Int( .rawValue)
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/file/FileUtils.swift:24:21: error: method 'shared' was used as a property; add () to call it
- NSWorkspace.shared.selectFile(nil, inFileViewerRootedAtPath: expandedFilePath)
- ^
- ()
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/rect/cg/CGRectExtensions.swift:29:81: warning: initializer for struct 'CGRect' must use "self.init(...)" or "self = ..." because the struct was imported from C
- init(_ x:CGFloat,_ y:CGFloat,_ width:CGFloat,_ height:CGFloat){ self.origin = CGPoint(x,y); self.size = CGSize( width, height);}//TODO:add initializer to CGSize
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/rect/cg/CGRectExtensions.swift:29:81: note: use "self.init()" to initialize the struct with zero values
- init(_ x:CGFloat,_ y:CGFloat,_ width:CGFloat,_ height:CGFloat){ self.origin = CGPoint(x,y); self.size = CGSize( width, height);}//TODO:add initializer to CGSize
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/rect/cg/CGRectExtensions.swift:30:77: warning: initializer for struct 'CGRect' must use "self.init(...)" or "self = ..." because the struct was imported from C
- init(_ x:Double,_ y:Double,_ width:Double,_ height:Double){ self.origin = CGPoint(x,y); self.size = CGSize( width, height);}//TODO:add initializer to CGSize
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/rect/cg/CGRectExtensions.swift:30:77: note: use "self.init()" to initialize the struct with zero values
- init(_ x:Double,_ y:Double,_ width:Double,_ height:Double){ self.origin = CGPoint(x,y); self.size = CGSize( width, height);}//TODO:add initializer to CGSize
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/rect/cg/CGRectExtensions.swift:31:79: warning: initializer for struct 'CGRect' must use "self.init(...)" or "self = ..." because the struct was imported from C
- init(_ x:CGFloat,_ y:CGFloat,_ width:Double,_ height:Double){ self.origin = CGPoint(x,y); self.size = CGSize(width,height);}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/rect/cg/CGRectExtensions.swift:31:79: note: use "self.init()" to initialize the struct with zero values
- init(_ x:CGFloat,_ y:CGFloat,_ width:Double,_ height:Double){ self.origin = CGPoint(x,y); self.size = CGSize(width,height);}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/rect/cg/CGRectExtensions.swift:32:71: warning: initializer for struct 'CGRect' must use "self.init(...)" or "self = ..." because the struct was imported from C
- init(_ x:Int,_ y:Int,_ width:Double,_ height:Double){ self.origin = CGPoint(x,y); self.size = CGSize(width,height);}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/rect/cg/CGRectExtensions.swift:32:71: note: use "self.init()" to initialize the struct with zero values
- init(_ x:Int,_ y:Int,_ width:Double,_ height:Double){ self.origin = CGPoint(x,y); self.size = CGSize(width,height);}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/size/CGSizeExtensions.swift:4:55: warning: initializer for struct 'CGSize' must use "self.init(...)" or "self = ..." because the struct was imported from C
- init(_ width:CGFloat,_ height:CGFloat){self.width = width;self.height = height}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/size/CGSizeExtensions.swift:4:55: note: use "self.init()" to initialize the struct with zero values
- init(_ width:CGFloat,_ height:CGFloat){self.width = width;self.height = height}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/size/CGSizeExtensions.swift:5:53: warning: initializer for struct 'CGSize' must use "self.init(...)" or "self = ..." because the struct was imported from C
- init(_ width:Double,_ height:Double){self.width = CGFloat(width);self.height = CGFloat(height)}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/size/CGSizeExtensions.swift:5:53: note: use "self.init()" to initialize the struct with zero values
- init(_ width:Double,_ height:Double){self.width = CGFloat(width);self.height = CGFloat(height)}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/size/CGSizeExtensions.swift:6:47: warning: initializer for struct 'CGSize' must use "self.init(...)" or "self = ..." because the struct was imported from C
- init(_ width:Int,_ height:Int){self.width = CGFloat(width);self.height = CGFloat(height)}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/size/CGSizeExtensions.swift:6:47: note: use "self.init()" to initialize the struct with zero values
- init(_ width:Int,_ height:Int){self.width = CGFloat(width);self.height = CGFloat(height)}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/transform/CGAffineTransformParser.swift:56:17: warning: all paths through this function will call itself
- static func concat(_ a:CGTransform,_ b:CGTransform)->CGTransform{
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/event/NSEventExtensions.swift:17:24: error: method 'modifierFlags' was used as a property; add () to call it
- return NSEvent.modifierFlags.contains(NSEvent.ModifierFlags.shift)
- ^
- ()
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/layout/menu/NSMenuItemExtensions.swift:7:48: error: type 'NSControl.StateValue' (aka 'Int') has no member 'on'
- var checked:Bool {get{return self.state == NSControl.StateValue.on} set{self.state = newValue ? NSControl.StateValue.on : NSControl.StateValue.off}}
- ^~~~~~~~~~~~~~~~~~~~ ~~
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/layout/menu/NSMenuItemExtensions.swift:7:102: error: type 'NSControl.StateValue' (aka 'Int') has no member 'on'
- var checked:Bool {get{return self.state == NSControl.StateValue.on} set{self.state = newValue ? NSControl.StateValue.on : NSControl.StateValue.off}}
- ^~~~~~~~~~~~~~~~~~~~ ~~
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/class/reflection/reflect/Reflect.swift:198:24: warning: 'characters' is deprecated: Please use String or Substring directly
- let arr1 = str.characters.split{$0 == "<"}.map(String.init)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/class/reflection/reflect/Reflect.swift:198:63: warning: 'init' is deprecated: Please use String or Substring directly
- let arr1 = str.characters.split{$0 == "<"}.map(String.init)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/class/reflection/reflect/Reflect.swift:199:28: warning: 'characters' is deprecated: Please use String or Substring directly
- let arr2 = arr1[1].characters.split{$0 == ">"}.map(String.init)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/class/reflection/reflect/Reflect.swift:199:67: warning: 'init' is deprecated: Please use String or Substring directly
- let arr2 = arr1[1].characters.split{$0 == ">"}.map(String.init)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/view/InteractiveView.swift:167:44: error: function produces expected type 'NSCursor'; did you mean to call it with '()'?
- let cursor:NSCursor = NSCursor.pointingHand
- ~~~~~~~~~^~~~~~~~~~~~
- ()
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/layout/window/WinExtensions.swift:21:63: error: method 'mouseLocation' was used as a property; add () to call it
- var flippedScreenPosition:CGPoint {return CGPoint(NSEvent.mouseLocation.x,abs(NSEvent.mouseLocation.y + -NSScreen.main!.visibleFrame.height))/*flip the y coordianate:*/}/*Returns the topLeft postion of the win in relation to the screen*/
- ^
- ()
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/layout/window/WinExtensions.swift:22:68: error: cannot force unwrap value of non-optional type '() -> NSScreen?'
- var topLeft:CGPoint{return CGPoint(frame.origin.x,NSScreen.main!.visibleFrame.height - self.frame.origin.y - self.frame.size.height)}/*returns the topLeft pos (in a flipped coordinate space aka 0,0 coordinate space)*/
- ~~~~~~~~~~~~~^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/layout/window/WinExtensions.swift:24:57: error: cannot force unwrap value of non-optional type '() -> NSScreen?'
- return CGPoint(pos.x, abs(pos.y + -NSScreen.main!.visibleFrame.height) - self.frame.size.height)/*flip the y coordinate back*/
- ~~~~~~~~~~~~~^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/layout/window/WinModifier.swift:26:95: error: cannot force unwrap value of non-optional type '() -> NSScreen?'
- return Align.alignmentPoint(CGSize(winSize.width,winSize.height), CGSize(NSScreen.main!.visibleFrame.width,NSScreen.main!.visibleFrame.height),canvasAlignment,viewAlignment,offset)
- ~~~~~~~~~~~~~^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/network/NetworkParser.swift:41:52: error: method 'shared' was used as a property; add () to call it
- if let url = URL(string: url), NSWorkspace.shared.open(url) {
- ^
- ()
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/range/RangeExtensions.swift:12:30: error: missing argument for parameter #2 in call
- self.init(start..<end/*<-CountableRange<Int>*/)//which->converts to Range<Int>
- ^
- , <#Bound#>
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/range/RangeExtensions.swift:10:5: note: 'init' declared here
- init(_ start:Bound,_ end:Bound){/*Conveninence initializer*/
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/shell/git/GitAsserter.swift:37:39: warning: 'characters' is deprecated: Please use String or Substring directly
- let hasCommits:Bool = (cherryResult.characters.count > 0)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/text/TextField.swift:37:50: error: function produces expected type 'NSCursor'; did you mean to call it with '()'?
- addCursorRect(frame, cursor:NSCursor.iBeam)//sets the default text cursor
- ~~~~~~~~~^~~~~
- ()
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/text/TextField2.swift:63:50: error: function produces expected type 'NSCursor'; did you mean to call it with '()'?
- addCursorRect(frame, cursor:NSCursor.iBeam)//sets the default text cursor
- ~~~~~~~~~^~~~~
- ()
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/text/TextField2.swift:129:53: error: cannot force unwrap value of non-optional type '(Event) -> ()'
- (self.superview as! EventSendable).event!(TextFieldEvent(Event.update,self))
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/text/utils/TextFieldParser.swift:10:81: error: type 'NSFontDescriptor.AttributeName' (aka 'NSString') has no member 'name'
- let fontDescriptor:NSFontDescriptor = NSFontDescriptor(fontAttributes: [NSFontDescriptor.AttributeName.name:fontName/*,NSParagraphStyleAttributeName:paragraphStyle*/])//NSForegroundColorAttributeName:NSColor.redColor(),
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/text/utils/format/TextFormatUtils.swift:16:54: error: type 'NSAttributedStringKey' (aka 'NSString') has no member 'font'; did you mean 'zone'?
- let attribs:[NSAttributedStringKey : Any] = [NSAttributedStringKey.font:font,NSAttributedStringKey.foregroundColor:textColor,NSAttributedStringKey.paragraphStyle:textParagraph]
- ^~~~~~~~~~~~~~~~~~~~~ ~~~~
- zone
- ObjectiveC.NSObject:160:15: note: 'zone' declared here
- open func zone() -> NSZone!
- ^
- ObjectiveC.NSObject:162:21: note: 'zone' declared here
- open class func zone() -> NSZone!
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/text/utils/format/TextFormatUtils.swift:17:102: error: cannot convert value of type '[NSAttributedStringKey : Any]' (aka 'Dictionary<NSString, Any>') to expected argument type '[String : Any]?'
- let attrString:NSAttributedString = NSAttributedString.init(string: stringValue, attributes: attribs)
- ^~~~~~~
- as [String : Any]
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/xml/XMLAsserter.swift:27:83: error: cannot convert value of type 'XMLNode.Options' to expected argument type 'Int'
- guard let xmlDoc:XMLDoc = try? XMLDoc(xmlString: xmlStr, options: XMLNode.Options(rawValue: 0)) else{
- ~~~~~~~~^~~~~~~~~~~~~~~~~~~~
- Int( .rawValue)
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/xml/XMLParser.swift:22:77: error: cannot convert value of type 'XMLNode.Options' to expected argument type 'Int'
- let xmlDoc:XMLDoc = try! XMLDoc(xmlString: xmlStr, options: XMLNode.Options(rawValue: 0))
- ~~~~~~~~^~~~~~~~~~~~~~~~~~~~
- Int( .rawValue)
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/xml/XMLParser.swift:76:45: error: type 'Int' has no member 'nodePrettyPrint'
- let data = xmlDoc.xmlData(options: .nodePrettyPrint)
- ^~~~~~~~~~~~~~~
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/xml/XMLUtils.swift:47:81: error: cannot convert value of type 'XMLNode.Options' to expected argument type 'Int'
- let xmlDoc:XMLDoc = try! XMLDoc(xmlString: result, options: XMLNode.Options(rawValue: 0))
- ~~~~~~~~^~~~~~~~~~~~~~~~~~~~
- Int( .rawValue)
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/xml/XMLUtils.swift:84:48: warning: 'characters' is deprecated: Please use String or Substring directly
- attributeText.remove(at: attributeText.characters.indices.last!)//remove trailing space
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/xml/XMLUtils.swift:86:21: warning: 'characters' is deprecated: Please use String or Substring directly
- if (content.characters.count > 0) { //has content
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringAsserter.swift:12:18: warning: 'characters' is deprecated: Please use String or Substring directly
- return (string.characters.first == char) && (string.characters.last == char)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringAsserter.swift:12:55: warning: 'characters' is deprecated: Please use String or Substring directly
- return (string.characters.first == char) && (string.characters.last == char)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringExtensions.swift:118:31: warning: 'characters' is deprecated: Please use String or Substring directly
- var count:Int{return self.characters.count}/*Since swift 4 There is also native count, But it doesnt return Int*/
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringModifier.swift:46:46: warning: 'characters' is deprecated: Please use String or Substring directly
- input.insert(contentsOf: replacement.characters, at: input.range(of:match)!.lowerBound)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringModifier.swift:71:27: warning: 'characters' is deprecated: Please use String or Substring directly
- return String(str.characters.reversed())//new in swift 2
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringModifier.swift:94:61: warning: 'characters' is deprecated: Please use String or Substring directly
- let theRest:String = StringParser.subString(str,str.characters.count,1)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringModifier.swift:129:32: warning: 'characters' is deprecated: Please use String or Substring directly
- a.insert(contentsOf: b.characters, at: index)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:55:42: warning: 'characters' is deprecated: Please use String or Substring directly
- return String(describing: string.characters.last)//swift 3 upgrade -> was: String()
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:80:39: warning: 'characters' is deprecated: Please use String or Substring directly
- let b:String = subStr(str,index,str.characters.count)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:97:16: warning: 'init' is deprecated: Please use String or Substring directly
- return String(str.characters.dropFirst())
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:97:27: warning: 'characters' is deprecated: Please use String or Substring directly
- return String(str.characters.dropFirst())
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:104:16: warning: 'init' is deprecated: Please use String or Substring directly
- return String(str.characters.dropLast())
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:104:27: warning: 'characters' is deprecated: Please use String or Substring directly
- return String(str.characters.dropLast())
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:120:16: warning: 'characters' is deprecated: Please use String or Substring directly
- if str.characters.first == left {str = String(str.characters.dropFirst())}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:120:48: warning: 'init' is deprecated: Please use String or Substring directly
- if str.characters.first == left {str = String(str.characters.dropFirst())}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:120:59: warning: 'characters' is deprecated: Please use String or Substring directly
- if str.characters.first == left {str = String(str.characters.dropFirst())}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:129:16: warning: 'characters' is deprecated: Please use String or Substring directly
- if str.characters.last == right {str = String(str.characters.dropLast())}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:129:48: warning: 'init' is deprecated: Please use String or Substring directly
- if str.characters.last == right {str = String(str.characters.dropLast())}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:129:59: warning: 'characters' is deprecated: Please use String or Substring directly
- if str.characters.last == right {str = String(str.characters.dropLast())}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:172:20: warning: 'characters' is deprecated: Please use String or Substring directly
- if hex.characters.count == 3 {
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:173:35: warning: 'characters' is deprecated: Please use String or Substring directly
- hex = String([hex.characters.first!,hex.characters.first!,hex.characters[hex.index(hex.startIndex,offsetBy:1)],hex.characters[hex.index(hex.startIndex,offsetBy:1)],hex.characters.last!,hex.characters.last!])//upgraded to swift 3
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:173:57: warning: 'characters' is deprecated: Please use String or Substring directly
- hex = String([hex.characters.first!,hex.characters.first!,hex.characters[hex.index(hex.startIndex,offsetBy:1)],hex.characters[hex.index(hex.startIndex,offsetBy:1)],hex.characters.last!,hex.characters.last!])//upgraded to swift 3
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:173:79: warning: 'characters' is deprecated: Please use String or Substring directly
- hex = String([hex.characters.first!,hex.characters.first!,hex.characters[hex.index(hex.startIndex,offsetBy:1)],hex.characters[hex.index(hex.startIndex,offsetBy:1)],hex.characters.last!,hex.characters.last!])//upgraded to swift 3
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:173:132: warning: 'characters' is deprecated: Please use String or Substring directly
- hex = String([hex.characters.first!,hex.characters.first!,hex.characters[hex.index(hex.startIndex,offsetBy:1)],hex.characters[hex.index(hex.startIndex,offsetBy:1)],hex.characters.last!,hex.characters.last!])//upgraded to swift 3
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:173:185: warning: 'characters' is deprecated: Please use String or Substring directly
- hex = String([hex.characters.first!,hex.characters.first!,hex.characters[hex.index(hex.startIndex,offsetBy:1)],hex.characters[hex.index(hex.startIndex,offsetBy:1)],hex.characters.last!,hex.characters.last!])//upgraded to swift 3
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:173:206: warning: 'characters' is deprecated: Please use String or Substring directly
- hex = String([hex.characters.first!,hex.characters.first!,hex.characters[hex.index(hex.startIndex,offsetBy:1)],hex.characters[hex.index(hex.startIndex,offsetBy:1)],hex.characters.last!,hex.characters.last!])//upgraded to swift 3
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/StringParser.swift:226:27: warning: 'characters' is deprecated: Please use String or Substring directly
- let arr:[T] = str.characters.map{cast($0)}
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/character/CharacterAsserter.swift:7:23: warning: 'characters' is deprecated: Please use String or Substring directly
- return string.characters.contains(char)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/character/CharacterModifier.swift:15:28: warning: 'characters' is deprecated: Please use String or Substring directly
- str.remove(at: str.characters.indices.first!)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/character/CharacterModifier.swift:22:28: warning: 'characters' is deprecated: Please use String or Substring directly
- str.remove(at: str.characters.indices.last!)
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/character/CharacterParser.swift:7:20: warning: 'characters' is deprecated: Please use String or Substring directly
- return str.characters[successor]
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/character/CharacterParser.swift:14:20: warning: 'characters' is deprecated: Please use String or Substring directly
- return str.characters[predecessor]
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/character/CharacterParser.swift:20:31: warning: 'characters' is deprecated: Please use String or Substring directly
- if let strIndex = str.characters.index(of: char) {
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/character/CharacterParser.swift:39:20: warning: 'characters' is deprecated: Please use String or Substring directly
- return str.characters.last!
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/character/CharacterParser.swift:45:20: warning: 'characters' is deprecated: Please use String or Substring directly
- return str.characters.first!
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/regexp/RegExp.swift:79:36: warning: 'characters' is deprecated: Please use String or Substring directly
- let stringlength = str.characters.count
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/regexp/RegExp.swift:98:36: error: 'range(at:)' has been renamed to 'rangeAt(_:)'
- let range:NSRange = $0.range(at: 1)
- ^~~~~ ~~~~
- rangeAt
- Foundation.NSTextCheckingResult:28:15: note: 'range(at:)' was introduced in Swift 4
- open func range(at idx: Int) -> NSRange
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/regexp/RegExp.swift:98:36: error: 'range(at:)' has been renamed to 'rangeAt(_:)'
- let range:NSRange = $0.range(at: 1)
- ^~~~~ ~~~~
- rangeAt
- Foundation.NSTextCheckingResult:28:15: note: 'range(at:)' was introduced in Swift 4
- open func range(at idx: Int) -> NSRange
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/string/regexp/RegExp.swift:117:57: error: 'range(at:)' has been renamed to 'rangeAt(_:)'
- return (str as NSString).substring(with: result.range(at: key))
- ^~~~~ ~~~~
- rangeAt
- Foundation.NSTextCheckingResult:28:15: note: 'range(at:)' was introduced in Swift 4
- open func range(at idx: Int) -> NSRange
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/clipboard/ClipboardAsserter.swift:9:16: error: function 'pasteboard' was used as a property; add () to call it
- return pasteboard.canReadItem(withDataConformingToTypes: [clipboardFormat])
- ^
- ()
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/clipboard/ClipboardAsserter.swift:12:24: error: ambiguous use of 'string'
- return hasData(NSPasteboard.PasteboardType.string.rawValue)
- ^
- Foundation.NSString:248:21: note: found this candidate
- open class func string() -> Self
- ^
- Foundation.NSString:35:21: note: found this candidate
- open class func string(withContentsOfFile path: String) -> Any?
- ^
- Foundation.NSString:40:21: note: found this candidate
- open class func string(withContentsOf url: URL) -> Any?
- ^
- Foundation.NSString:60:21: note: found this candidate
- open class func string(withCString bytes: UnsafePointer<Int8>, length: Int) -> Any?
- ^
- Foundation.NSString:65:21: note: found this candidate
- open class func string(withCString bytes: UnsafePointer<Int8>) -> Any?
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/clipboard/ClipboardModifier.swift:16:9: error: function 'thePasteboard' was used as a property; add () to call it
- thePasteboard.clearContents()/*Clear any previous data, since a sys clipboard can have 2 version of the same data etc*/
- ^
- ()
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/clipboard/ClipboardModifier.swift:17:9: error: function 'thePasteboard' was used as a property; add () to call it
- thePasteboard.setString(string, forType: NSPasteboard.PasteboardType(rawValue: clipboardFormat))
- ^
- ()
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/clipboard/ClipboardModifier.swift:20:38: error: ambiguous use of 'string'
- return setStringData(string, NSPasteboard.PasteboardType.string.rawValue)
- ^
- Foundation.NSString:248:21: note: found this candidate
- open class func string() -> Self
- ^
- Foundation.NSString:35:21: note: found this candidate
- open class func string(withContentsOfFile path: String) -> Any?
- ^
- Foundation.NSString:40:21: note: found this candidate
- open class func string(withContentsOf url: URL) -> Any?
- ^
- Foundation.NSString:60:21: note: found this candidate
- open class func string(withCString bytes: UnsafePointer<Int8>, length: Int) -> Any?
- ^
- Foundation.NSString:65:21: note: found this candidate
- open class func string(withCString bytes: UnsafePointer<Int8>) -> Any?
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/clipboard/ClipboardParser.swift:10:27: error: function 'pasteboard' was used as a property; add () to call it
- let data:String = pasteboard.string(forType: NSPasteboard.PasteboardType(rawValue: dataType))!
- ^
- ()
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/clipboard/ClipboardParser.swift:14:27: error: ambiguous use of 'string'
- return stringData(NSPasteboard.PasteboardType.string.rawValue)
- ^
- Foundation.NSString:248:21: note: found this candidate
- open class func string() -> Self
- ^
- Foundation.NSString:35:21: note: found this candidate
- open class func string(withContentsOfFile path: String) -> Any?
- ^
- Foundation.NSString:40:21: note: found this candidate
- open class func string(withContentsOf url: URL) -> Any?
- ^
- Foundation.NSString:60:21: note: found this candidate
- open class func string(withCString bytes: UnsafePointer<Int8>, length: Int) -> Any?
- ^
- Foundation.NSString:65:21: note: found this candidate
- open class func string(withCString bytes: UnsafePointer<Int8>) -> Any?
- ^
- /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/date/DateParser.swift:93:59: warning: 'characters' is deprecated: Please use String or Substring directly
- return date.dayName != nil ? String(date.dayName!.characters.first!) : ""
- ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement