21 Commits

Author SHA1 Message Date
Tony Parker
996ddf67d3
Make sure that CShim functions are (a) hidden in framework mode, because external clients don't use them and (b) exported in package mode, because external clients may end up calling them (#341) 2023-12-06 12:50:54 -08:00
Charles Hu
90994bb33a
(rdar://114714976) JSON5 parsing hex number with a trailing ‘E’ fails (#250)
Co-authored-by: Kevin Perry <kperry@apple.com>
2023-09-05 12:29:35 -07:00
Joey
32bf8bc848
Documentation - Consistency Fixes (#187)
* Documentation for attributed string's number formatting.

* Documentation - Typos & Consistency Fixes
2023-06-29 10:55:29 -07:00
Guillaume Lessard
21f76b8368
Work around a miscompilation (#141) 2023-05-19 14:27:03 -07:00
Guillaume Lessard
38705d65fd
Use inout as workaround for delayed SE-0377 (#133)
rdar://109425225

We expected `__owned` to be the workaround, but that exposed a  different bug.
2023-05-17 13:44:31 -07:00
kperryua
34ea98136a
Remove String.reserveCapacity() calls with dubious value from JSONScanners (#119) 2023-05-16 15:20:58 -07:00
Jeremy Schonfeld
9c72d351d2
(105902981) Replace @_implementationOnly imports with package imports in FoundationPreview (#109) 2023-05-12 11:36:10 -07:00
Guillaume Lessard
aefeed4540
Use __owned parameter modifier (#102) 2023-05-09 13:11:43 -07:00
Alexander Cyon
09606b457d
Fix typos (#68) 2023-04-29 06:28:00 -07:00
Charles Hu
0ac5999256
rdar://107847458 (Fix FoundationPreview CalendarTests on Linux) (#36) 2023-04-18 13:59:56 -07:00
Guillaume Lessard
ecd52ceb38
rdar://108073576 (Don't expose BufferView's baseAddress property) (#32)
* Clarify use of unsafe code and call to memcmp

* Do not expose a BufferView’s `baseAddress`
2023-04-17 16:37:12 -07:00
Guillaume Lessard
4b8a234a5b
Rename the docStart parameter to fullSource 2023-04-11 15:07:33 -07:00
Guillaume Lessard
bf0990beea
rename cursor to index in 2 more places
# Conflicts:
#	Sources/FoundationEssentials/JSON/JSON5Scanner.swift
2023-04-11 14:43:07 -07:00
Guillaume Lessard
fb332a8b28
pass buffer as context reference
- this prevents what is effectively as an address escape, and allows better control of index bounds.
2023-04-11 14:14:43 -07:00
Guillaume Lessard
47e4910fc0
update two-byte hex decoding
Use the same decoding method for two-byte hex sequences as for four-byte hex sequences.
2023-04-11 10:59:48 -07:00
Guillaume Lessard
aaa9d2cfbd
split out slow path of stringValue() 2023-04-11 10:59:48 -07:00
Guillaume Lessard
5d6ab4a2ab
add helpful labels to more return tuples 2023-04-11 10:59:47 -07:00
Guillaume Lessard
5091f252c2
Rename DocumentReader’s index properties 2023-04-11 10:59:47 -07:00
Guillaume Lessard
679fab1ff2
label a return tuple 2023-04-11 10:59:47 -07:00
Guillaume Lessard
1ab3832106
layer json decoding over bufferview 2023-04-11 10:59:47 -07:00
Charles Hu
34c45c169c rdar://107156343 (Move JSONEncoder to FoundationPreview) 2023-03-29 09:56:00 -07:00