File tree Expand file tree Collapse file tree 2 files changed +21
-14
lines changed
Sources/SymbolKit/SymbolGraph/SemanticVersion Expand file tree Collapse file tree 2 files changed +21
-14
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ This source file is part of the Swift.org open source project
3
+
4
+ Copyright (c) 2022 Apple Inc. and the Swift project authors
5
+ Licensed under Apache License v2.0 with Runtime Library Exception
6
+
7
+ See https://swift.org/LICENSE.txt for license information
8
+ See https://swift.org/CONTRIBUTORS.txt for Swift project authors
9
+ */
10
+
11
+ extension Character {
12
+ /// A Boolean value indicating whether this character is allowed in a semantic version's identifier.
13
+ internal var isAllowedInSemanticVersionIdentifier : Bool {
14
+ isASCII && ( isLetter || isNumber || self == " - " )
15
+ }
16
+
17
+ /// A Boolean value indicating whether this character is allowed in a semantic version's numeric identifier.
18
+ internal var isAllowedInSemanticVersionNumericIdentifier : Bool {
19
+ isASCII && isNumber
20
+ }
21
+ }
Original file line number Diff line number Diff line change @@ -142,17 +142,3 @@ extension SymbolGraph.SemanticVersion.Prerelease.Identifier: CustomStringConvert
142
142
}
143
143
}
144
144
}
145
-
146
- // MARK: - Validating Identifiers
147
-
148
- extension Character {
149
- /// A Boolean value indicating whether this character is allowed in a semantic version's identifier.
150
- internal var isAllowedInSemanticVersionIdentifier : Bool {
151
- isASCII && ( isLetter || isNumber || self == " - " )
152
- }
153
-
154
- /// A Boolean value indicating whether this character is allowed in a semantic version's numeric identifier.
155
- internal var isAllowedInSemanticVersionNumericIdentifier : Bool {
156
- isASCII && isNumber
157
- }
158
- }
You can’t perform that action at this time.
0 commit comments