17 Commits

Author SHA1 Message Date
Jonathan Flat
c0a485e336
(132108734) URLComponents percent-decoding %00 results in truncated string (#752) 2024-07-19 18:23:51 -07:00
Tina Liu
2d517e846d
Missing visionOS availability for API_TO_BE_DEPRECATED (#737)
* Missing visionOS availability for API_TO_BE_DEPRECATED

Fixed 131763349

* Fix deprecation message
2024-07-16 13:58:55 -07:00
Jonathan Flat
b22ff2b757
(129922624) Don't convert already-converted NSURLs (#692) 2024-06-20 22:27:39 -06:00
Charles Hu
8976fc4fd6
Introduce Cmake support for SwiftFoundation (#573) 2024-06-16 22:21:28 -07:00
noriaki watanabe
0101305dcb
Use percentEncode(path, component: .path) instead of percentEncodePath(path) (#632) 2024-06-04 13:26:10 -07:00
Tony Parker
caa08cf226
Enable complete concurrency checking in Foundation 2024-06-04 10:41:59 -07:00
Charles Hu
6566925d60
Update remaining references of FoundationICU to _FoundationICU (#649) 2024-06-03 14:59:28 -07:00
Jeremy Schonfeld
762698ea5e
(128609033) Avoid crashing due to malformed paths creating URLs (#646) 2024-05-31 13:50:26 -07:00
Charles Hu
2a8e9438ec
Upgrade FoundationICU to 0.0.7 (#645) 2024-05-31 13:50:07 -07:00
Saleem Abdulrasool
6946239486
FoundationEssentials: use named constants for characters (#620)
Use more named constants when checking for matching constants in the
string.
2024-05-20 11:58:38 -06:00
Saleem Abdulrasool
67c4d1a12b
FoundationEssentials: do not strip non-absolute paths (#621)
We would strip the first characters of a path if it were non-absolute.
For special files like `CON` we would end up stripping the name to `N`.
2024-05-20 09:36:50 -07:00
Jonathan Flat
e991656bd0
URL.init(filePath:) should resolve against the base URL before checking if the file is a directory (#606) 2024-05-13 17:22:28 -07:00
Jonathan Flat
4a526630f8
Support Windows URL paths in FoundationEssentials (#602) 2024-05-13 19:22:08 +00:00
Jeremy Schonfeld
df5fa4e8c6
Minor fixes to support using URL in swift-corelibs-foundation (#601)
* Respect directory status when standardizing/resolving symlinks in URL

* Use correct NSURLErrorKey declaration
2024-05-09 17:20:21 -07:00
Saleem Abdulrasool
e07817cbd6
FoundationEssentials: recover from backslide on Windows (#593)
This new helper was added but did not support windows as `stat` is a
Unix operation and the Windows equivalent is more nuanced when you are
trying to minimise IO overheads. Add a Windows specific path to repair
the build on Windows.
2024-05-08 14:04:19 -07:00
Jeremy Schonfeld
543a9e4cd7
Use URL in JSON/Data APIs (#588)
* Use URL in JSON/Data APIs

* path -> URL

* Use fileSystemPath instead of path(percentEncoded:)

* Correct resource loading on linux
2024-05-08 12:58:00 -07:00
Jonathan Flat
361efcf5fe
Port URL and URLComponents to swift-foundation (#586) 2024-05-06 09:51:18 -07:00