mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] De-underscore Unicode "namespace"
This commit is contained in:
@@ -160,7 +160,7 @@ extension _StringCore {
|
||||
return try Swift._withCStringAndLength(
|
||||
encodedAs: targetEncoding,
|
||||
from: UnsafeBufferPointer(start: startASCII, count: count)[bounds],
|
||||
encodedAs: _Unicode.ASCII.self,
|
||||
encodedAs: Unicode.ASCII.self,
|
||||
execute: body
|
||||
)
|
||||
}
|
||||
@@ -168,7 +168,7 @@ extension _StringCore {
|
||||
return try Swift._withCStringAndLength(
|
||||
encodedAs: targetEncoding,
|
||||
from: UnsafeBufferPointer(start: startUTF16, count: count)[bounds],
|
||||
encodedAs: _Unicode.UTF16.self,
|
||||
encodedAs: Unicode.UTF16.self,
|
||||
execute: body
|
||||
)
|
||||
}
|
||||
@@ -176,7 +176,7 @@ extension _StringCore {
|
||||
return try Swift._withCStringAndLength(
|
||||
encodedAs: targetEncoding,
|
||||
from: self[bounds],
|
||||
encodedAs: _Unicode.UTF16.self,
|
||||
encodedAs: Unicode.UTF16.self,
|
||||
execute: body
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user