Skip to content

Commit 0957744

Browse files
eaplataniosrxwei
authored andcommitted
Fixes a Swift naming bug. (#20)
1 parent 4df45bf commit 0957744

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

RawOpsGenerated.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -311,18 +311,18 @@ public enum Mode5 {
311311

312312
// @_frozen // SR-9739
313313
public enum OutputEncoding {
314-
case utf-16-be
315-
case utf-32-be
316-
case utf-8
314+
case utf16Be
315+
case utf32Be
316+
case utf8
317317

318318
@inlinable
319319
var cName: String {
320320
@inline(__always)
321321
get {
322322
switch self {
323-
case .utf-16-be: return "UTF-16-BE"
324-
case .utf-32-be: return "UTF-32-BE"
325-
case .utf-8: return "UTF-8"
323+
case .utf16Be: return "UTF-16-BE"
324+
case .utf32Be: return "UTF-32-BE"
325+
case .utf8: return "UTF-8"
326326
}
327327
}
328328
}

generate_wrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def swift_compatible(s, capitalize=False):
148148
without_underscores = []
149149
capitalize_next_char = False
150150
for c in s:
151-
if c == '_' or c == '(' or c == ')':
151+
if c == '-' or c == '_' or c == '(' or c == ')':
152152
capitalize_next_char = True
153153
elif capitalize_next_char:
154154
capitalize_next_char = False

0 commit comments

Comments
 (0)