Skip to content

Commit a13d677

Browse files
committed
Make the UTF8-to-wide functions into SPI rather than internal.
They're useful functions to have; I don't think we want them to be API, but having them as SPI is conceivably useful for other purposes, and avoids everyone rolling their own copy. rdar://103397975
1 parent e73de53 commit a13d677

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/Runtime/Win32.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
/// for freeing this string with @c free() when done with it.
4040
///
4141
/// If @a str cannot be converted to UTF-8, @c nullptr is returned.
42-
SWIFT_RUNTIME_STDLIB_INTERNAL
42+
SWIFT_RUNTIME_STDLIB_SPI
4343
char *_swift_win32_copyUTF8FromWide(const wchar_t *str);
4444

4545
/// Convert a UTF-8 string to a wide string.
@@ -50,7 +50,7 @@ char *_swift_win32_copyUTF8FromWide(const wchar_t *str);
5050
/// for freeing this string with @c free() when done with it.
5151
///
5252
/// If @a str cannot be converted to UTF-16, @c nullptr is returned.
53-
SWIFT_RUNTIME_STDLIB_INTERNAL
53+
SWIFT_RUNTIME_STDLIB_SPI
5454
wchar_t *_swift_win32_copyWideFromUTF8(const char *str);
5555

5656
/// Configure the environment to allow calling into the Debug Help library.

0 commit comments

Comments
 (0)