Advertisement
Guest User

Untitled

a guest
Oct 30th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.58 KB | None | 0 0
  1. Compile Swift Module 'Utils' (410 sources)
  2. /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
  3. Swift.print(MemoryLayout.size(ofValue: body))
  4. ^
  5. /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
  6. let unsafeBody = unsafeBitCast(body, to: UnsafeMutableRawPointer.self)
  7. ^
  8. /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?'
  9. return NSGraphicsContext.current?.cgContext ?? {fatalError("Context not available")}()/* Get the handle to the current context */
  10. ~~~~~~~~~~~~~~~~~~~~~~~~~^
  11.  
  12. /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
  13. beginOuterShadow(path)
  14. ^
  15. /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/context/Graphics.swift:191:18: note: 'beginOuterShadow' declared here
  16. private func beginOuterShadow(_ path:CGPath){
  17. ^
  18. /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
  19. endOuterShadow()
  20. ^
  21. /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/context/Graphics.swift:197:18: note: 'endOuterShadow()' declared here
  22. private func endOuterShadow(){
  23. ^
  24. /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
  25. applyInnerShadow(path:path)/*init inner shadow*/
  26. ^
  27. /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/geom/context/Graphics.swift:202:18: note: 'applyInnerShadow(path:)' declared here
  28. private func applyInnerShadow(path:CGPath){
  29. ^
  30. /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'
  31. let xmlDoc:XMLDoc = try XMLDoc(xmlString:content, options: XMLNode.Options(rawValue: 0))
  32. ~~~~~~~~^~~~~~~~~~~~~~~~~~~~
  33. Int( .rawValue)
  34. /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
  35. NSWorkspace.shared.selectFile(nil, inFileViewerRootedAtPath: expandedFilePath)
  36. ^
  37. ()
  38. /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
  39. init(_ x:CGFloat,_ y:CGFloat,_ width:CGFloat,_ height:CGFloat){ self.origin = CGPoint(x,y); self.size = CGSize( width, height);}//TODO:add initializer to CGSize
  40. ^
  41. /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
  42. init(_ x:CGFloat,_ y:CGFloat,_ width:CGFloat,_ height:CGFloat){ self.origin = CGPoint(x,y); self.size = CGSize( width, height);}//TODO:add initializer to CGSize
  43. ^
  44. /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
  45. init(_ x:Double,_ y:Double,_ width:Double,_ height:Double){ self.origin = CGPoint(x,y); self.size = CGSize( width, height);}//TODO:add initializer to CGSize
  46. ^
  47. /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
  48. init(_ x:Double,_ y:Double,_ width:Double,_ height:Double){ self.origin = CGPoint(x,y); self.size = CGSize( width, height);}//TODO:add initializer to CGSize
  49. ^
  50. /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
  51. init(_ x:CGFloat,_ y:CGFloat,_ width:Double,_ height:Double){ self.origin = CGPoint(x,y); self.size = CGSize(width,height);}
  52. ^
  53. /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
  54. init(_ x:CGFloat,_ y:CGFloat,_ width:Double,_ height:Double){ self.origin = CGPoint(x,y); self.size = CGSize(width,height);}
  55. ^
  56. /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
  57. init(_ x:Int,_ y:Int,_ width:Double,_ height:Double){ self.origin = CGPoint(x,y); self.size = CGSize(width,height);}
  58. ^
  59. /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
  60. init(_ x:Int,_ y:Int,_ width:Double,_ height:Double){ self.origin = CGPoint(x,y); self.size = CGSize(width,height);}
  61. ^
  62. /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
  63. init(_ width:CGFloat,_ height:CGFloat){self.width = width;self.height = height}
  64. ^
  65. /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
  66. init(_ width:CGFloat,_ height:CGFloat){self.width = width;self.height = height}
  67. ^
  68. /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
  69. init(_ width:Double,_ height:Double){self.width = CGFloat(width);self.height = CGFloat(height)}
  70. ^
  71. /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
  72. init(_ width:Double,_ height:Double){self.width = CGFloat(width);self.height = CGFloat(height)}
  73. ^
  74. /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
  75. init(_ width:Int,_ height:Int){self.width = CGFloat(width);self.height = CGFloat(height)}
  76. ^
  77. /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
  78. init(_ width:Int,_ height:Int){self.width = CGFloat(width);self.height = CGFloat(height)}
  79. ^
  80. /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
  81. static func concat(_ a:CGTransform,_ b:CGTransform)->CGTransform{
  82. ^
  83. /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
  84. return NSEvent.modifierFlags.contains(NSEvent.ModifierFlags.shift)
  85. ^
  86. ()
  87. /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'
  88. var checked:Bool {get{return self.state == NSControl.StateValue.on} set{self.state = newValue ? NSControl.StateValue.on : NSControl.StateValue.off}}
  89. ^~~~~~~~~~~~~~~~~~~~ ~~
  90. /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'
  91. var checked:Bool {get{return self.state == NSControl.StateValue.on} set{self.state = newValue ? NSControl.StateValue.on : NSControl.StateValue.off}}
  92. ^~~~~~~~~~~~~~~~~~~~ ~~
  93. /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
  94. let arr1 = str.characters.split{$0 == "<"}.map(String.init)
  95. ^
  96. /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
  97. let arr1 = str.characters.split{$0 == "<"}.map(String.init)
  98. ^
  99. /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
  100. let arr2 = arr1[1].characters.split{$0 == ">"}.map(String.init)
  101. ^
  102. /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
  103. let arr2 = arr1[1].characters.split{$0 == ">"}.map(String.init)
  104. ^
  105. /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 '()'?
  106. let cursor:NSCursor = NSCursor.pointingHand
  107. ~~~~~~~~~^~~~~~~~~~~~
  108. ()
  109. /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
  110. 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*/
  111. ^
  112. ()
  113. /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?'
  114. 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)*/
  115. ~~~~~~~~~~~~~^
  116.  
  117. /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?'
  118. return CGPoint(pos.x, abs(pos.y + -NSScreen.main!.visibleFrame.height) - self.frame.size.height)/*flip the y coordinate back*/
  119. ~~~~~~~~~~~~~^
  120.  
  121. /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?'
  122. return Align.alignmentPoint(CGSize(winSize.width,winSize.height), CGSize(NSScreen.main!.visibleFrame.width,NSScreen.main!.visibleFrame.height),canvasAlignment,viewAlignment,offset)
  123. ~~~~~~~~~~~~~^
  124.  
  125. /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
  126. if let url = URL(string: url), NSWorkspace.shared.open(url) {
  127. ^
  128. ()
  129. /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
  130. self.init(start..<end/*<-CountableRange<Int>*/)//which->converts to Range<Int>
  131. ^
  132. , <#Bound#>
  133. /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/range/RangeExtensions.swift:10:5: note: 'init' declared here
  134. init(_ start:Bound,_ end:Bound){/*Conveninence initializer*/
  135. ^
  136. /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
  137. let hasCommits:Bool = (cherryResult.characters.count > 0)
  138. ^
  139. /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 '()'?
  140. addCursorRect(frame, cursor:NSCursor.iBeam)//sets the default text cursor
  141. ~~~~~~~~~^~~~~
  142. ()
  143. /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 '()'?
  144. addCursorRect(frame, cursor:NSCursor.iBeam)//sets the default text cursor
  145. ~~~~~~~~~^~~~~
  146. ()
  147. /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) -> ()'
  148. (self.superview as! EventSendable).event!(TextFieldEvent(Event.update,self))
  149. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
  150.  
  151. /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'
  152. let fontDescriptor:NSFontDescriptor = NSFontDescriptor(fontAttributes: [NSFontDescriptor.AttributeName.name:fontName/*,NSParagraphStyleAttributeName:paragraphStyle*/])//NSForegroundColorAttributeName:NSColor.redColor(),
  153. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~
  154. /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'?
  155. let attribs:[NSAttributedStringKey : Any] = [NSAttributedStringKey.font:font,NSAttributedStringKey.foregroundColor:textColor,NSAttributedStringKey.paragraphStyle:textParagraph]
  156. ^~~~~~~~~~~~~~~~~~~~~ ~~~~
  157. zone
  158. ObjectiveC.NSObject:160:15: note: 'zone' declared here
  159. open func zone() -> NSZone!
  160. ^
  161. ObjectiveC.NSObject:162:21: note: 'zone' declared here
  162. open class func zone() -> NSZone!
  163. ^
  164. /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]?'
  165. let attrString:NSAttributedString = NSAttributedString.init(string: stringValue, attributes: attribs)
  166. ^~~~~~~
  167. as [String : Any]
  168. /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'
  169. guard let xmlDoc:XMLDoc = try? XMLDoc(xmlString: xmlStr, options: XMLNode.Options(rawValue: 0)) else{
  170. ~~~~~~~~^~~~~~~~~~~~~~~~~~~~
  171. Int( .rawValue)
  172. /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'
  173. let xmlDoc:XMLDoc = try! XMLDoc(xmlString: xmlStr, options: XMLNode.Options(rawValue: 0))
  174. ~~~~~~~~^~~~~~~~~~~~~~~~~~~~
  175. Int( .rawValue)
  176. /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'
  177. let data = xmlDoc.xmlData(options: .nodePrettyPrint)
  178. ^~~~~~~~~~~~~~~
  179. /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'
  180. let xmlDoc:XMLDoc = try! XMLDoc(xmlString: result, options: XMLNode.Options(rawValue: 0))
  181. ~~~~~~~~^~~~~~~~~~~~~~~~~~~~
  182. Int( .rawValue)
  183. /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
  184. attributeText.remove(at: attributeText.characters.indices.last!)//remove trailing space
  185. ^
  186. /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
  187. if (content.characters.count > 0) { //has content
  188. ^
  189. /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
  190. return (string.characters.first == char) && (string.characters.last == char)
  191. ^
  192. /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
  193. return (string.characters.first == char) && (string.characters.last == char)
  194. ^
  195. /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
  196. var count:Int{return self.characters.count}/*Since swift 4 There is also native count, But it doesnt return Int*/
  197. ^
  198. /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
  199. input.insert(contentsOf: replacement.characters, at: input.range(of:match)!.lowerBound)
  200. ^
  201. /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
  202. return String(str.characters.reversed())//new in swift 2
  203. ^
  204. /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
  205. let theRest:String = StringParser.subString(str,str.characters.count,1)
  206. ^
  207. /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
  208. a.insert(contentsOf: b.characters, at: index)
  209. ^
  210. /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
  211. return String(describing: string.characters.last)//swift 3 upgrade -> was: String()
  212. ^
  213. /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
  214. let b:String = subStr(str,index,str.characters.count)
  215. ^
  216. /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
  217. return String(str.characters.dropFirst())
  218. ^
  219. /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
  220. return String(str.characters.dropFirst())
  221. ^
  222. /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
  223. return String(str.characters.dropLast())
  224. ^
  225. /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
  226. return String(str.characters.dropLast())
  227. ^
  228. /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
  229. if str.characters.first == left {str = String(str.characters.dropFirst())}
  230. ^
  231. /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
  232. if str.characters.first == left {str = String(str.characters.dropFirst())}
  233. ^
  234. /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
  235. if str.characters.first == left {str = String(str.characters.dropFirst())}
  236. ^
  237. /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
  238. if str.characters.last == right {str = String(str.characters.dropLast())}
  239. ^
  240. /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
  241. if str.characters.last == right {str = String(str.characters.dropLast())}
  242. ^
  243. /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
  244. if str.characters.last == right {str = String(str.characters.dropLast())}
  245. ^
  246. /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
  247. if hex.characters.count == 3 {
  248. ^
  249. /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
  250. 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
  251. ^
  252. /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
  253. 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
  254. ^
  255. /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
  256. 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
  257. ^
  258. /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
  259. 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
  260. ^
  261. /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
  262. 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
  263. ^
  264. /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
  265. 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
  266. ^
  267. /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
  268. let arr:[T] = str.characters.map{cast($0)}
  269. ^
  270. /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
  271. return string.characters.contains(char)
  272. ^
  273. /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
  274. str.remove(at: str.characters.indices.first!)
  275. ^
  276. /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
  277. str.remove(at: str.characters.indices.last!)
  278. ^
  279. /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
  280. return str.characters[successor]
  281. ^
  282. /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
  283. return str.characters[predecessor]
  284. ^
  285. /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
  286. if let strIndex = str.characters.index(of: char) {
  287. ^
  288. /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
  289. return str.characters.last!
  290. ^
  291. /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
  292. return str.characters.first!
  293. ^
  294. /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
  295. let stringlength = str.characters.count
  296. ^
  297. /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(_:)'
  298. let range:NSRange = $0.range(at: 1)
  299. ^~~~~ ~~~~
  300. rangeAt
  301. Foundation.NSTextCheckingResult:28:15: note: 'range(at:)' was introduced in Swift 4
  302. open func range(at idx: Int) -> NSRange
  303. ^
  304. /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(_:)'
  305. let range:NSRange = $0.range(at: 1)
  306. ^~~~~ ~~~~
  307. rangeAt
  308. Foundation.NSTextCheckingResult:28:15: note: 'range(at:)' was introduced in Swift 4
  309. open func range(at idx: Int) -> NSRange
  310. ^
  311. /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(_:)'
  312. return (str as NSString).substring(with: result.range(at: key))
  313. ^~~~~ ~~~~
  314. rangeAt
  315. Foundation.NSTextCheckingResult:28:15: note: 'range(at:)' was introduced in Swift 4
  316. open func range(at idx: Int) -> NSRange
  317. ^
  318. /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
  319. return pasteboard.canReadItem(withDataConformingToTypes: [clipboardFormat])
  320. ^
  321. ()
  322. /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/clipboard/ClipboardAsserter.swift:12:24: error: ambiguous use of 'string'
  323. return hasData(NSPasteboard.PasteboardType.string.rawValue)
  324. ^
  325. Foundation.NSString:248:21: note: found this candidate
  326. open class func string() -> Self
  327. ^
  328. Foundation.NSString:35:21: note: found this candidate
  329. open class func string(withContentsOfFile path: String) -> Any?
  330. ^
  331. Foundation.NSString:40:21: note: found this candidate
  332. open class func string(withContentsOf url: URL) -> Any?
  333. ^
  334. Foundation.NSString:60:21: note: found this candidate
  335. open class func string(withCString bytes: UnsafePointer<Int8>, length: Int) -> Any?
  336. ^
  337. Foundation.NSString:65:21: note: found this candidate
  338. open class func string(withCString bytes: UnsafePointer<Int8>) -> Any?
  339. ^
  340. /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
  341. thePasteboard.clearContents()/*Clear any previous data, since a sys clipboard can have 2 version of the same data etc*/
  342. ^
  343. ()
  344. /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
  345. thePasteboard.setString(string, forType: NSPasteboard.PasteboardType(rawValue: clipboardFormat))
  346. ^
  347. ()
  348. /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/clipboard/ClipboardModifier.swift:20:38: error: ambiguous use of 'string'
  349. return setStringData(string, NSPasteboard.PasteboardType.string.rawValue)
  350. ^
  351. Foundation.NSString:248:21: note: found this candidate
  352. open class func string() -> Self
  353. ^
  354. Foundation.NSString:35:21: note: found this candidate
  355. open class func string(withContentsOfFile path: String) -> Any?
  356. ^
  357. Foundation.NSString:40:21: note: found this candidate
  358. open class func string(withContentsOf url: URL) -> Any?
  359. ^
  360. Foundation.NSString:60:21: note: found this candidate
  361. open class func string(withCString bytes: UnsafePointer<Int8>, length: Int) -> Any?
  362. ^
  363. Foundation.NSString:65:21: note: found this candidate
  364. open class func string(withCString bytes: UnsafePointer<Int8>) -> Any?
  365. ^
  366. /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
  367. let data:String = pasteboard.string(forType: NSPasteboard.PasteboardType(rawValue: dataType))!
  368. ^
  369. ()
  370. /Users/zero/Documents/Programming/PinSwift/.build/checkouts/swift-utils.git-6502929546665867261/Sources/Utils/misc/clipboard/ClipboardParser.swift:14:27: error: ambiguous use of 'string'
  371. return stringData(NSPasteboard.PasteboardType.string.rawValue)
  372. ^
  373. Foundation.NSString:248:21: note: found this candidate
  374. open class func string() -> Self
  375. ^
  376. Foundation.NSString:35:21: note: found this candidate
  377. open class func string(withContentsOfFile path: String) -> Any?
  378. ^
  379. Foundation.NSString:40:21: note: found this candidate
  380. open class func string(withContentsOf url: URL) -> Any?
  381. ^
  382. Foundation.NSString:60:21: note: found this candidate
  383. open class func string(withCString bytes: UnsafePointer<Int8>, length: Int) -> Any?
  384. ^
  385. Foundation.NSString:65:21: note: found this candidate
  386. open class func string(withCString bytes: UnsafePointer<Int8>) -> Any?
  387. ^
  388. /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
  389. return date.dayName != nil ? String(date.dayName!.characters.first!) : ""
  390. ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement