Commit Graph

114 Commits

Author SHA1 Message Date
Jun Yuan 1b201f7e22 modify parameter labeling for clarity
func regionMatches in String extension
2021-04-28 10:49:59 +08:00
Nabil Chatbi ad8fae6aa8 Renamed Selector Class to CssSelector 2020-04-30 00:37:00 +02:00
Nabil Chatbi cfbf1d3b24 Merge branch 'master' into develop
* master:
  joined() seems to be much more efficient than reduce()
2020-03-24 20:49:38 +01:00
Yaroslav 719b06761a Fix tests
Fix travis tests.

Resolve compiler warnings
2020-03-22 21:46:43 +03:00
Devin Pitcher caa81e830c joined() seems to be much more efficient than reduce() 2020-02-09 11:22:01 -07:00
Nabil Chatbi 04ed48a128 Merge branch 'master' into develop
* master:
  Ignore xcuserdata
  Delete .swift-version
  s.swift_versions = ['4.0', '4.2', '5.0', '5.1']
  bump version 2.2.2
  Fix hang on Xcode 11
2019-12-20 21:26:11 +01:00
Garth Snyder 563e0c3476 Add back iterator for Elements, count test iterations 2019-12-19 18:01:46 -08:00
Garth Snyder ed6fec2809 Put back old Sequence/IteratorProtocol for Elements 2019-12-19 17:28:38 -08:00
Garth Snyder 17e458f67b Don't use Character.isNewline - Linux doesn't like 2019-12-19 14:28:10 -08:00
Garth Snyder 450d6de5bc Avoid actually trimming strings unless they need it 2019-12-19 14:28:10 -08:00
Garth Snyder 6af808ef63 Convert all tag sets to constant arrays, use native contains() 2019-12-19 14:28:10 -08:00
Garth Snyder 904ebe27fa Use binary search when handling HTML named entities 2019-12-19 14:28:10 -08:00
Garth Snyder 2cfe21cb27 Convert StringBuilder to String array basis 2019-12-19 14:23:16 -08:00
Garth Snyder 5d688cd09f Convert Attributes to use a simple array as backing store 2019-12-19 13:33:16 -08:00
Garth Snyder a4eca3ed31 Convert CharacterReader to native string indexing 2019-12-19 13:23:36 -08:00
Daniel Muhra 58342d7999 Fix hang on Xcode 11
Resolves hang described in https://github.com/scinfu/SwiftSoup/issues/125
2019-10-30 12:27:21 +01:00
Nabil Chatbi 109d717e7a
Merge pull request #107 from samalone/elements-collection
Provide a RandomAccessCollection extension for Elements
2019-06-06 23:15:53 +02:00
Nabil Chatbi 137af9728b Merge branch 'master' into develop
* master: (25 commits)
  Update README.md
  pod 2.0.0
  Update to Xcode 10.2 and resolve Swift 5 warnings
  - Fixes #101 - SwiftSoup builds in "release" mode on swift linux 4.2.
  Up the version written in README.md to 1.7.4
  docker
  docker
  added
  fix swift version
  1.7.4
  bump version 1.7.3
  Make some corrections to README.md
  Adjust Dockerfile to newer Swift
  Lower Swift version because of Linux build
  Install cocoapods beta because it fails with older
  Bump TravisCI Xcode version
  Swift 4.2 and Xcode 10 support
  Fix for "Static declarations are implicitly 'final'; use 'public' instead" warning. Methods that are 'static' or inside a 'final' class can not by nature be declared as open. These methods are not overridable.
  Bump Version
  Made install instructions for SPM more clear
  ...

# Conflicts:
#	Example/Example/AppDelegate.swift
#	Sources/Entities.swift
2019-06-06 22:51:37 +02:00
David Hart 71e95f7595 Update to Xcode 10.2 and resolve Swift 5 warnings 2019-04-18 21:47:57 +02:00
Stuart A. Malone d5cae61029 Provide a RandomAccessCollection extension for Elements 2018-12-13 08:51:06 -05:00
PW 231864a7a4 - Fixes #101 - SwiftSoup builds in "release" mode on swift linux 4.2. 2018-10-13 13:56:37 +02:00
Malcolm 2da533b75d Fix for "Static declarations are implicitly 'final'; use 'public' instead" warning. Methods that are 'static' or inside a 'final' class can not by nature be declared as open. These methods are not overridable. 2018-08-26 11:32:04 +02:00
Daniel 47c40c1eb9 Fix namespacing. Otherwise trying to explicity refer to members of the module will look at the class 'SwiftSoup', and error out 2018-05-07 17:42:03 -04:00
Daniel e0f7c152b5 make Matcher method public on Pattern 2018-05-07 11:43:16 -04:00
Nabil Chatbi 1aaaa657ad performance change 2018-04-04 23:17:10 +02:00
Nabil Chatbi 50e7c06cb0 Merge branch 'master' into develop
* master:
  lint
  Refactor as Swift guideline
  Backward compatibility for Swift < 4.1
  Swift 4.1 and <4.1 compatibility
2018-04-03 20:15:49 +02:00
Nabil Chatbi 8e064ada23 lint 2018-04-03 20:14:14 +02:00
Nabil Chatbi 129eeed16c Refactor as Swift guideline 2018-04-02 22:32:39 +02:00
Nabil Chatbi acf543fba1 Swift 4.1 and <4.1 compatibility 2018-04-01 13:39:15 +02:00
Nabil Chatbi ae54062b0a Removed StringBuilder 2018-04-01 01:33:11 +02:00
Nabil Chatbi 09d21e835b Lint 2018-04-01 01:09:44 +02:00
Nabil Chatbi 2abd2576ce Lint Entities 2018-04-01 00:46:30 +02:00
Nabil Chatbi 995b9cdcff Lint and Performance 2018-04-01 00:30:20 +02:00
Nabil Chatbi d98300a7ec * Removed StringBuilder from Element.cssSelector
* Lint Code
* Swift 4.1
2018-03-31 19:42:13 +02:00
Nabil Chatbi 306be6efbe Removed StringBuilder from Element.cssSelector 2018-03-29 22:59:01 +02:00
Nabil Chatbi d78af0baf9 fix crash cast 2018-02-07 22:29:28 +01:00
Nabil Chatbi cebd4851bc New schemes 2017-11-18 14:03:10 +01:00
Nabil Chatbi 2818c50313 test 2017-11-18 12:48:10 +01:00
Nabil Chatbi 7ae9d7209e Mac Target 2017-11-17 09:57:17 +01:00
Nabil Chatbi 4c6c73a528
Merge pull request #41 from chickdan/master
Remove uses of .character to conform to Swift 4 standards.
2017-11-04 12:56:07 +01:00
Nabil Chatbi 54827a83dd Fix auto close tag 2017-11-04 00:45:50 +01:00
chickdan 0a1632044c Remove uses of .character to conform to Swift 4 standards. 2017-11-01 23:25:50 -05:00
Nabil Chatbi 722bf83d76 Private file local visibility 2017-10-30 21:04:41 +01:00
Nabil Chatbi f9471791ba static strings 2017-10-08 21:30:05 +02:00
Nabil Chatbi 9ff2f32fb3 Performance 2017-10-08 20:49:28 +02:00
Nabil Chatbi 964003c42e Performance improvement 2017-10-08 17:28:45 +02:00
Nabil Chatbi ce62221b8c hashValue with XOR 2017-10-05 22:56:42 +02:00
Nabil Chatbi 0a418b5049 Performance 2017-10-04 21:54:20 +02:00
Nabil Chatbi 6ad43adc6f Crash fix if html is empty 2017-10-04 09:18:19 +02:00
Tim 916d5debc8 Fix compile error on 3.2 on macOS 2017-09-28 00:30:05 +01:00