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 902443e commit 7c7be3dCopy full SHA for 7c7be3d
stdlib/public/core/Unicode.swift
@@ -107,7 +107,8 @@ public struct UTF8 : UnicodeCodecType {
107
/// space in `buffer` is filled with some value not matching the UTF-8
108
/// continuation byte form (`0b10xxxxxx`).
109
@warn_unused_result
110
- public static func _isValidUTF8(buffer: UInt32) -> Bool {
+ public // @testable
111
+ static func _isValidUTF8(buffer: UInt32) -> Bool {
112
113
if _fastPath(buffer & 0x80 == 0) {
114
return true // 0x00 -- 0x7f: 1-byte sequences (ASCII).
0 commit comments