summaryrefslogtreecommitdiffstats
path: root/source/core/slang-string.h
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-03-28 22:14:33 -0700
committerGitHub <noreply@github.com>2022-03-28 22:14:33 -0700
commit255fd5873f65a6b01d5385c277d55612dc3cc587 (patch)
tree54eda0ae98bc9c1b30ca75e534ca203d8e03f241 /source/core/slang-string.h
parent79b81083b75dc0abdbb8184568dbe36d082e04f3 (diff)
Allow slangc to generate exe from .slang file. (#2170)
Diffstat (limited to 'source/core/slang-string.h')
-rw-r--r--source/core/slang-string.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/core/slang-string.h b/source/core/slang-string.h
index cb13ec415..6dc3275eb 100644
--- a/source/core/slang-string.h
+++ b/source/core/slang-string.h
@@ -62,7 +62,7 @@ namespace Slang
return (((unsigned char)ch) & 0xC0) == 0x80;
}
- struct UnownedStringSlice
+ struct SLANG_RT_API UnownedStringSlice
{
public:
typedef UnownedStringSlice ThisType;
@@ -190,7 +190,7 @@ namespace Slang
// A `StringRepresentation` provides the backing storage for
// all reference-counted string-related types.
- class StringRepresentation : public RefObject
+ class SLANG_RT_API StringRepresentation : public RefObject
{
public:
Index length;
@@ -286,7 +286,7 @@ namespace Slang
- struct UnownedTerminatedStringSlice : public UnownedStringSlice
+ struct SLANG_RT_API UnownedTerminatedStringSlice : public UnownedStringSlice
{
public:
UnownedTerminatedStringSlice(char const* b)
@@ -294,7 +294,7 @@ namespace Slang
{}
};
- struct StringSlice
+ struct SLANG_RT_API StringSlice
{
public:
StringSlice();
@@ -333,7 +333,7 @@ namespace Slang
};
/// String as expected by underlying platform APIs
- class OSString
+ class SLANG_RT_API OSString
{
public:
/// Default
@@ -394,7 +394,7 @@ namespace Slang
@brief Represents a UTF-8 encoded string.
*/
- class String
+ class SLANG_RT_API String
{
friend struct StringSlice;
friend class StringBuilder;
@@ -837,7 +837,7 @@ namespace Slang
}
};
- class StringBuilder : public String
+ class SLANG_RT_API StringBuilder : public String
{
private:
enum { InitialSize = 1024 };