Remove string (#10469)

* replace std::string with ccstd::string
This commit is contained in:
minggo
2022-03-24 11:53:10 +08:00
committed by GitHub
parent af310bf8a4
commit 7f4cb9e3b1
382 changed files with 2814 additions and 2812 deletions

View File

@@ -31,12 +31,12 @@ namespace cc {
CommonSystem::CommonSystem() = default;
CommonSystem::~CommonSystem() = default;
std::string CommonSystem::getDeviceModel() const {
ccstd::string CommonSystem::getDeviceModel() const {
return getDeviceModelJNI();
}
CommonSystem::LanguageType CommonSystem::getCurrentLanguage() const {
std::string languageName = getCurrentLanguageJNI();
ccstd::string languageName = getCurrentLanguageJNI();
const char * pLanguageName = languageName.c_str();
LanguageType ret = LanguageType::ENGLISH;
@@ -82,15 +82,15 @@ CommonSystem::LanguageType CommonSystem::getCurrentLanguage() const {
return ret;
}
std::string CommonSystem::getCurrentLanguageCode() const {
ccstd::string CommonSystem::getCurrentLanguageCode() const {
return getCurrentLanguageCodeJNI();
}
std::string CommonSystem::getSystemVersion() const {
ccstd::string CommonSystem::getSystemVersion() const {
return getSystemVersionJNI();
}
bool CommonSystem::openURL(const std::string &url) {
bool CommonSystem::openURL(const ccstd::string &url) {
return openURLJNI(url);
}