We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2d6ddf commit 0704e2eCopy full SHA for 0704e2e
Sources/SwiftWin32/Support/String+UIExtensions.swift
@@ -1,14 +1,6 @@
1
// Copyright © 2019 Saleem Abdulrasool <compnerd@compnerd.org>
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
-extension String {
5
- internal init(from utf16: [UInt16]) {
6
- self = utf16.withUnsafeBufferPointer {
7
- String(decodingCString: $0.baseAddress!, as: UTF16.self)
8
- }
9
10
-}
11
-
12
extension String {
13
public var wide: [UInt16] {
14
return Array<UInt16>(from: self)
0 commit comments