From 1f3f474a13bdde1c5fecdf8cd9ce525dbe5df000 Mon Sep 17 00:00:00 2001 From: Levi Broderick Date: Mon, 18 Mar 2019 22:58:32 -0700 Subject: Add Utf8String skeleton (#23209) Utf8String is an experimental type that is string-like (heap-allocated, immutable, variable-length, null-terminated) but whose inner representation is UTF-8, not UTF-16. This is a skeleton implementation of the basic API shape. The ecosystem of APIs has not yet been built around it. All Utf8String-related code is currently surrounded by ifdefs to allow easy identification and removal from release branches. --- src/strongname/api/common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/strongname') diff --git a/src/strongname/api/common.h b/src/strongname/api/common.h index 26c545cff9..626d9bb720 100644 --- a/src/strongname/api/common.h +++ b/src/strongname/api/common.h @@ -146,6 +146,9 @@ typedef DPTR(class ReJitManager) PTR_ReJitManager; typedef DPTR(struct ReJitInfo) PTR_ReJitInfo; typedef DPTR(struct SharedReJitInfo) PTR_SharedReJitInfo; typedef DPTR(class StringObject) PTR_StringObject; +#ifdef FEATURE_UTF8STRING +typedef DPTR(class Utf8StringObject) PTR_Utf8StringObject; +#endif // FEATURE_UTF8STRING typedef DPTR(class TypeHandle) PTR_TypeHandle; #ifdef STUB_DISPATCH typedef VPTR(class VirtualCallStubManager) PTR_VirtualCallStubManager; -- cgit v1.2.3