Skip to content

Commit 7c7be3d

Browse files
[stdlib] Add @testable for _isValidUTF8()
1 parent 902443e commit 7c7be3d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/core/Unicode.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ public struct UTF8 : UnicodeCodecType {
107107
/// space in `buffer` is filled with some value not matching the UTF-8
108108
/// continuation byte form (`0b10xxxxxx`).
109109
@warn_unused_result
110-
public static func _isValidUTF8(buffer: UInt32) -> Bool {
110+
public // @testable
111+
static func _isValidUTF8(buffer: UInt32) -> Bool {
111112

112113
if _fastPath(buffer & 0x80 == 0) {
113114
return true // 0x00 -- 0x7f: 1-byte sequences (ASCII).

0 commit comments

Comments
 (0)