summaryrefslogtreecommitdiff
path: root/src/vm/appdomain.cpp
diff options
context:
space:
mode:
authorLevi Broderick <GrabYourPitchforks@users.noreply.github.com>2019-03-18 22:58:32 -0700
committerGitHub <noreply@github.com>2019-03-18 22:58:32 -0700
commit1f3f474a13bdde1c5fecdf8cd9ce525dbe5df000 (patch)
tree6dfa953c84f1b4d1a7af414c89bb69a025902b1b /src/vm/appdomain.cpp
parent31581af5fa816fb2ea94145823ec3bdd6c0b0327 (diff)
downloadcoreclr-1f3f474a13bdde1c5fecdf8cd9ce525dbe5df000.tar.gz
coreclr-1f3f474a13bdde1c5fecdf8cd9ce525dbe5df000.tar.bz2
coreclr-1f3f474a13bdde1c5fecdf8cd9ce525dbe5df000.zip
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.
Diffstat (limited to 'src/vm/appdomain.cpp')
-rw-r--r--src/vm/appdomain.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vm/appdomain.cpp b/src/vm/appdomain.cpp
index 4eb716164c..9362dd9c7b 100644
--- a/src/vm/appdomain.cpp
+++ b/src/vm/appdomain.cpp
@@ -2485,6 +2485,11 @@ void SystemDomain::LoadBaseSystemClasses()
// Load String
g_pStringClass = MscorlibBinder::LoadPrimitiveType(ELEMENT_TYPE_STRING);
+#ifdef FEATURE_UTF8STRING
+ // Load Utf8String
+ g_pUtf8StringClass = MscorlibBinder::GetClass(CLASS__UTF8_STRING);
+#endif // FEATURE_UTF8STRING
+
// Used by Buffer::BlockCopy
g_pByteArrayMT = ClassLoader::LoadArrayTypeThrowing(
TypeHandle(MscorlibBinder::GetElementType(ELEMENT_TYPE_U1))).AsArray()->GetMethodTable();