Commit Graph

135 Commits

Author SHA1 Message Date
Valentin Perignon d91752f45d feat: Add doc 2023-04-26 16:49:39 +02:00
Valentin Perignon 1a33987f1c feat: Try to clean head
fix: Make classes public

feat: Clean head

feat: Make func public

fix: Make class static (bis)

refactor: Move visitor into HeadCleaner
2023-04-26 16:49:39 +02:00
gemiren 449005ee01
Provide func ==() since we override hash() 2023-01-07 18:40:16 -08:00
Nabil Chatbi a482e88dfb
Merge pull request #225 from beerpiss/mutex-to-dispatchsemaphore
Add Windows support
2022-07-22 13:14:58 +02:00
beerpiss a4abf68c31 use a critical section instead 2022-07-09 13:48:59 +07:00
beerpiss c054710a8a Replace pthread_mutex with DispatchSemaphore 2022-07-09 09:39:52 +07:00
Kristopher Baker a35a2b46e6 add controls as boolean attribute 2022-07-05 11:11:30 +09:00
Francis Chong f04653407c make validate public 2022-06-02 14:42:25 +01:00
Francis Chong adcff8e948 make init public too 2022-06-02 14:35:22 +01:00
Francis Chong f196112172 make evaluator open 2022-06-02 14:23:49 +01:00
Nabil Chatbi 5386dab251 fix error 2022-04-01 12:52:50 +02:00
Levin Li 6e95a2a637 Fix building on Linux and macOS 2022-04-01 18:07:00 +08:00
xukun 69bb8f9820 fix thread safety problem in entities 2022-03-31 14:30:50 +08:00
Nabil Chatbi f0ed38bdf6 rollback 2022-01-23 16:14:07 +01:00
Nabil Chatbi 60b85043dd fix weak changed to unowned 2022-01-20 09:09:21 +01:00
Nabil Chatbi 942bfc10ac added eachText() function 2022-01-03 15:47:27 +01:00
Alex Ehlke 9cefd05961 fix thread-unsafe writing to multipoints 2021-09-25 19:00:02 -04:00
Nabil Chatbi d87ca8d572 Merge branch 'master' into develop 2021-09-07 09:15:40 +02:00
Alex Ehlke 40bb34a863 preserve whitespace 2021-09-06 18:25:59 -04:00
Alex Ehlke f17cca7043 pass trim 2021-09-03 12:46:58 -04:00
Alex Ehlke 9da8e570c3 add trim param 2021-09-02 21:30:06 -04:00
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