Commit e34490b
committed
refactor: remove Foundation dependency from W3C CSSOM
Remove Foundation import from all CSSOM source files and replace
Foundation-specific functionality with native Swift equivalents:
- Replace String(format: "\\%x ", value) with String(_:radix:16)
in escapeAsCodePoint() functions
- Remove unused Foundation imports from identifier and serialization files
All 134 tests pass with these changes. The package now uses only
native Swift functionality for string formatting and manipulation.
Modified files:
- Serialization/StringSerialization.swift
- Serialization/IdentifierSerialization.swift
- Serialization/Url.swift
- Serialization/String.swift
- Identifiers/DashedIdent.swift
- Identifiers/Ident.swift
- Identifiers/CustomIdent.swift1 parent 9549306 commit e34490b
File tree
7 files changed
+2
-16
lines changed- Sources/W3C CSSOM
- Identifiers
- Serialization
7 files changed
+2
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
118 | 116 | | |
119 | 117 | | |
120 | 118 | | |
121 | | - | |
| 119 | + | |
122 | 120 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
84 | | - | |
| 82 | + | |
85 | 83 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
0 commit comments