aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/Base.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-18 21:25:44 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-18 21:25:44 +0800
commitdf2dadbd0f0ace6e02281c84218537ec2ce5c47f (patch)
tree56a360c16c4ba46658572305d3a444fb30d32272 /include/cru/platform/Base.h
parent3648f669cb42cdd9d232d60c8b9715dfbbe5b31a (diff)
downloadcru-df2dadbd0f0ace6e02281c84218537ec2ce5c47f.tar.gz
cru-df2dadbd0f0ace6e02281c84218537ec2ce5c47f.tar.bz2
cru-df2dadbd0f0ace6e02281c84218537ec2ce5c47f.zip
Add overload of string_view for string utils. clean up codes.
Diffstat (limited to 'include/cru/platform/Base.h')
-rw-r--r--include/cru/platform/Base.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/cru/platform/Base.h b/include/cru/platform/Base.h
index b910cde1..7009c145 100644
--- a/include/cru/platform/Base.h
+++ b/include/cru/platform/Base.h
@@ -35,8 +35,8 @@ class CRU_PLATFORM_API PlatformNotMatchException : public PlatformException {
~PlatformNotMatchException() override;
- std::string GetResourcePlatformUtf8() const { return resource_platform_; }
- std::string GetTargetPlatformUtf8() const { return target_platform_; }
+ std::string GetResourcePlatform() const { return resource_platform_; }
+ std::string GetTargetPlatform() const { return target_platform_; }
private:
std::string resource_platform_;
@@ -62,8 +62,8 @@ class CRU_PLATFORM_API PlatformUnsupportedException : public PlatformException {
~PlatformUnsupportedException() override;
- std::string GetPlatformUtf8() const { return platform_; }
- std::string GetOperationUtf8() const { return operation_; }
+ std::string GetPlatform() const { return platform_; }
+ std::string GetOperation() const { return operation_; }
private:
std::string platform_;