[stdlib] De-underscore Unicode "namespace"

This commit is contained in:
Dave Abrahams
2017-05-10 15:00:22 -07:00
parent 02dbc0f34f
commit 97f875ad84
11 changed files with 65 additions and 65 deletions

View File

@@ -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
)
}